diff options
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/opentracker.c b/opentracker.c index be169be..2ca9e06 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -135,8 +135,8 @@ static void help( char *name ) { | |||
135 | } | 135 | } |
136 | #undef HELPLINE | 136 | #undef HELPLINE |
137 | 137 | ||
138 | static size_t header_complete( char * request, ssize_t byte_count ) { | 138 | static ssize_t header_complete( char * request, ssize_t byte_count ) { |
139 | int i = 0, state = 0; | 139 | ssize_t i = 0, state = 0; |
140 | 140 | ||
141 | for( i=1; i < byte_count; i+=2 ) | 141 | for( i=1; i < byte_count; i+=2 ) |
142 | if( request[i] <= 13 ) { | 142 | if( request[i] <= 13 ) { |
@@ -187,7 +187,7 @@ static void handle_read( const int64 sock, struct ot_workstruct *ws ) { | |||
187 | ws->request_size = byte_count; | 187 | ws->request_size = byte_count; |
188 | http_handle_request( sock, ws ); | 188 | http_handle_request( sock, ws ); |
189 | } else | 189 | } else |
190 | array_catb( &cookie->request, ws->inbuf, byte_count ); | 190 | array_catb( &cookie->request, ws->inbuf, (size_t)byte_count ); |
191 | return; | 191 | return; |
192 | } | 192 | } |
193 | 193 | ||
@@ -466,6 +466,12 @@ int parse_configfile( char * config_filename ) { | |||
466 | } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) { | 466 | } else if(!byte_diff(p, 16, "access.blacklist" ) && isspace(p[16])) { |
467 | set_config_option( &g_accesslist_filename, p+17 ); | 467 | set_config_option( &g_accesslist_filename, p+17 ); |
468 | #endif | 468 | #endif |
469 | #ifdef WANT_DYNAMIC_ACCESSLIST | ||
470 | } else if(!byte_diff(p, 15, "access.fifo_add" ) && isspace(p[15])) { | ||
471 | set_config_option( &g_accesslist_pipe_add, p+16 ); | ||
472 | } else if(!byte_diff(p, 18, "access.fifo_delete" ) && isspace(p[18])) { | ||
473 | set_config_option( &g_accesslist_pipe_delete, p+19 ); | ||
474 | #endif | ||
469 | #ifdef WANT_RESTRICT_STATS | 475 | #ifdef WANT_RESTRICT_STATS |
470 | } else if(!byte_diff(p, 12, "access.stats" ) && isspace(p[12])) { | 476 | } else if(!byte_diff(p, 12, "access.stats" ) && isspace(p[12])) { |
471 | if( !scan_ip6( p+13, tmpip )) goto parse_error; | 477 | if( !scan_ip6( p+13, tmpip )) goto parse_error; |