* network.c (process_packet): Now static. Drop unused "portnum" argument.
authorKen Raeburn <raeburn@mit.edu>
Tue, 2 Jul 2002 04:29:44 +0000 (04:29 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 2 Jul 2002 04:29:44 +0000 (04:29 +0000)
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
src/kdc/kdc_util.h
src/kdc/network.c

index 91e16a330674b851664cce7fa033825ee2b5a438..a9b63ce9df48071b6b4d0eb2be128a5901c3d3c4 100644 (file)
@@ -1,5 +1,9 @@
 2002-07-02  Ken Raeburn  <raeburn@mit.edu>
 
+       * 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. 
index b74173db8dbaa5da9285c683dc3f38eeed4113aa..8e66252620b3b980f334b88acc98b24c030ab9a2 100644 (file)
@@ -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,
index cf4cf20c83bab1a94c26ffa6d9342bd55a3787d5..babb676cfc2f1cef6c360fa411d89098a2defe21 100644 (file)
@@ -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<n_sockets; i++) {
            if (FD_ISSET(udp_port_fds[i], &readfds)) {
-               process_packet(udp_port_fds[i], prog, udp_port_nums[i]);
+               process_packet(udp_port_fds[i], prog);
                nfound--;
                if (nfound == 0)
                    break;