diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 17:39:09 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 17:39:09 +0000 |
commit | ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664 (patch) | |
tree | ef3d6dbbb8fe7268cd2a922a5de3e17f0814fc1e /net.c | |
parent | 9c0d5b9e4b119e6034a60a69def51c0621c3a299 (diff) | |
download | rsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.tar.gz rsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.tar.xz rsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.zip |
some minor things in regard to portability
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -729,13 +729,7 @@ void debugListenInfo(int fd, char *type) struct sockaddr sa; struct sockaddr_in *ipv4; struct sockaddr_in6 *ipv6; -/* TODO: do this below better -- autotools? */ -#if defined(__hpux) -# define SOCKLEN_T int -#else -# define SOCKLEN_T socklen_t -#endif - SOCKLEN_T saLen = sizeof(sa); + socklen_t saLen = sizeof(sa); if(getsockname(fd, &sa, &saLen) == 0) { switch(sa.sa_family) { |