From: Ted Lemon Date: Fri, 17 May 1996 23:29:07 +0000 (+0000) Subject: error() returns void; declare all variables as extern X-Git-Tag: BETA-2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fdfeffecdabb16839b85b8a53b31d35d4c1677c;p=thirdparty%2Fdhcp.git error() returns void; declare all variables as extern --- diff --git a/dhcpd.h b/dhcpd.h index 558f8abad..d4eb1c30b 100644 --- a/dhcpd.h +++ b/dhcpd.h @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include @@ -213,16 +213,16 @@ int store_options PROTO ((unsigned char *, int, struct tree_cache **, char *pretty_print_option PROTO ((unsigned char, unsigned char *, int)); /* errwarn.c */ -int error PROTO ((char *, ...)); +void error PROTO ((char *, ...)); int warn PROTO ((char *, ...)); int note PROTO ((char *, ...)); int debug PROTO ((char *, ...)); int parse_warn PROTO ((char *, ...)); /* dhcpd.c */ -TIME cur_time; -TIME default_lease_time; -TIME max_lease_time; +extern TIME cur_time; +extern TIME default_lease_time; +extern TIME max_lease_time; extern u_int16_t server_port; extern int log_priority; diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 558f8abad..d4eb1c30b 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include @@ -213,16 +213,16 @@ int store_options PROTO ((unsigned char *, int, struct tree_cache **, char *pretty_print_option PROTO ((unsigned char, unsigned char *, int)); /* errwarn.c */ -int error PROTO ((char *, ...)); +void error PROTO ((char *, ...)); int warn PROTO ((char *, ...)); int note PROTO ((char *, ...)); int debug PROTO ((char *, ...)); int parse_warn PROTO ((char *, ...)); /* dhcpd.c */ -TIME cur_time; -TIME default_lease_time; -TIME max_lease_time; +extern TIME cur_time; +extern TIME default_lease_time; +extern TIME max_lease_time; extern u_int16_t server_port; extern int log_priority;