From: Nathan Wagner Date: Sun, 25 Sep 2016 09:01:33 +0000 (-0500) Subject: cleanup sqlite references X-Git-Tag: v0.1.6~177 X-Git-Url: https://pd.if.org/git/?a=commitdiff_plain;h=b4500f8174869d2dfbd7a8ae80bc64c35d7a9d3f;hp=fb3de2268411f38051d25cfe99c4debc90f109f6;p=zpackage cleanup sqlite references --- 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"