aboutsummaryrefslogtreecommitdiff
path: root/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctl.c')
-rw-r--r--ctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ctl.c b/ctl.c
index 51809db..6ae9832 100644
--- a/ctl.c
+++ b/ctl.c
@@ -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))){