svn commit: trunk/busybox/sysklogd

vda at busybox.net vda at busybox.net
Tue Jan 9 23:43:28 UTC 2007


Author: vda
Date: 2007-01-09 15:43:28 -0800 (Tue, 09 Jan 2007)
New Revision: 17213

Log:
small size reduction by Bernhard Fischer <rep.nop at aon.at>


Modified:
   trunk/busybox/sysklogd/syslogd.c


Changeset:
Modified: trunk/busybox/sysklogd/syslogd.c
===================================================================
--- trunk/busybox/sysklogd/syslogd.c	2007-01-09 23:42:43 UTC (rev 17212)
+++ trunk/busybox/sysklogd/syslogd.c	2007-01-09 23:43:28 UTC (rev 17213)
@@ -574,10 +574,9 @@
 			*p++ = '\0';
 			port = xatou16(p);
 		}
-		remoteAddr.sin_family = AF_INET;
 		/* FIXME: looks ip4-specific. need to do better */
-		remoteAddr.sin_addr = *(struct in_addr *) *(xgethostbyname(opt_R)->h_addr_list);
-		remoteAddr.sin_port = htons(port);
+		bb_lookup_host(&remoteAddr, opt_R);
+		remoteAddr.sin_port = bb_lookup_port(port, "udp", port);
 	}
 	//if (option_mask32 & OPT_locallog) // -L
 #endif




More information about the busybox-cvs mailing list