summaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-19 20:32:02 +0000
committerDenis Vlasenko2006-12-19 20:32:02 +0000
commit28703015ab71784f40bc97f720ed900e26bd03ca (patch)
treeff0f9a21d1822c9a2f35819db4156d9555f56116 /networking/inetd.c
parentf58906b6463436f6a19f72d43c3ab4ba69d79104 (diff)
downloadbusybox-28703015ab71784f40bc97f720ed900e26bd03ca.zip
busybox-28703015ab71784f40bc97f720ed900e26bd03ca.tar.gz
u_short, ulong exterminated
fdiskXXX: add a bit of sanity (not enough by far)
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index ec7b2e8..4856b11 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -985,7 +985,7 @@ static void config(int sig ATTRIBUTE_UNUSED)
} else
#endif
{
- u_short port = htons(atoi(sep->se_service));
+ uint16_t port = htons(atoi(sep->se_service));
// FIXME: atoi_or_else(str, 0) would be handy here
if (!port) {
/*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname));
@@ -1037,8 +1037,8 @@ static void config(int sig ATTRIBUTE_UNUSED)
register_rpc(sep);
} else
#endif
- {
- u_short port = htons(atoi(sep->se_service));
+ {
+ uint16_t port = htons(atoi(sep->se_service));
if (!port) {
/*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname));