too many -lgdbm

This commit is contained in:
Ron Pedde 2004-04-06 20:06:41 +00:00
parent df742881c6
commit 5710d771d0
2 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ AC_ARG_WITH(id3tag,
])
AC_CHECK_HEADERS(gdbm.h,LDFLAGS="${LDFLAGS} -lgdbm", [
AC_CHECK_HEADERS(gdbm.h,, [
AC_MSG_ERROR([gdbm.h not found... try --with-gdmb-includes=dir])])
AC_CHECK_LIB(gdbm,gdbm_open,LDFLAGS="$LDFLAGS -lgdbm", echo "Must have gdbm";exit)
AC_CHECK_LIB(gdbm,gdbm_open,, echo "Must have gdbm";exit)
AC_CHECK_HEADERS(id3tag.h,LDFLAGS="${LDFLAGS} -lid3tag",[
AC_MSG_ERROR([id3tag.h not found... try --with-id3tag=dir])])

View File

@ -217,7 +217,6 @@ int db_init(void) {
MP3FILE mp3file;
datum tmp_key,tmp_nextkey,song_data;
if((db_removed=rbinit(db_compare_rb_nodes,NULL)) == NULL) {
errno=ENOMEM;
return -1;
@ -330,6 +329,7 @@ int db_end_initial_update(void) {
db_delete(*((int*)val));
free(val);
}
DPRINTF(ERR_DEBUG,"Done removing stale items\n");
rbdestroy(db_removed);