aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 02:10:30 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 02:10:30 +0200
commitc1e3206968f9878f8b7883cc7c313cd930c86d04 (patch)
treef279f343bd27b6fd5d338636138f17c071290016 /t
parent24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (diff)
downloadcforum-c1e3206968f9878f8b7883cc7c313cd930c86d04.tar.gz
Add README, fix C89 compliance
Diffstat (limited to 't')
-rw-r--r--t/front.t3
-rw-r--r--t/front.tc3
-rw-r--r--t/post.t2
-rw-r--r--t/post.tc2
4 files changed, 0 insertions, 10 deletions
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 @@
<h3>Latest posts</h3>
<table border="1">
<%
- 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<h1>");
printf("%s", site.name );
printf("</h1>\n<h3>Latest posts</h3>\n<table border=\"1\">\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 %>
</pre>
<%
-struct attachment *attachment;
-
if(attachment = getattachment(stmt, 0)){
%>
<h3>Attachments</h3>
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("</a>\n");
printf("\n<pre>\n");
printf("%s", post->text );
printf("\n</pre>\n");
-struct attachment *attachment;
-
if(attachment = getattachment(stmt, 0)){
printf("\n<h3>Attachments</h3>\n<table border=\"1\">\n ");