summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-18 00:54:38 -0500
committerJune McEnroe <june@causal.agency>2019-12-18 00:54:38 -0500
commitf6fa0923abc2176568e877a461f500d7ed754016 (patch)
tree9880f85ce4d8f69ffd09c1aec9dc43d73982df08
parentInsert events for PRIVMSG and NOTICE (diff)
downloadlitterbox-f6fa0923abc2176568e877a461f500d7ed754016.tar.gz
litterbox-f6fa0923abc2176568e877a461f500d7ed754016.zip
Use sqlite3_bind_int
-rw-r--r--database.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/database.h b/database.h
index ad0d0ba..fad5265 100644
--- a/database.h
+++ b/database.h
@@ -19,7 +19,6 @@
 #include <limits.h>
 #include <sqlite3.h>
 #include <stdbool.h>
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -126,10 +125,10 @@ static inline void dbBindNull(sqlite3_stmt *stmt, const char *param) {
 }
 
 static inline void
-dbBindInt(sqlite3_stmt *stmt, const char *param, int64_t value) {
-	if (!sqlite3_bind_int64(stmt, dbParam(stmt, param), value)) return;
+dbBindInt(sqlite3_stmt *stmt, const char *param, int value) {
+	if (!sqlite3_bind_int(stmt, dbParam(stmt, param), value)) return;
 	errx(
-		EX_SOFTWARE, "sqlite3_bind_int64: %s",
+		EX_SOFTWARE, "sqlite3_bind_int: %s",
 		sqlite3_errmsg(sqlite3_db_handle(stmt))
 	);
 }
se we can't easily embed links to other /about/ pages. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2015-08-12filters: apply HTML escapingLazaros Koromilas http://www.w3.org/International/questions/qa-escapes#use 2015-08-12git: update to v2.5.0Christian Hesse Update to git version v2.5.0. * Upstream commit 5455ee0573a22bb793a7083d593ae1ace909cd4c (Merge branch 'bc/object-id') changed API: for_each_ref() callback functions were taught to name the objects not with "unsigned char sha1[20]" but with "struct object_id". * Upstream commit dcf692625ac569fefbe52269061230f4fde10e47 (path.c: make get_pathname() call sites return const char *) Signed-off-by: Christian Hesse <mail@eworm.de> 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt