diff options
author | erdgeist <> | 2008-10-28 01:27:22 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-28 01:27:22 +0000 |
commit | daaee855b251b1c5368b6a577a5fcba4bf7828c6 (patch) | |
tree | e453fbc06cb15b6b970f33abbff9d3bc8240b8ad /opentracker.c | |
parent | 55d03b9a1b7344fde72b5474734ea53ff766d1d4 (diff) |
Whitespace fixes
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/opentracker.c b/opentracker.c index a831b06..f76c042 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -220,7 +220,7 @@ static void server_mainloop( ) { | |||
220 | } | 220 | } |
221 | 221 | ||
222 | livesync_ticker(); | 222 | livesync_ticker(); |
223 | 223 | ||
224 | /* See if we need to move our pools */ | 224 | /* See if we need to move our pools */ |
225 | if( NOW != ot_last_clean_time ) { | 225 | if( NOW != ot_last_clean_time ) { |
226 | ot_last_clean_time = NOW; | 226 | ot_last_clean_time = NOW; |
@@ -254,10 +254,10 @@ static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) { | |||
254 | 254 | ||
255 | io_wantread( s ); | 255 | io_wantread( s ); |
256 | 256 | ||
257 | #ifdef _DEBUG | 257 | #ifdef _DEBUG |
258 | fputs( " success.\n", stderr); | 258 | fputs( " success.\n", stderr); |
259 | #endif | 259 | #endif |
260 | 260 | ||
261 | return s; | 261 | return s; |
262 | } | 262 | } |
263 | 263 | ||
@@ -291,19 +291,19 @@ int parse_configfile( char * config_filename ) { | |||
291 | int bound = 0; | 291 | int bound = 0; |
292 | 292 | ||
293 | accesslist_filehandle = fopen( config_filename, "r" ); | 293 | accesslist_filehandle = fopen( config_filename, "r" ); |
294 | 294 | ||
295 | if( accesslist_filehandle == NULL ) { | 295 | if( accesslist_filehandle == NULL ) { |
296 | fprintf( stderr, "Warning: Can't open config file: %s.", config_filename ); | 296 | fprintf( stderr, "Warning: Can't open config file: %s.", config_filename ); |
297 | return 0; | 297 | return 0; |
298 | } | 298 | } |
299 | 299 | ||
300 | while( fgets( inbuf, sizeof(inbuf), accesslist_filehandle ) ) { | 300 | while( fgets( inbuf, sizeof(inbuf), accesslist_filehandle ) ) { |
301 | char *newl; | 301 | char *newl; |
302 | char *p = inbuf; | 302 | char *p = inbuf; |
303 | 303 | ||
304 | /* Skip white spaces */ | 304 | /* Skip white spaces */ |
305 | while(isspace(*p)) ++p; | 305 | while(isspace(*p)) ++p; |
306 | 306 | ||
307 | /* Ignore comments and empty lines */ | 307 | /* Ignore comments and empty lines */ |
308 | if((*p=='#')||(*p=='\n')||(*p==0)) continue; | 308 | if((*p=='#')||(*p=='\n')||(*p==0)) continue; |
309 | 309 | ||
@@ -360,7 +360,7 @@ int parse_configfile( char * config_filename ) { | |||
360 | fprintf( stderr, "Unhandled line in config file: %s\n", inbuf ); | 360 | fprintf( stderr, "Unhandled line in config file: %s\n", inbuf ); |
361 | continue; | 361 | continue; |
362 | parse_error: | 362 | parse_error: |
363 | fprintf( stderr, "Parse error in config file: %s\n", inbuf); | 363 | fprintf( stderr, "Parse error in config file: %s\n", inbuf); |
364 | } | 364 | } |
365 | fclose( accesslist_filehandle ); | 365 | fclose( accesslist_filehandle ); |
366 | return bound; | 366 | return bound; |
@@ -371,7 +371,7 @@ int main( int argc, char **argv ) { | |||
371 | char serverip[4] = {0,0,0,0}, tmpip[4]; | 371 | char serverip[4] = {0,0,0,0}, tmpip[4]; |
372 | int bound = 0, scanon = 1; | 372 | int bound = 0, scanon = 1; |
373 | uint16_t tmpport; | 373 | uint16_t tmpport; |
374 | 374 | ||
375 | while( scanon ) { | 375 | while( scanon ) { |
376 | switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v" | 376 | switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v" |
377 | #ifdef WANT_ACCESSLIST_BLACK | 377 | #ifdef WANT_ACCESSLIST_BLACK |