Add printf attribute to log_err/DPRINTF and fix a few warnings

Modified to not use %z for portability reasons.
This commit is contained in:
Catalin Patulea
2014-03-14 00:36:30 -04:00
committed by Justin Maggard
parent 45cf9208fb
commit 3a57744735
11 changed files with 30 additions and 22 deletions

2
sql.c
View File

@ -214,7 +214,7 @@ db_upgrade(sqlite3 *db)
if (db_vers < 1)
return -1;
if (db_vers < 9)
return 9;
return db_vers;
sql_exec(db, "PRAGMA user_version = %d", DB_VERSION);
return 0;