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 /t | |
parent | 24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (diff) | |
download | cforum-c1e3206968f9878f8b7883cc7c313cd930c86d04.tar.gz |
Add README, fix C89 compliance
Diffstat (limited to 't')
-rw-r--r-- | t/front.t | 3 | ||||
-rw-r--r-- | t/front.tc | 3 | ||||
-rw-r--r-- | t/post.t | 2 | ||||
-rw-r--r-- | t/post.tc | 2 |
4 files changed, 0 insertions, 10 deletions
@@ -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); %> @@ -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); @@ -14,8 +14,6 @@ <%= post->text %> </pre> <% -struct attachment *attachment; - if(attachment = getattachment(stmt, 0)){ %> <h3>Attachments</h3> @@ -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 "); |