diff options
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -77,7 +77,7 @@ static void DestroyArgument(httpArg *argument); @endhistory @@*/ -int HTTP_ReadFromClient(cGH *cctkGH, int filedes) +int HTTP_ReadFromClient(cGH *cctkGH, void *connection) { int retval; int keepalive; @@ -87,14 +87,14 @@ int HTTP_ReadFromClient(cGH *cctkGH, int filedes) InitialiseRequest(&request); - request.filedes = filedes; + request.connection = connection; nbytes = HTTP_Read(&request, buffer, MAXMSG); if (nbytes < 0) { /* Read error. */ - perror ("read"); + perror ("HTTP_Read"); CCTK_Abort(cctkGH, EXIT_FAILURE); } else if (nbytes == 0) @@ -669,7 +669,7 @@ static int InitialiseRequest(httpRequest *request) /* Initialise the private data */ - request->filedes = -1; + request->connection = NULL; request->headers = NULL; request->arguments = NULL; |