projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bae7948
)
small size reduction by Bernhard Fischer <rep.nop@aon.at>
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 9 Jan 2007 23:43:28 +0000
(23:43 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 9 Jan 2007 23:43:28 +0000
(23:43 -0000)
sysklogd/syslogd.c
patch
|
blob
|
history
diff --git
a/sysklogd/syslogd.c
b/sysklogd/syslogd.c
index 3b511490f21ec223368fc7bd4edaa20c12c0dcbc..8b59962beab757d45e16fa2a93fb161a26444114 100644
(file)
--- a/
sysklogd/syslogd.c
+++ b/
sysklogd/syslogd.c
@@
-574,10
+574,9
@@
int syslogd_main(int argc, char **argv)
*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