]> pd.if.org Git - zpackage/commitdiff
cleanup sqlite references
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 25 Sep 2016 09:01:33 +0000 (04:01 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 25 Sep 2016 09:01:33 +0000 (04:01 -0500)
lib/compress.c
lib/db.c
lib/uncompress.c

index 2657f6be0e69aac41a83b35ed83649990ee9f1fc..c9b0f6ac6a3a13a994e6f076a327556d07a65173 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <sys/mman.h>
 
-#include <sqlite3.h>
 #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;
-};
index e275d9288e7d4ecd37769f24a514022bb9e078d1..98608b3e26fa659d06685997f95d5842c68a9172 100644 (file)
--- a/lib/db.c
+++ b/lib/db.c
 
 #include <sys/mman.h>
 
-#include <sqlite3.h>
+#include "sqlite3.h"
 #include "sha256.h"
 
-
 static int callback(void *NotUsed, int argc, char **argv, char **azColName){
        int i;
        for(i=0; i<argc; i++){
@@ -24,10 +23,6 @@ static int callback(void *NotUsed, int argc, char **argv, char **azColName){
        return 0;
 }
 
-#if 0
-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;
index 867e5bc265a0deee290e4935040f98c5ba30714d..9fddaf24cafac58a0aa97aa84faf15146e87efdb 100644 (file)
@@ -7,8 +7,6 @@
 
 #include <sys/mman.h>
 
-#include <sqlite3.h>
-
 #include "sha256.h"
 
 #include "lzma.h"