diff options
-rw-r--r-- | opentracker.c | 1 | ||||
-rw-r--r-- | ot_accesslist.h | 4 | ||||
-rw-r--r-- | ot_clean.h | 4 | ||||
-rw-r--r-- | ot_fullscrape.h | 4 | ||||
-rw-r--r-- | ot_http.h | 4 | ||||
-rw-r--r-- | ot_iovec.h | 4 | ||||
-rw-r--r-- | ot_livesync.h | 4 | ||||
-rw-r--r-- | ot_mutex.h | 4 | ||||
-rw-r--r-- | ot_rijndael.h | 6 | ||||
-rw-r--r-- | ot_stats.h | 7 | ||||
-rw-r--r-- | ot_sync.h | 4 | ||||
-rw-r--r-- | ot_udp.h | 4 | ||||
-rw-r--r-- | ot_vector.h | 4 | ||||
-rw-r--r-- | scan_urlencoded_query.h | 4 | ||||
-rw-r--r-- | trackerlogic.h | 4 |
15 files changed, 34 insertions, 28 deletions
diff --git a/opentracker.c b/opentracker.c index 40ed78e..5b9915f 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -48,6 +48,7 @@ static char * g_serverdir; | |||
48 | static char * g_serveruser; | 48 | static char * g_serveruser; |
49 | static unsigned int g_udp_workers; | 49 | static unsigned int g_udp_workers; |
50 | 50 | ||
51 | static void panic( const char *routing ) __attribute__ ((noreturn)); | ||
51 | static void panic( const char *routine ) { | 52 | static void panic( const char *routine ) { |
52 | fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); | 53 | fprintf( stderr, "%s: %s\n", routine, strerror(errno) ); |
53 | exit( 111 ); | 54 | exit( 111 ); |
diff --git a/ot_accesslist.h b/ot_accesslist.h index a1e4ad2..b38b91a 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_ACCESSLIST_H__ | 6 | #ifndef OT_ACCESSLIST_H__ |
7 | #define __OT_ACCESSLIST_H__ | 7 | #define OT_ACCESSLIST_H__ |
8 | 8 | ||
9 | #if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) | 9 | #if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) |
10 | # error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. | 10 | # error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_CLEAN_H__ | 6 | #ifndef OT_CLEAN_H__ |
7 | #define __OT_CLEAN_H__ | 7 | #define OT_CLEAN_H__ |
8 | 8 | ||
9 | /* The amount of time a clean cycle should take */ | 9 | /* The amount of time a clean cycle should take */ |
10 | #define OT_CLEAN_INTERVAL_MINUTES 2 | 10 | #define OT_CLEAN_INTERVAL_MINUTES 2 |
diff --git a/ot_fullscrape.h b/ot_fullscrape.h index b86f8ea..0f920ec 100644 --- a/ot_fullscrape.h +++ b/ot_fullscrape.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_FULLSCRAPE_H__ | 6 | #ifndef OT_FULLSCRAPE_H__ |
7 | #define __OT_FULLSCRAPE_H__ | 7 | #define OT_FULLSCRAPE_H__ |
8 | 8 | ||
9 | #ifdef WANT_FULLSCRAPE | 9 | #ifdef WANT_FULLSCRAPE |
10 | 10 | ||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_HTTP_H__ | 6 | #ifndef OT_HTTP_H__ |
7 | #define __OT_HTTP_H__ | 7 | #define OT_HTTP_H__ |
8 | 8 | ||
9 | typedef enum { | 9 | typedef enum { |
10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, | 10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_IOVEC_H__ | 6 | #ifndef OT_IOVEC_H__ |
7 | #define __OT_IOVEC_H__ | 7 | #define OT_IOVEC_H__ |
8 | 8 | ||
9 | #include <sys/uio.h> | 9 | #include <sys/uio.h> |
10 | 10 | ||
diff --git a/ot_livesync.h b/ot_livesync.h index 1a3ed45..d7490e5 100644 --- a/ot_livesync.h +++ b/ot_livesync.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_LIVESYNC_H__ | 6 | #ifndef OT_LIVESYNC_H__ |
7 | #define __OT_LIVESYNC_H__ | 7 | #define OT_LIVESYNC_H__ |
8 | 8 | ||
9 | #include "io.h" | 9 | #include "io.h" |
10 | #include "trackerlogic.h" | 10 | #include "trackerlogic.h" |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_MUTEX_H__ | 6 | #ifndef OT_MUTEX_H__ |
7 | #define __OT_MUTEX_H__ | 7 | #define OT_MUTEX_H__ |
8 | 8 | ||
9 | #include <sys/uio.h> | 9 | #include <sys/uio.h> |
10 | 10 | ||
diff --git a/ot_rijndael.h b/ot_rijndael.h index 7f57b3f..54725dc 100644 --- a/ot_rijndael.h +++ b/ot_rijndael.h | |||
@@ -9,12 +9,14 @@ | |||
9 | 9 | ||
10 | $id$ */ | 10 | $id$ */ |
11 | 11 | ||
12 | #ifndef __OT_RIJNDAEL_H__ | 12 | #ifndef OT_RIJNDAEL_H__ |
13 | #define __OT_RIJNDAEL_H__ | 13 | #define OT_RIJNDAEL_H__ |
14 | 14 | ||
15 | #include <stdint.h> | 15 | #include <stdint.h> |
16 | 16 | ||
17 | int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] ); | 17 | int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] ); |
18 | void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]); | 18 | void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]); |
19 | 19 | ||
20 | extern const char *g_version_rijndael_c; | ||
21 | |||
20 | #endif | 22 | #endif |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_STATS_H__ | 6 | #ifndef OT_STATS_H__ |
7 | #define __OT_STATS_H__ | 7 | #define OT_STATS_H__ |
8 | 8 | ||
9 | typedef enum { | 9 | typedef enum { |
10 | EVENT_ACCEPT, | 10 | EVENT_ACCEPT, |
@@ -46,4 +46,7 @@ size_t stats_return_tracker_version( char *reply ); | |||
46 | void stats_init( ); | 46 | void stats_init( ); |
47 | void stats_deinit( ); | 47 | void stats_deinit( ); |
48 | 48 | ||
49 | extern const char *g_version_rijndael_c; | ||
50 | extern const char *g_version_livesync_c; | ||
51 | |||
49 | #endif | 52 | #endif |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_SYNC_H__ | 6 | #ifndef OT_SYNC_H__ |
7 | #define __OT_SYNC_H__ | 7 | #define OT_SYNC_H__ |
8 | 8 | ||
9 | #ifdef WANT_SYNC_BATCH | 9 | #ifdef WANT_SYNC_BATCH |
10 | enum { SYNC_IN, SYNC_OUT }; | 10 | enum { SYNC_IN, SYNC_OUT }; |
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_UDP_H__ | 6 | #ifndef OT_UDP_H__ |
7 | #define __OT_UDP_H__ | 7 | #define OT_UDP_H__ |
8 | 8 | ||
9 | void udp_init( int64 sock, unsigned int worker_count ); | 9 | void udp_init( int64 sock, unsigned int worker_count ); |
10 | int handle_udp6( int64 serversocket, struct ot_workstruct *ws ); | 10 | int handle_udp6( int64 serversocket, struct ot_workstruct *ws ); |
diff --git a/ot_vector.h b/ot_vector.h index 37135e7..f7f87aa 100644 --- a/ot_vector.h +++ b/ot_vector.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_VECTOR_H__ | 6 | #ifndef OT_VECTOR_H__ |
7 | #define __OT_VECTOR_H__ | 7 | #define OT_VECTOR_H__ |
8 | 8 | ||
9 | /* These defines control vectors behaviour */ | 9 | /* These defines control vectors behaviour */ |
10 | #define OT_VECTOR_MIN_MEMBERS 2 | 10 | #define OT_VECTOR_MIN_MEMBERS 2 |
diff --git a/scan_urlencoded_query.h b/scan_urlencoded_query.h index 92e3f34..06b91f5 100644 --- a/scan_urlencoded_query.h +++ b/scan_urlencoded_query.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __SCAN_URLENCODED_QUERY_H__ | 6 | #ifndef SCAN_URLENCODED_QUERY_H__ |
7 | #define __SCAN_URLENCODED_QUERY_H__ | 7 | #define SCAN_URLENCODED_QUERY_H__ |
8 | 8 | ||
9 | #include <sys/types.h> | 9 | #include <sys/types.h> |
10 | 10 | ||
diff --git a/trackerlogic.h b/trackerlogic.h index 370782a..721ba6e 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | #ifndef __OT_TRACKERLOGIC_H__ | 6 | #ifndef OT_TRACKERLOGIC_H__ |
7 | #define __OT_TRACKERLOGIC_H__ | 7 | #define OT_TRACKERLOGIC_H__ |
8 | 8 | ||
9 | #include <sys/types.h> | 9 | #include <sys/types.h> |
10 | #include <sys/time.h> | 10 | #include <sys/time.h> |