diff options
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)); |