From 856097e283eb5d4825bd2cf34ae66c47c9e0b7ba Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 31 Oct 2015 10:47:06 +0100 Subject: removed warning about 'answer_protocol_version' --- src/check_curl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/check_curl.c b/src/check_curl.c index 620c089..6453993 100644 --- a/src/check_curl.c +++ b/src/check_curl.c @@ -49,7 +49,6 @@ int main( int argc, char *argv[] ) { curlhelp_statusline status_line; const char *protocol; const char *answer_protocol; - const char *answer_protocol_version; cmdline_parser_init( &args_info ); @@ -232,10 +231,8 @@ int main( int argc, char *argv[] ) { /* set answer protocol */ if( strcmp( protocol, "http" ) == 0 ) { answer_protocol = "HTTP"; - answer_protocol_version = ""; } else if( strcmp( protocol, "ftp" ) == 0 ) { answer_protocol = "FTP"; - answer_protocol_version = ""; } /* Curl errors, result in critical Nagios state */ -- cgit v1.2.3-54-g00ecf