Skip to content

Commit

Permalink
Fix check DB version
Browse files Browse the repository at this point in the history
Prevents this error in compile process

�gcc -Wall -Werror -g -O2 -I/usr/local/include/db4 -I/usr/include  -DDEFAULT_CONFIGFILE="\"/usr/local/etc/squid/squidGuard.conf\""  -DEFAULT_LOGDIR="\"/var/log\""  -DDEFAULT_DBHOME="\"/var/db/squidGuard\""  -Wall -c sgDb.c
sgDb.c: In function 'sgDbInit':
sgDb.c:192: error: incompatible type for argument 4 of 'Db->dbp->open'
sgDb.c:192: error: too many arguments to function 'Db->dbp->open'
sgDb.c:197: error: incompatible type for argument 4 of 'Db->dbp->open'
sgDb.c:197: error: too many arguments to function 'Db->dbp->open'
*** Error code 1
  • Loading branch information
ccesario committed Aug 6, 2012
1 parent cb7f838 commit 186c24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sgDb.c
Expand Up @@ -126,7 +126,7 @@ static char *sgStripUrl(const char *url)
}


#if DB_VERSION_MAJOR < 4
#if DB_VERSION_MAJOR <= 4
#define DBOPEN(dbp, txnid, dbfile, database, dbmode, flag, fmode) \
open(dbp, dbfile, database, dbmode, flag, fmode)
#else
Expand Down

0 comments on commit 186c24f

Please sign in to comment.