From c1e3206968f9878f8b7883cc7c313cd930c86d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 02:10:30 +0200 Subject: Add README, fix C89 compliance --- t/front.t | 3 --- t/front.tc | 3 --- t/post.t | 2 -- t/post.tc | 2 -- 4 files changed, 10 deletions(-) (limited to 't') diff --git a/t/front.t b/t/front.t index 5f59c1c..5c88166 100644 --- a/t/front.t +++ b/t/front.t @@ -3,9 +3,6 @@

Latest posts

<% - struct post *post; - struct user *user; - while(post = getpost(stmt, 0)){ user = getuser(byid("users", post->user), 1); %> diff --git a/t/front.tc b/t/front.tc index 9bed8a1..4ee561a 100644 --- a/t/front.tc +++ b/t/front.tc @@ -2,9 +2,6 @@ printf("\n

"); printf("%s", site.name ); printf("

\n

Latest posts

\n
\n "); - struct post *post; - struct user *user; - while(post = getpost(stmt, 0)){ user = getuser(byid("users", post->user), 1); diff --git a/t/post.t b/t/post.t index 200e27d..deeb285 100644 --- a/t/post.t +++ b/t/post.t @@ -14,8 +14,6 @@ <%= post->text %> <% -struct attachment *attachment; - if(attachment = getattachment(stmt, 0)){ %>

Attachments

diff --git a/t/post.tc b/t/post.tc index 89298db..4453246 100644 --- a/t/post.tc +++ b/t/post.tc @@ -31,8 +31,6 @@ printf("\n"); printf("\n
\n");
 printf("%s",  post->text );
 printf("\n
\n"); -struct attachment *attachment; - if(attachment = getattachment(stmt, 0)){ printf("\n

Attachments

\n
\n "); -- cgit v1.2.3