diff options
author | Mark Eichin <eichin@mit.edu> | 1996-01-27 05:55:04 +0000 |
---|---|---|
committer | Mark Eichin <eichin@mit.edu> | 1996-01-27 05:55:04 +0000 |
commit | 7df009702a072bb13b63c4a546b7c2e2f279b9e4 (patch) | |
tree | 44cd3549b509bbd5ecbafdb07f55cbc503d3cded /src | |
parent | f3882a3cc54dc5700951d0dda9d327a6cdd8e2df (diff) | |
download | krb5-7df009702a072bb13b63c4a546b7c2e2f279b9e4.tar.gz krb5-7df009702a072bb13b63c4a546b7c2e2f279b9e4.tar.xz krb5-7df009702a072bb13b63c4a546b7c2e2f279b9e4.zip |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/kdc/ChangeLog | 7 | ||||
-rw-r--r-- | src/kdc/network.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ce71b13c04..9395047b3b 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,10 @@ +Sat Jan 27 00:53:41 1996 Mark Eichin <eichin@cygnus.com> + + * 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 b986505d8c..7f27ee58bd 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); |