aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-09 23:43:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-09 23:43:28 +0000
commit59f2c34037cc1044d9966acdb86ebc11b42dbd86 (patch)
tree905b56a2662240c6ed9a70338effdb5670bc1b44
parentbae7948a5af99ed3340450c811a2615f253a7bdd (diff)
downloadbusybox-w32-59f2c34037cc1044d9966acdb86ebc11b42dbd86.tar.gz
busybox-w32-59f2c34037cc1044d9966acdb86ebc11b42dbd86.tar.bz2
busybox-w32-59f2c34037cc1044d9966acdb86ebc11b42dbd86.zip
small size reduction by Bernhard Fischer <rep.nop@aon.at>
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 3b511490f..8b59962be 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -574,10 +574,9 @@ int syslogd_main(int argc, char **argv)
574 *p++ = '\0'; 574 *p++ = '\0';
575 port = xatou16(p); 575 port = xatou16(p);
576 } 576 }
577 remoteAddr.sin_family = AF_INET;
578 /* FIXME: looks ip4-specific. need to do better */ 577 /* FIXME: looks ip4-specific. need to do better */
579 remoteAddr.sin_addr = *(struct in_addr *) *(xgethostbyname(opt_R)->h_addr_list); 578 bb_lookup_host(&remoteAddr, opt_R);
580 remoteAddr.sin_port = htons(port); 579 remoteAddr.sin_port = bb_lookup_port(port, "udp", port);
581 } 580 }
582 //if (option_mask32 & OPT_locallog) // -L 581 //if (option_mask32 & OPT_locallog) // -L
583#endif 582#endif