Fix header include guards to not use leading underscores.

This commit is contained in:
Nicholas J. Kain 2010-11-13 06:51:57 -05:00
parent 336a54fa47
commit edf3b02b6a
6 changed files with 13 additions and 14 deletions

View File

@ -1,5 +1,5 @@
#ifndef _CLIENTPACKET_H #ifndef CLIENTPACKET_H_
#define _CLIENTPACKET_H #define CLIENTPACKET_H_
#include <stdint.h> #include <stdint.h>

View File

@ -1,5 +1,5 @@
#ifndef _DHCPC_H #ifndef DHCPC_H_
#define _DHCPC_H #define DHCPC_H_
enum { enum {
INIT_SELECTING, INIT_SELECTING,

View File

@ -1,6 +1,6 @@
/* options.h */ /* options.h */
#ifndef _OPTIONS_H #ifndef OPTIONS_H_
#define _OPTIONS_H #define OPTIONS_H_
#include "packet.h" #include "packet.h"
@ -35,6 +35,5 @@ int end_option(unsigned char *optionptr);
int add_option_string(unsigned char *optionptr, unsigned char *string); int add_option_string(unsigned char *optionptr, unsigned char *string);
int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data); int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data);
struct option_set *find_option(struct option_set *opt_list, char code); struct option_set *find_option(struct option_set *opt_list, char code);
/* void attach_option(struct option_set **opt_list, struct dhcp_option *option, char *buffer, int length); */
#endif #endif

View File

@ -1,5 +1,5 @@
#ifndef _PACKET_H #ifndef PACKET_H_
#define _PACKET_H #define PACKET_H_
#include <netinet/udp.h> #include <netinet/udp.h>
#include <netinet/ip.h> #include <netinet/ip.h>

View File

@ -1,5 +1,5 @@
#ifndef _SCRIPT_H #ifndef SCRIPT_H_
#define _SCRIPT_H #define SCRIPT_H_
enum { enum {
SCRIPT_DECONFIG = 0, SCRIPT_DECONFIG = 0,

View File

@ -1,6 +1,6 @@
/* socket.h */ /* socket.h */
#ifndef _SOCKET_H #ifndef SOCKET_H_
#define _SOCKET_H #define SOCKET_H_
int read_interface(char *interface, int *ifindex, uint32_t *addr, unsigned char *arp); int read_interface(char *interface, int *ifindex, uint32_t *addr, unsigned char *arp);
int listen_socket(unsigned int ip, int port, char *inf); int listen_socket(unsigned int ip, int port, char *inf);