From ff4b976edc4a045297fdb23da2055dad865a48b6 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 2 Jul 2002 04:29:44 +0000 Subject: [PATCH] * network.c (process_packet): Now static. Drop unused "portnum" argument. Change caller. * kdc_util.h (process_packet): Delete declaration. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14597 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 4 ++++ src/kdc/kdc_util.h | 1 - src/kdc/network.c | 5 ++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 91e16a330..a9b63ce9d 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,5 +1,9 @@ 2002-07-02 Ken Raeburn + * network.c (process_packet): Now static. Drop unused "portnum" + argument. Change caller. + * kdc_util.h (process_packet): Delete declaration. + * sock2p.c (inet_ntop): Disable definition; it should be provided by the socket support header files. * kdc_util.h (inet_ntop): Delete declaration. diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index b74173db8..8e6625262 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -127,7 +127,6 @@ krb5_error_code setup_server_realm (krb5_principal); krb5_error_code listen_and_process (const char *); krb5_error_code setup_network (const char *); krb5_error_code closedown_network (const char *); -void process_packet (int, const char *, int); /* policy.c */ int against_local_policy_as (krb5_kdc_req *, krb5_db_entry, diff --git a/src/kdc/network.c b/src/kdc/network.c index cf4cf20c8..babb676cf 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -262,10 +262,9 @@ setup_network(prog) return 0; } -void process_packet(port_fd, prog, portnum) +static void process_packet(port_fd, prog) int port_fd; const char *prog; - int portnum; { int cc, saddr_len; krb5_fulladdr faddr; @@ -372,7 +371,7 @@ const char *prog; } for (i=0; i