aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cforum.c b/cforum.c
index c5cc411..36782f0 100644
--- a/cforum.c
+++ b/cforum.c
@@ -15,7 +15,7 @@ int
main(int argc, char *argv[])
{
char err[MAXERR], *p, *v;
- int attachmentid, postid, userid;
+ int attid, postid, userid;
sqlite3_stmt *stmt;
/*
@@ -70,11 +70,11 @@ main(int argc, char *argv[])
}
/* Parse query string. */
- attachmentid = postid = userid = 0;
+ attid = postid = userid = 0;
while(p = nextparam(GET, 128)){
v = split(p);
- if(!attachmentid && strcmp(p, "attachment") == 0)
- attachmentid = atoi(v);
+ if(!attid && strcmp(p, "att") == 0)
+ attid = atoi(v);
else if(!postid && strcmp(p, "post") == 0)
postid = atoi(v);
else if(!userid && strcmp(p, "user") == 0)
@@ -82,8 +82,8 @@ main(int argc, char *argv[])
}
/* Handle request. */
- if(attachmentid)
- showattachment(attachmentid);
+ if(attid)
+ showatt(attid);
else if(postid)
showpost(postid);
else if(userid)