]> jfr.im git - irc/quakenet/newserv.git/blobdiff - sqlite/sqlite.c
fixes for clang
[irc/quakenet/newserv.git] / sqlite / sqlite.c
index 7ff234d8c9cb7f44d63316accf10527b044b7ddd..fa85257121488a0a70f5ea0b9a7a712a33dd0dda 100644 (file)
@@ -7,7 +7,10 @@
 #include <stdarg.h>
 #include <string.h>
 
+#ifndef __USE_POSIX199309
 #define __USE_POSIX199309
+#endif
+
 #include <time.h>
 
 #include "../core/config.h"
@@ -321,12 +324,12 @@ static void loadtablerows(SQLiteConn *c, void *tag) {
 
   /* the handlers do all the checking and cleanup */
   if(t->init)
-    (t->init)(c, t->tag);
+    (t->init)(NULL, t->tag);
 
   (t->data)(c, t->tag);
 
   if(t->fini)
-    (t->fini)(c, t->tag);
+    (t->fini)(NULL, t->tag);
 
   nsfree(POOL_SQLITE, t);
 }