Mercurial > hg > sidinfo
comparison sidinfo.c @ 236:609bfc1bd628
Change sidlib_sldb_new() API to int sidlib_sldb_new(SIDLibSLDB **pdbh).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2020 13:18:55 +0200 |
parents | 3cb7be7b98a6 |
children | 2ed665b74043 |
comparison
equal
deleted
inserted
replaced
235:3cb7be7b98a6 | 236:609bfc1bd628 |
---|---|
1304 THMSG(1, "Reading SLDB (%s format [%s]): %s\n", | 1304 THMSG(1, "Reading SLDB (%s format [%s]): %s\n", |
1305 setSLDBNewFormat ? "new" : "old", | 1305 setSLDBNewFormat ? "new" : "old", |
1306 setSLDBNewFormat ? ".md5" : ".txt", | 1306 setSLDBNewFormat ? ".md5" : ".txt", |
1307 setSLDBPath); | 1307 setSLDBPath); |
1308 | 1308 |
1309 if ((sidSLDB = sidlib_sldb_new()) == NULL) | 1309 if ((ret = sidlib_sldb_new(&sidSLDB)) != THERR_OK) |
1310 { | 1310 { |
1311 THERR("Could not allocate SLDB structure!\n"); | 1311 THERR("Could not allocate SLDB database structure: %s\n", |
1312 th_error_str(ret)); | |
1312 goto err1; | 1313 goto err1; |
1313 } | 1314 } |
1314 | 1315 |
1315 if ((ret = sidlib_sldb_read(inFile, sidSLDB)) != THERR_OK) | 1316 if ((ret = sidlib_sldb_read(inFile, sidSLDB)) != THERR_OK) |
1316 { | 1317 { |