Browse Source

Get rid of some warnings regarding header guards

master
Dirk Engling 3 years ago
parent
commit
d4598cc930
15 changed files with 34 additions and 28 deletions
  1. +1
    -0
      opentracker.c
  2. +2
    -2
      ot_accesslist.h
  3. +2
    -2
      ot_clean.h
  4. +2
    -2
      ot_fullscrape.h
  5. +2
    -2
      ot_http.h
  6. +2
    -2
      ot_iovec.h
  7. +2
    -2
      ot_livesync.h
  8. +2
    -2
      ot_mutex.h
  9. +4
    -2
      ot_rijndael.h
  10. +5
    -2
      ot_stats.h
  11. +2
    -2
      ot_sync.h
  12. +2
    -2
      ot_udp.h
  13. +2
    -2
      ot_vector.h
  14. +2
    -2
      scan_urlencoded_query.h
  15. +2
    -2
      trackerlogic.h

+ 1
- 0
opentracker.c View File

@@ -48,6 +48,7 @@ static char * g_serverdir;
static char * g_serveruser;
static unsigned int g_udp_workers;

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


+ 2
- 2
ot_accesslist.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_ACCESSLIST_H__
#define __OT_ACCESSLIST_H__
#ifndef OT_ACCESSLIST_H__
#define OT_ACCESSLIST_H__

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


+ 2
- 2
ot_clean.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_CLEAN_H__
#define __OT_CLEAN_H__
#ifndef OT_CLEAN_H__
#define OT_CLEAN_H__

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


+ 2
- 2
ot_fullscrape.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_FULLSCRAPE_H__
#define __OT_FULLSCRAPE_H__
#ifndef OT_FULLSCRAPE_H__
#define OT_FULLSCRAPE_H__

#ifdef WANT_FULLSCRAPE



+ 2
- 2
ot_http.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_HTTP_H__
#define __OT_HTTP_H__
#ifndef OT_HTTP_H__
#define OT_HTTP_H__

typedef enum {
STRUCT_HTTP_FLAG_WAITINGFORTASK = 1,


+ 2
- 2
ot_iovec.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_IOVEC_H__
#define __OT_IOVEC_H__
#ifndef OT_IOVEC_H__
#define OT_IOVEC_H__

#include <sys/uio.h>



+ 2
- 2
ot_livesync.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_LIVESYNC_H__
#define __OT_LIVESYNC_H__
#ifndef OT_LIVESYNC_H__
#define OT_LIVESYNC_H__

#include "io.h"
#include "trackerlogic.h"


+ 2
- 2
ot_mutex.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_MUTEX_H__
#define __OT_MUTEX_H__
#ifndef OT_MUTEX_H__
#define OT_MUTEX_H__

#include <sys/uio.h>



+ 4
- 2
ot_rijndael.h View File

@@ -9,12 +9,14 @@

$id$ */

#ifndef __OT_RIJNDAEL_H__
#define __OT_RIJNDAEL_H__
#ifndef OT_RIJNDAEL_H__
#define OT_RIJNDAEL_H__

#include <stdint.h>

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

extern const char *g_version_rijndael_c;

#endif

+ 5
- 2
ot_stats.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_STATS_H__
#define __OT_STATS_H__
#ifndef OT_STATS_H__
#define OT_STATS_H__

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

extern const char *g_version_rijndael_c;
extern const char *g_version_livesync_c;

#endif

+ 2
- 2
ot_sync.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_SYNC_H__
#define __OT_SYNC_H__
#ifndef OT_SYNC_H__
#define OT_SYNC_H__

#ifdef WANT_SYNC_BATCH
enum { SYNC_IN, SYNC_OUT };


+ 2
- 2
ot_udp.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_UDP_H__
#define __OT_UDP_H__
#ifndef OT_UDP_H__
#define OT_UDP_H__

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


+ 2
- 2
ot_vector.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_VECTOR_H__
#define __OT_VECTOR_H__
#ifndef OT_VECTOR_H__
#define OT_VECTOR_H__

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


+ 2
- 2
scan_urlencoded_query.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __SCAN_URLENCODED_QUERY_H__
#define __SCAN_URLENCODED_QUERY_H__
#ifndef SCAN_URLENCODED_QUERY_H__
#define SCAN_URLENCODED_QUERY_H__

#include <sys/types.h>



+ 2
- 2
trackerlogic.h View File

@@ -3,8 +3,8 @@

$id$ */

#ifndef __OT_TRACKERLOGIC_H__
#define __OT_TRACKERLOGIC_H__
#ifndef OT_TRACKERLOGIC_H__
#define OT_TRACKERLOGIC_H__

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


Loading…
Cancel
Save