diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-14 21:32:24 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-14 21:32:24 +0000 |
commit | bd971ca7b159f83c4249f350b53f14590ea4bc1a (patch) | |
tree | 83a1d53984b2058ae72c6b597b78dc19b804eec8 /src | |
parent | bf3eeadaddd22d0e06bfd4fec303f9f65d736dc0 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/Sockets.c | 12 |
1 files changed, 9 insertions, 3 deletions
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; |