diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-18 21:36:07 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-18 21:36:07 +0000 |
commit | 0ef166fdb8c7e7789ba3f832397e1d8f67fa1ae4 (patch) | |
tree | 2a2eecb742c932f44dcbaa8744cc8356976bccd1 /src/Sockets.c | |
parent | d01adbf300905ea2935df28759d4b538081de976 (diff) |
Changing exit to CCTK_Abort.
Getting rid of a stupid const qualifier.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@43 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Sockets.c')
-rw-r--r-- | src/Sockets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sockets.c b/src/Sockets.c index f329d5a..1984531 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -208,10 +208,10 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec) /* Check if any input is available on one or more active sockets. */ read_fd_set = active_fd_set; - if (ERROR_CHECK(select (FD_SETSIZE, &read_fd_set, NULL, NULL, &timeout))) + if (ERROR_CHECK(select (FD_SETSIZE, &read_fd_set, NULL, NULL, real_timeout))) { perror ("select"); - exit (EXIT_FAILURE); + CCTK_Abort(cctkGH, EXIT_FAILURE); } /* Service all the sockets with input pending. */ @@ -230,7 +230,7 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec) if (ERROR_CHECK(new)) { perror ("accept"); - exit (EXIT_FAILURE); + CCTK_Abort(cctkGH, EXIT_FAILURE); } fprintf (stderr, "Server: connect from host %s, port %hd.\n", @@ -300,7 +300,7 @@ int HTTP_Write(httpRequest *request, const char *buffer, size_t count) @endhistory @@*/ -int HTTP_Read(httpRequest *request, const char *buffer, size_t count) +int HTTP_Read(httpRequest *request, char *buffer, size_t count) { int retval; |