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
#define _CLIENTPACKET_H
#ifndef CLIENTPACKET_H_
#define CLIENTPACKET_H_
#include <stdint.h>

View File

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

View File

@ -1,6 +1,6 @@
/* options.h */
#ifndef _OPTIONS_H
#define _OPTIONS_H
#ifndef OPTIONS_H_
#define OPTIONS_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_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data);
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

View File

@ -1,5 +1,5 @@
#ifndef _PACKET_H
#define _PACKET_H
#ifndef PACKET_H_
#define PACKET_H_
#include <netinet/udp.h>
#include <netinet/ip.h>
@ -20,7 +20,7 @@ struct dhcpMessage {
uint8_t sname[64];
uint8_t file[128];
uint32_t cookie;
uint8_t options[308]; /* 312 - cookie */
uint8_t options[308]; /* 312 - cookie */
};
struct udp_dhcp_packet {

View File

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

View File

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