diff options
author | tradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2001-04-03 11:52:30 +0000 |
---|---|---|
committer | tradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2001-04-03 11:52:30 +0000 |
commit | 9440c6b2556d012a91c44eee00c56790819b722f (patch) | |
tree | 570ff51e6484286a8aef911fd7e1e3670b4f989b /src/http.c | |
parent | f205b15ff648ff94aa3c3ab40a66a2cc9404f864 (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/http.c')
-rw-r--r-- | src/http.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -112,6 +112,10 @@ int HTTP_ReadFromClient(cGH *cctkGH, void *connection) { keepalive = DealWithRequest(cctkGH, &request, buffer, nbytes); } + else + { + keepalive = 0; + } if(keepalive) { @@ -301,9 +305,7 @@ static int DealWithRequest(cGH *cctkGH, httpRequest *request, char *buffer, int { char *line; char *tmp; - int size; int start; - char *token; char *method; char *request_uri; char *http_version; @@ -382,7 +384,7 @@ static int DealWithRequest(cGH *cctkGH, httpRequest *request, char *buffer, int printf("Start of request header\n"); #endif - while(line = NextLine(tmp, &start, bufsize)) + while((line = NextLine(tmp, &start, bufsize)) != NULL) { if(! request->body && *line != 0) { @@ -456,6 +458,8 @@ static int AddHeader(httpRequest *request, const char *line) char *temp; struct httpHeader *header_line; + keylength = -1; + /* Split the string */ value = strchr(line, ':'); @@ -557,7 +561,7 @@ static int StripArgs(httpRequest *request, char *request_uri) request->arguments = Util_HashCreate(INITIAL_SIZE); /* Parse the argument list */ - *position++; + position++; token = strtok(position, "&"); |