From 7df009702a072bb13b63c4a546b7c2e2f279b9e4 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sat, 27 Jan 1996 05:55:04 +0000 Subject: [PATCH] * network.c (setup_network): strtol is good enough for port number, and sunos doesn't have strtoul (and nothing else in the tree uses it.) (add_port): use proper old-style definition. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7398 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 7 +++++++ src/kdc/network.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ce71b13c0..9395047b3 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,10 @@ +Sat Jan 27 00:53:41 1996 Mark Eichin + + * network.c (setup_network): strtol is good enough for port + number, and sunos doesn't have strtoul (and nothing else in the + tree uses it.) + (add_port): use proper old-style definition. + Wed Dec 13 03:51:53 1995 Chris Provenzano (proven@mit.edu) * kerberos_v4.c : Remove mkvno for krb5_db_entry diff --git a/src/kdc/network.c b/src/kdc/network.c index b986505d8..7f27ee58b 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -49,7 +49,8 @@ static int max_udp_ports = 0; static fd_set select_fds; static int select_nfds; -static krb5_error_code add_port(u_short port) +static krb5_error_code add_port(port) + u_short port; { int i; int *new_fds; @@ -103,7 +104,7 @@ const char *prog; cp++; continue; } - port = strtoul(cp, &cp, 10); + port = strtol(cp, &cp, 10); if (cp == 0) break; retval = add_port(port); -- 2.26.2