aboutsummaryrefslogtreecommitdiff
path: root/src/Headers.c
diff options
context:
space:
mode:
authortradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-04-03 11:52:30 +0000
committertradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-04-03 11:52:30 +0000
commit9440c6b2556d012a91c44eee00c56790819b722f (patch)
tree570ff51e6484286a8aef911fd7e1e3670b4f989b /src/Headers.c
parentf205b15ff648ff94aa3c3ab40a66a2cc9404f864 (diff)
Fixed most of the compiler warnings.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@120 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Headers.c')
-rw-r--r--src/Headers.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/Headers.c b/src/Headers.c
index 50d6700..ac2f135 100644
--- a/src/Headers.c
+++ b/src/Headers.c
@@ -10,6 +10,8 @@
#include "cctk.h"
+#include "util_String.h"
+
#include <string.h>
@@ -40,6 +42,9 @@ struct httpLink
********************* Other Routine Prototypes *********************
********************************************************************/
+int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu);
+int HTTP_ContentFooter(cGH *GH, int choice, int len, char *footer);
+
/********************************************************************
********************* Local Data *****************************
********************************************************************/
@@ -102,7 +107,9 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
char *file;
char *dir;
- int titlelen,datelen,timelen,parlen;
+
+ /* avoid compiler warning about unused parameter */
+ len = len;
if(ContentLinks)
{
@@ -121,12 +128,12 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
if (choice == 0)
{
/* Find strings needed for nonmain-page headers */
- titlelen = CCTK_RunTitle(TITLE_ARRAY_SIZE,title);
- parlen = CCTK_ParameterFilename(200,parfile);
+ CCTK_RunTitle(TITLE_ARRAY_SIZE,title);
+ CCTK_ParameterFilename(200,parfile);
Util_SplitFilename(&dir,&file,parfile);
- datelen = Util_CurrentDate(50,currentdate);
- timelen = Util_CurrentTime(50,currenttime);
+ Util_CurrentDate(50,currentdate);
+ Util_CurrentTime(50,currenttime);
/* Build the header */
sprintf( header,
@@ -207,8 +214,11 @@ int HTTP_ContentHeader(cGH *GH, int choice, int len, char *header, char *menu)
@@*/
int HTTP_ContentFooter(cGH *GH, int choice, int len, char *footer)
{
+ /* avoid compiler warnings about unused parameters */
+ GH = GH;
+ choice = choice;
+ len = len;
+
strcpy(footer,cactus_footer);
return strlen(footer);
}
-
-