diff options
Diffstat (limited to 'ctl.c')
-rw-r--r-- | ctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#include "err.h" #include "db.h" #include "query.h" #include "site.h" @@ -36,6 +37,8 @@ void showfront() { char *title; + struct post *post; + struct user *user; sqlite3_stmt *stmt; if(sqlite3_prepare(db, @@ -54,6 +57,7 @@ void showpost(int id) { char *title; + struct attachment *attachment; struct post *post; struct user *user; sqlite3_stmt *stmt; @@ -78,7 +82,7 @@ showpost(int id) void showuser(int id) { - char s[128], *title; + char *title; struct user *user; if(!(user = getuser(byid("users", id), 1))){ |