From f6d1a67966f22f330f22bd7f2d9df630eb628bd1 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 3 Dec 2007 01:21:12 +0000 Subject: Avoid warnings about unused variables without certain defines --- ot_http.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ot_http.c') diff --git a/ot_http.c b/ot_http.c index 0ae14c1..aad29f6 100644 --- a/ot_http.c +++ b/ot_http.c @@ -4,6 +4,7 @@ /* System */ #include #include +#include #include #include #include @@ -267,6 +268,9 @@ static ssize_t http_handle_stats( const int64 client_socket, char *data, char *d h->flag |= STRUCT_HTTP_FLAG_GZIP; format |= TASK_FLAG_GZIP; } +#else + /* Touch variable */ + d=d; #endif /* Pass this task to the worker thread */ h->flag |= STRUCT_HTTP_FLAG_WAITINGFORTASK; @@ -278,7 +282,7 @@ static ssize_t http_handle_stats( const int64 client_socket, char *data, char *d return -2; } - // default format for now + /* default format for now */ if( !( l = return_stats_for_tracker( static_outbuf + SUCCESS_HTTP_HEADER_LENGTH, mode, 0 ) ) ) HTTPERROR_500; return l; } @@ -288,6 +292,9 @@ static ssize_t http_handle_fullscrape( const int64 client_socket, char *d, size_ int format = 0; tai6464 t; + /* Touch variables */ + d=d;l=l; + #ifdef WANT_COMPRESSION_GZIP d[l-1] = 0; if( strstr( d, "gzip" ) ) { -- cgit v1.2.3