From bd971ca7b159f83c4249f350b53f14590ea4bc1a Mon Sep 17 00:00:00 2001 From: goodale Date: Thu, 14 Sep 2000 21:32:24 +0000 Subject: Removing non-portable types. Uses HAVE_SOCKLEN_T to decide whether to use socklen_t or int for argument to accept. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@7 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Sockets.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/Sockets.c') diff --git a/src/Sockets.c b/src/Sockets.c index 6643ffd..1ee3753 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -38,7 +38,7 @@ CCTK_FILEVERSION(DevThorns_httpd_Socket_c) ********************* Local Routine Prototypes ********************* ********************************************************************/ -int HTTP_MakeSocket (uint16_t port); +int HTTP_MakeSocket (unsigned long port); /******************************************************************** ********************* Other Routine Prototypes ********************* @@ -139,7 +139,13 @@ int HTTP_ShutdownServer(void) int HTTP_Poll(cGH *cctkGH, long sec, long usec) { int i; - size_t size; + +#ifdef HAVE_SOCKLEN_T + socklen_t size; +#else + int size; +#endif + fd_set read_fd_set; struct sockaddr_in clientname; @@ -214,7 +220,7 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec) @endhistory @@*/ -int HTTP_MakeSocket (uint16_t port) +int HTTP_MakeSocket (unsigned long port) { int sock; struct sockaddr_in name; -- cgit v1.2.3