diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-19 20:32:02 +0000 |
commit | 28703015ab71784f40bc97f720ed900e26bd03ca (patch) | |
tree | ff0f9a21d1822c9a2f35819db4156d9555f56116 /networking/inetd.c | |
parent | f58906b6463436f6a19f72d43c3ab4ba69d79104 (diff) | |
download | busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.gz busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.tar.bz2 busybox-w32-28703015ab71784f40bc97f720ed900e26bd03ca.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index ec7b2e8f7..4856b11ae 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -985,7 +985,7 @@ static void config(int sig ATTRIBUTE_UNUSED) | |||
985 | } else | 985 | } else |
986 | #endif | 986 | #endif |
987 | { | 987 | { |
988 | u_short port = htons(atoi(sep->se_service)); | 988 | uint16_t port = htons(atoi(sep->se_service)); |
989 | // FIXME: atoi_or_else(str, 0) would be handy here | 989 | // FIXME: atoi_or_else(str, 0) would be handy here |
990 | if (!port) { | 990 | if (!port) { |
991 | /*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname)); | 991 | /*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname)); |
@@ -1037,8 +1037,8 @@ static void config(int sig ATTRIBUTE_UNUSED) | |||
1037 | register_rpc(sep); | 1037 | register_rpc(sep); |
1038 | } else | 1038 | } else |
1039 | #endif | 1039 | #endif |
1040 | { | 1040 | { |
1041 | u_short port = htons(atoi(sep->se_service)); | 1041 | uint16_t port = htons(atoi(sep->se_service)); |
1042 | 1042 | ||
1043 | if (!port) { | 1043 | if (!port) { |
1044 | /*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname)); | 1044 | /*XXX*/ strncpy(protoname, sep->se_proto, sizeof(protoname)); |