From f4a2a487d677eb1ec2851c9d491af9c1cd4d7a4c Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Wed, 12 Mar 2014 20:55:35 -0400 Subject: [PATCH] Mark more function prototypes as extern. --- ndhc/arp.h | 18 +++++++++--------- ndhc/dhcp.h | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ndhc/arp.h b/ndhc/arp.h index ef8f8db..49c5a03 100644 --- a/ndhc/arp.h +++ b/ndhc/arp.h @@ -59,14 +59,14 @@ extern int arp_probe_min; extern int arp_probe_max; extern int arp_relentless_def; -void arp_reset_send_stats(void); -int arp_close_fd(struct client_state_t *cs); -int arp_check(struct client_state_t *cs, struct dhcpmsg *packet); -int arp_gw_check(struct client_state_t *cs); -void arp_set_defense_mode(struct client_state_t *cs); -void arp_success(struct client_state_t *cs); -void handle_arp_response(struct client_state_t *cs); -void handle_arp_timeout(struct client_state_t *cs, long long nowts); -long long arp_get_wake_ts(void); +extern void arp_reset_send_stats(void); +extern int arp_close_fd(struct client_state_t *cs); +extern int arp_check(struct client_state_t *cs, struct dhcpmsg *packet); +extern int arp_gw_check(struct client_state_t *cs); +extern void arp_set_defense_mode(struct client_state_t *cs); +extern void arp_success(struct client_state_t *cs); +extern void handle_arp_response(struct client_state_t *cs); +extern void handle_arp_timeout(struct client_state_t *cs, long long nowts); +extern long long arp_get_wake_ts(void); #endif /* ARP_H_ */ diff --git a/ndhc/dhcp.h b/ndhc/dhcp.h index f2ce3c1..a1d8cc1 100644 --- a/ndhc/dhcp.h +++ b/ndhc/dhcp.h @@ -80,15 +80,15 @@ struct udp_dhcp_packet { struct dhcpmsg data; }; -void set_listen_raw(struct client_state_t *cs); -void set_listen_cooked(struct client_state_t *cs); -void set_listen_none(struct client_state_t *cs); -void handle_packet(struct client_state_t *cs); -int send_discover(struct client_state_t *cs); -int send_selecting(struct client_state_t *cs); -int send_renew(struct client_state_t *cs); -int send_rebind(struct client_state_t *cs); -int send_decline(struct client_state_t *cs, uint32_t server); -int send_release(struct client_state_t *cs); +extern void set_listen_raw(struct client_state_t *cs); +extern void set_listen_cooked(struct client_state_t *cs); +extern void set_listen_none(struct client_state_t *cs); +extern void handle_packet(struct client_state_t *cs); +extern int send_discover(struct client_state_t *cs); +extern int send_selecting(struct client_state_t *cs); +extern int send_renew(struct client_state_t *cs); +extern int send_rebind(struct client_state_t *cs); +extern int send_decline(struct client_state_t *cs, uint32_t server); +extern int send_release(struct client_state_t *cs); #endif