From 2f620dce9c056f91db58e98e67c8cd472a1df141 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 16 May 1996 07:18:45 +0000 Subject: [PATCH] Define cdefs before osdeps; macrofy a couple of prototypes --- dhcpd.h | 8 ++++---- includes/dhcpd.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dhcpd.h b/dhcpd.h index 1d7ad7d5..de7e7548 100644 --- a/dhcpd.h +++ b/dhcpd.h @@ -55,9 +55,9 @@ #include #include +#include "cdefs.h" #include "osdep.h" #include "dhcp.h" -#include "cdefs.h" #include "tree.h" #include "hash.h" #include "inet.h" @@ -295,8 +295,8 @@ struct host_decl *find_host_by_name PROTO ((char *name)); struct host_decl *find_host_by_addr PROTO ((int, unsigned char *, int)); void new_address_range PROTO ((struct iaddr, struct iaddr, struct subnet *)); -extern struct subnet *find_subnet (struct iaddr); -void enter_subnet (struct subnet *); +extern struct subnet *find_subnet PROTO ((struct iaddr)); +void enter_subnet PROTO ((struct subnet *)); void enter_lease PROTO ((struct lease *)); int supersede_lease PROTO ((struct lease *, struct lease *, int)); void release_lease PROTO ((struct lease *)); @@ -319,7 +319,7 @@ struct tree_cache *new_tree_cache PROTO ((char *)); struct hash_table *new_hash_table PROTO ((int, char *)); struct hash_bucket *new_hash_bucket PROTO ((char *)); struct lease *new_lease PROTO ((char *)); -struct lease *new_leases (int, char *); +struct lease *new_leases PROTO ((int, char *)); struct subnet *new_subnet PROTO ((char *)); struct class *new_class PROTO ((char *)); void free_class PROTO ((struct class *, char *)); diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 1d7ad7d5..de7e7548 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -55,9 +55,9 @@ #include #include +#include "cdefs.h" #include "osdep.h" #include "dhcp.h" -#include "cdefs.h" #include "tree.h" #include "hash.h" #include "inet.h" @@ -295,8 +295,8 @@ struct host_decl *find_host_by_name PROTO ((char *name)); struct host_decl *find_host_by_addr PROTO ((int, unsigned char *, int)); void new_address_range PROTO ((struct iaddr, struct iaddr, struct subnet *)); -extern struct subnet *find_subnet (struct iaddr); -void enter_subnet (struct subnet *); +extern struct subnet *find_subnet PROTO ((struct iaddr)); +void enter_subnet PROTO ((struct subnet *)); void enter_lease PROTO ((struct lease *)); int supersede_lease PROTO ((struct lease *, struct lease *, int)); void release_lease PROTO ((struct lease *)); @@ -319,7 +319,7 @@ struct tree_cache *new_tree_cache PROTO ((char *)); struct hash_table *new_hash_table PROTO ((int, char *)); struct hash_bucket *new_hash_bucket PROTO ((char *)); struct lease *new_lease PROTO ((char *)); -struct lease *new_leases (int, char *); +struct lease *new_leases PROTO ((int, char *)); struct subnet *new_subnet PROTO ((char *)); struct class *new_class PROTO ((char *)); void free_class PROTO ((struct class *, char *));