From ede1a99836507830bfd1285c7e99198252b5c586 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 29 Oct 2017 16:23:17 -0400 Subject: Minor changes Added a few lines to suppress warnings, Added a dependency on time.h --- src/bugcomment.c | 6 +++--- src/newbug.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bugcomment.c b/src/bugcomment.c index 6ae16b3..5d676e3 100644 --- a/src/bugcomment.c +++ b/src/bugcomment.c @@ -36,7 +36,7 @@ int main(){ if(captchafile == NULL){ printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10); printf("Captcha incorrect"); - return; + return 0; } unsigned long inputhash = hash(captchadecoded); free(captchadecoded); @@ -45,7 +45,7 @@ int main(){ if(filehash != inputhash){ printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10); printf("Captcha incorrect"); - return; + return 0; } fclose(captchafile); //If the program got here, the captcha was correct @@ -65,7 +65,7 @@ int main(){ if(bugfile == NULL){ printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10); printf("

Unable to find bug!"); - return; + return 0; } char* dname = replaceHTML(name); char* duid = useridhash(userid); diff --git a/src/newbug.c b/src/newbug.c index b35cb7d..bf28c92 100644 --- a/src/newbug.c +++ b/src/newbug.c @@ -4,6 +4,7 @@ #include #include "shared.h" #include "config.h" +#include int main(){ char* data = getenv("QUERY_STRING"); -- cgit v1.2.3-70-g09d2