about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-21 16:47:54 -0400
committerJune McEnroe <june@causal.agency>2020-05-21 16:47:54 -0400
commitbf117319b9dbe93dc4b8dbe6e4540b1380b042c1 (patch)
tree56d6131c871265dca56a61de19c3bff58cf6789e
parentAdd only the necessary expressions to scoop's query (diff)
downloadlitterbox-bf117319b9dbe93dc4b8dbe6e4540b1380b042c1.tar.gz
litterbox-bf117319b9dbe93dc4b8dbe6e4540b1380b042c1.zip
Fix dbPrepare errx call
-rw-r--r--database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.h b/database.h
index 878a5f6..117d7eb 100644
--- a/database.h
+++ b/database.h
@@ -159,7 +159,7 @@ static inline void dbClose(void) {
 static inline sqlite3_stmt *dbPrepare(const char *sql) {
 	sqlite3_stmt *stmt;
 	int error = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL);
-	if (error) err(EX_SOFTWARE, "%s: %s", sqlite3_errmsg(db), sql);
+	if (error) errx(EX_SOFTWARE, "%s: %s", sqlite3_errmsg(db), sql);
 	return stmt;
 }