diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2005-07-12 20:34:26 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2005-07-12 20:34:26 +0000 |
commit | 38f0b3a10354cd2297ae173a07ade3acd1aebd9a (patch) | |
tree | d28b47cc27691bbd3b594794d0574ab12c0e62aa | |
parent | a59117c7ca4fa2ba7a06173fb2598e4fec4a259d (diff) | |
download | tinyproxy-38f0b3a10354cd2297ae173a07ade3acd1aebd9a.tar.gz tinyproxy-38f0b3a10354cd2297ae173a07ade3acd1aebd9a.zip |
* Specified Correct typedef in getsock_ip()
Changed the variable type for the namelen variable to the correct
socklen_t type. The configure script already checked for it, but for
some reason I never got around to actually using it in this function.
-rw-r--r-- | src/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: sock.c,v 1.41 2004-04-27 18:53:14 rjkaes Exp $ +/* $Id: sock.c,v 1.42 2005-07-12 20:34:26 rjkaes Exp $ * * Sockets are created and destroyed here. When a new connection comes in from * a client, we need to copy the socket and the create a second socket to the @@ -210,7 +210,7 @@ int getsock_ip(int fd, char* ipaddr) { struct sockaddr_storage name; - int namelen = sizeof(name); + socklen_t namelen = sizeof(name); assert(fd >= 0); |