From b4500f8174869d2dfbd7a8ae80bc64c35d7a9d3f Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 25 Sep 2016 04:01:33 -0500 Subject: [PATCH] cleanup sqlite references --- lib/compress.c | 7 ------- lib/db.c | 7 +------ lib/uncompress.c | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/compress.c b/lib/compress.c index 2657f6b..c9b0f6a 100644 --- a/lib/compress.c +++ b/lib/compress.c @@ -6,7 +6,6 @@ #include -#include #include "sha256.h" #include "lzma.h" @@ -54,9 +53,3 @@ static int callback(void *NotUsed, int argc, char **argv, char **azColName){ static char *create_table = "create table if not exists files (hash text primary key, size integer, compression text, content blob)"; #endif - -struct dbh { - sqlite3 *db; - char *errmsg; - int rc; -}; diff --git a/lib/db.c b/lib/db.c index e275d92..98608b3 100644 --- a/lib/db.c +++ b/lib/db.c @@ -11,10 +11,9 @@ #include -#include +#include "sqlite3.h" #include "sha256.h" - static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int i; for(i=0; i -#include - #include "sha256.h" #include "lzma.h" -- 2.40.0