From 0d3ad52ee04162fb7e68b02ed1ac81c790d1133b Mon Sep 17 00:00:00 2001 From: zakird Date: Mon, 26 Aug 2013 12:26:01 -0400 Subject: [PATCH] fixing header guards close issue #48 --- src/aesrand.h | 4 ++-- src/cyclic.h | 4 ++-- src/get_gateway.h | 4 ++-- src/monitor.h | 4 ++-- src/output_modules/output_modules.h | 4 ++-- src/probe_modules/packet.h | 4 ++-- src/probe_modules/probe_modules.h | 4 ++-- src/recv.h | 4 ++-- src/send.h | 4 ++-- src/state.h | 4 ++-- src/validate.h | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/aesrand.h b/src/aesrand.h index 2d3dedb..352c14a 100644 --- a/src/aesrand.h +++ b/src/aesrand.h @@ -8,8 +8,8 @@ #include -#ifndef _AESRAND_H -#define _AESRAND_H +#ifndef AESRAND_H +#define AESRAND_H void aesrand_init(uint32_t seed); diff --git a/src/cyclic.h b/src/cyclic.h index f7bb7a2..f7f7387 100644 --- a/src/cyclic.h +++ b/src/cyclic.h @@ -8,8 +8,8 @@ #include -#ifndef _CYCLIC_H -#define _CYCLIC_H +#ifndef CYCLIC_H +#define CYCLIC_H int cyclic_init(uint32_t, uint32_t); diff --git a/src/get_gateway.h b/src/get_gateway.h index 398e3e1..ba5098b 100644 --- a/src/get_gateway.h +++ b/src/get_gateway.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef _GET_GATEWAY_H -#define _GET_GATEWAY_H +#ifndef GET_GATEWAY_H +#define GET_GATEWAY_H #include diff --git a/src/monitor.h b/src/monitor.h index c8bd9fb..9dcc673 100644 --- a/src/monitor.h +++ b/src/monitor.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef _MONITOR_H -#define _MONITOR_H +#ifndef MONITOR_H +#define MONITOR_H void monitor_run(); diff --git a/src/output_modules/output_modules.h b/src/output_modules/output_modules.h index bfda3f4..9e51927 100644 --- a/src/output_modules/output_modules.h +++ b/src/output_modules/output_modules.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef HEADER_OUTPUT_MODULES_H -#define HEADER_OUTPUT_MODULES_H +#ifndef OUTPUT_MODULES_H +#define OUTPUT_MODULES_H #include "../state.h" diff --git a/src/probe_modules/packet.h b/src/probe_modules/packet.h index 20f50c2..cca30b6 100644 --- a/src/probe_modules/packet.h +++ b/src/probe_modules/packet.h @@ -6,8 +6,8 @@ #include #include -#ifndef HEADER_ZMAP_PACKET_H -#define HEADER_ZMAP_PACKET_H +#ifndef PACKET_H +#define PACKET_H #define MAX_PACKET_SIZE 4096 diff --git a/src/probe_modules/probe_modules.h b/src/probe_modules/probe_modules.h index 18f8438..ff23611 100644 --- a/src/probe_modules/probe_modules.h +++ b/src/probe_modules/probe_modules.h @@ -1,7 +1,7 @@ #include "../state.h" -#ifndef HEADER_PROBE_MODULES_H -#define HEADER_PROBE_MODULES_H +#ifndef PROBE_MODULES_H +#define PROBE_MODULES_H typedef struct probe_response_type { const uint8_t is_success; diff --git a/src/recv.h b/src/recv.h index 8befea5..3c6f055 100644 --- a/src/recv.h +++ b/src/recv.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef _RECV_H -#define _RECV_H +#ifndef RECV_H +#define RECV_H int recv_update_pcap_stats(void); int recv_run(pthread_mutex_t *recv_ready_mutex); diff --git a/src/send.h b/src/send.h index 5116e45..1b96120 100644 --- a/src/send.h +++ b/src/send.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef _SEND_H -#define _SEND_H +#ifndef SEND_H +#define SEND_H int send_init(void); int send_run(void); diff --git a/src/state.h b/src/state.h index f1c967e..8c14288 100644 --- a/src/state.h +++ b/src/state.h @@ -13,8 +13,8 @@ #include #include -#ifndef _STATE_H -#define _STATE_H +#ifndef STATE_H +#define STATE_H #define MAX_PACKET_SIZE 4096 diff --git a/src/validate.h b/src/validate.h index e1b0230..4eb6362 100644 --- a/src/validate.h +++ b/src/validate.h @@ -6,8 +6,8 @@ * of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -#ifndef _VALIDATE_H -#define _VALIDATE_H +#ifndef VALIDATE_H +#define VALIDATE_H #define VALIDATE_BYTES 16