aboutsummaryrefslogtreecommitdiff
path: root/src/Server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server.c')
-rw-r--r--src/Server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Server.c b/src/Server.c
index 70db391..42d841e 100644
--- a/src/Server.c
+++ b/src/Server.c
@@ -144,6 +144,10 @@ int HTTP_RequestUnsupported(cGH *cctkGH, httpRequest *request)
{
char message[1024];
+
+ /* avoid compiler warning about unused parameter */
+ cctkGH = cctkGH;
+
strcpy(message,"HTTP/1.0 501 Not Implemented\r\n");
HTTP_Write(request, message, strlen(message));
@@ -203,7 +207,7 @@ int HTTP_RegisterPage(const char *path, int (*function)(cGH *, httpRequest *, vo
}
}
- return 0;
+ return retval;
}