Fix some warnings

This commit is contained in:
2016-08-11 20:21:46 +01:00
parent e4cc023055
commit ec19b784b3
5 changed files with 6 additions and 21 deletions

View File

@ -16,17 +16,8 @@
/ Hideous code, but only needs to be run one time.
**/
static int callback(void *x, int argc, char **argv, char **azColName) {
int i;
for (i = 0; i<argc; i++) {
std::cout << azColName[i] << " = " << (argv[i] ? argv[i] : "NULL") << std::endl;
}
return 0;
}
int load_questions() {
sqlite3 *db;
char *zErrMsg = 0;
int rc;
rc = sqlite3_open("bot/db/trivia.db", &db);