aboutsummaryrefslogtreecommitdiff
path: root/src/Thorns.c
diff options
context:
space:
mode:
authortradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2002-01-04 13:00:56 +0000
committertradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2002-01-04 13:00:56 +0000
commitbf0001377ee0765926ae1848ccab76f5cdb5608a (patch)
tree708237a069b1617cdf33adf88286195d7d8e7044 /src/Thorns.c
parentaf5a1374223b0bd5f5041fd9d7ca38765c1be95d (diff)
Callback functions, which serve registered pages, take a 'const cGH *'
argument now. Also fixed a small memory leak in redirection code. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@145 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Thorns.c')
-rw-r--r--src/Thorns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Thorns.c b/src/Thorns.c
index 6a6edfb..6f54b61 100644
--- a/src/Thorns.c
+++ b/src/Thorns.c
@@ -30,8 +30,8 @@ CCTK_FILEVERSION(CactusConnect_HTTPD_Thorns_c)
********************* Local Routine Prototypes *********************
********************************************************************/
-static int ThornMainPage(cGH *cctkGH, httpRequest *request, void *data);
-static int ThornPage(cGH *cctkGH, httpRequest *request, void *data);
+static int ThornMainPage(const cGH *cctkGH, httpRequest *request, void *data);
+static int ThornPage(const cGH *cctkGH, httpRequest *request, void *data);
/********************************************************************
@@ -109,7 +109,7 @@ int HTTPi_RegisterThornPages(void)
@calls
@calledby
@@*/
-static int ThornMainPage(cGH *cctkGH, httpRequest *request, void *data)
+static int ThornMainPage(const cGH *cctkGH, httpRequest *request, void *data)
{
int i;
int retval;
@@ -256,7 +256,7 @@ static int ThornMainPage(cGH *cctkGH, httpRequest *request, void *data)
@endhistory
@@*/
-static int ThornPage(cGH *cctkGH, httpRequest *request, void *data)
+static int ThornPage(const cGH *cctkGH, httpRequest *request, void *data)
{
int retval=0;
char message[4098];