summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 17:39:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 17:39:09 +0000
commitae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664 (patch)
treeef3d6dbbb8fe7268cd2a922a5de3e17f0814fc1e /net.c
parent9c0d5b9e4b119e6034a60a69def51c0621c3a299 (diff)
downloadrsyslog-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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net.c b/net.c
index f7769f13..b7be521a 100644
--- a/net.c
+++ b/net.c
@@ -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) {