diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 02:10:30 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 02:10:30 +0200 |
commit | c1e3206968f9878f8b7883cc7c313cd930c86d04 (patch) | |
tree | f279f343bd27b6fd5d338636138f17c071290016 /ctl.c | |
parent | 24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (diff) | |
download | cforum-c1e3206968f9878f8b7883cc7c313cd930c86d04.tar.gz |
Add README, fix C89 compliance
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))){ |