include headers with prototypes to make sure prototypes match

This commit is contained in:
Russ Dill 2003-12-16 20:44:15 +00:00
parent 5f46f1c241
commit 76729b8c69
8 changed files with 9 additions and 1 deletions

View File

@ -39,6 +39,7 @@
#include "dhcpd.h"
#include "clientpacket.h"
#include "options.h"
#include "dhcpc.h"
#include "common.h"

View File

@ -1,6 +1,8 @@
#ifndef _CLIENTPACKET_H
#define _CLIENTPACKET_H
#include "packet.h"
unsigned long random_xid(void);
int send_discover(unsigned long xid, unsigned long requested);
int send_selecting(unsigned long xid, unsigned long server, unsigned long requested);

View File

@ -12,6 +12,7 @@
#include "dhcpd.h"
#include "files.h"
#include "options.h"
#include "leases.h"
#include "arpping.h"
#include "common.h"

View File

@ -14,6 +14,7 @@
#endif
#include <errno.h>
#include "packet.h"
#include "dhcpd.h"
#include "options.h"
#include "common.h"

View File

@ -32,7 +32,7 @@
#include "options.h"
#include "dhcpd.h"
#include "dhcpc.h"
#include "options.h"
#include "script.h"
#include "common.h"
/* get a rough idea of how long an option will be (rounding up...) */

View File

@ -25,6 +25,7 @@
#include <string.h>
#include <time.h>
#include "serverpacket.h"
#include "dhcpd.h"
#include "options.h"
#include "common.h"

View File

@ -1,6 +1,7 @@
#ifndef _SERVERPACKET_H
#define _SERVERPACKET_H
#include "packet.h"
int sendOffer(struct dhcpMessage *oldpacket);
int sendNAK(struct dhcpMessage *oldpacket);

View File

@ -41,6 +41,7 @@
#include <linux/if_ether.h>
#endif
#include "socket.h"
#include "common.h"
int read_interface(char *interface, int *ifindex, u_int32_t *addr, unsigned char *arp)