]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Only supply prototypes where appropriate
authorTed Lemon <source@isc.org>
Wed, 26 Feb 1997 18:25:07 +0000 (18:25 +0000)
committerTed Lemon <source@isc.org>
Wed, 26 Feb 1997 18:25:07 +0000 (18:25 +0000)
common/dispatch.c
includes/dhcpd.h

index 5f6027509baf4856a5545bce4bd462cf626ccedd..5e683a75749aa61072931882b55af79ece39b82a 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.33 1997/02/22 12:26:41 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.34 1997/02/26 18:24:40 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -632,7 +632,7 @@ int locate_network (packet)
 
 void add_timeout (when, where, what)
        TIME when;
-       void (*where) (struct interface_info *);
+       void (*where) PROTO ((struct interface_info *));
        struct interface_info *what;
 {
        struct timeout *t, *q;
@@ -693,7 +693,7 @@ void add_timeout (when, where, what)
 }
 
 void cancel_timeout (where, what)
-       void (*where) (struct interface_info *);
+       void (*where) PROTO ((struct interface_info *));
        struct interface_info *what;
 {
        struct timeout *t, *q;
index 6863b8b6d9e9e6ac6aecd5fc773b7237933784d8..8564b977f8cb3cf9d2affe7dacfdbecc035c0f1b 100644 (file)
@@ -304,7 +304,7 @@ struct hardware_link {
 struct timeout {
        struct timeout *next;
        TIME when;
-       void (*func)(struct interface_info *);
+       void (*func) PROTO ((struct interface_info *));
        struct interface_info *interface;
 };
 
@@ -636,9 +636,9 @@ void do_packet PROTO ((struct interface_info *,
                       unsigned char *, int,
                       unsigned short, struct iaddr, struct hardware *));
 int locate_network PROTO ((struct packet *));
-void add_timeout PROTO ((TIME, void (*) (struct interface_info *),
+void add_timeout PROTO ((TIME, void (*) PROTO ((struct interface_info *)),
                         struct interface_info *));
-void cancel_timeout PROTO ((void (*) (struct interface_info *),
+void cancel_timeout PROTO ((void (*) PROTO ((struct interface_info *)),
                            struct interface_info *));
 
 /* hash.c */