Skip to content

Commit d4598cc

Browse files
committed
Get rid of some warnings regarding header guards
1 parent 0ebc0ed commit d4598cc

15 files changed

+34
-28
lines changed

opentracker.c

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static char * g_serverdir;
4848
static char * g_serveruser;
4949
static unsigned int g_udp_workers;
5050

51+
static void panic( const char *routing ) __attribute__ ((noreturn));
5152
static void panic( const char *routine ) {
5253
fprintf( stderr, "%s: %s\n", routine, strerror(errno) );
5354
exit( 111 );

ot_accesslist.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_ACCESSLIST_H__
7-
#define __OT_ACCESSLIST_H__
6+
#ifndef OT_ACCESSLIST_H__
7+
#define OT_ACCESSLIST_H__
88

99
#if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE )
1010
# error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive.

ot_clean.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_CLEAN_H__
7-
#define __OT_CLEAN_H__
6+
#ifndef OT_CLEAN_H__
7+
#define OT_CLEAN_H__
88

99
/* The amount of time a clean cycle should take */
1010
#define OT_CLEAN_INTERVAL_MINUTES 2

ot_fullscrape.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_FULLSCRAPE_H__
7-
#define __OT_FULLSCRAPE_H__
6+
#ifndef OT_FULLSCRAPE_H__
7+
#define OT_FULLSCRAPE_H__
88

99
#ifdef WANT_FULLSCRAPE
1010

ot_http.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_HTTP_H__
7-
#define __OT_HTTP_H__
6+
#ifndef OT_HTTP_H__
7+
#define OT_HTTP_H__
88

99
typedef enum {
1010
STRUCT_HTTP_FLAG_WAITINGFORTASK = 1,

ot_iovec.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_IOVEC_H__
7-
#define __OT_IOVEC_H__
6+
#ifndef OT_IOVEC_H__
7+
#define OT_IOVEC_H__
88

99
#include <sys/uio.h>
1010

ot_livesync.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_LIVESYNC_H__
7-
#define __OT_LIVESYNC_H__
6+
#ifndef OT_LIVESYNC_H__
7+
#define OT_LIVESYNC_H__
88

99
#include "io.h"
1010
#include "trackerlogic.h"

ot_mutex.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_MUTEX_H__
7-
#define __OT_MUTEX_H__
6+
#ifndef OT_MUTEX_H__
7+
#define OT_MUTEX_H__
88

99
#include <sys/uio.h>
1010

ot_rijndael.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
1010
$id$ */
1111

12-
#ifndef __OT_RIJNDAEL_H__
13-
#define __OT_RIJNDAEL_H__
12+
#ifndef OT_RIJNDAEL_H__
13+
#define OT_RIJNDAEL_H__
1414

1515
#include <stdint.h>
1616

1717
int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] );
1818
void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]);
1919

20+
extern const char *g_version_rijndael_c;
21+
2022
#endif

ot_stats.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_STATS_H__
7-
#define __OT_STATS_H__
6+
#ifndef OT_STATS_H__
7+
#define OT_STATS_H__
88

99
typedef enum {
1010
EVENT_ACCEPT,
@@ -46,4 +46,7 @@ size_t stats_return_tracker_version( char *reply );
4646
void stats_init( );
4747
void stats_deinit( );
4848

49+
extern const char *g_version_rijndael_c;
50+
extern const char *g_version_livesync_c;
51+
4952
#endif

ot_sync.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_SYNC_H__
7-
#define __OT_SYNC_H__
6+
#ifndef OT_SYNC_H__
7+
#define OT_SYNC_H__
88

99
#ifdef WANT_SYNC_BATCH
1010
enum { SYNC_IN, SYNC_OUT };

ot_udp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_UDP_H__
7-
#define __OT_UDP_H__
6+
#ifndef OT_UDP_H__
7+
#define OT_UDP_H__
88

99
void udp_init( int64 sock, unsigned int worker_count );
1010
int handle_udp6( int64 serversocket, struct ot_workstruct *ws );

ot_vector.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_VECTOR_H__
7-
#define __OT_VECTOR_H__
6+
#ifndef OT_VECTOR_H__
7+
#define OT_VECTOR_H__
88

99
/* These defines control vectors behaviour */
1010
#define OT_VECTOR_MIN_MEMBERS 2

scan_urlencoded_query.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __SCAN_URLENCODED_QUERY_H__
7-
#define __SCAN_URLENCODED_QUERY_H__
6+
#ifndef SCAN_URLENCODED_QUERY_H__
7+
#define SCAN_URLENCODED_QUERY_H__
88

99
#include <sys/types.h>
1010

trackerlogic.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
$id$ */
55

6-
#ifndef __OT_TRACKERLOGIC_H__
7-
#define __OT_TRACKERLOGIC_H__
6+
#ifndef OT_TRACKERLOGIC_H__
7+
#define OT_TRACKERLOGIC_H__
88

99
#include <sys/types.h>
1010
#include <sys/time.h>

0 commit comments

Comments
 (0)