diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-10-31 10:47:06 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-10-31 10:47:06 +0100 |
commit | 856097e283eb5d4825bd2cf34ae66c47c9e0b7ba (patch) | |
tree | 7a735f00fa60a08f3ab509e2bd2978a8b697f890 | |
parent | 5250af691fda2e6eed7f4caa50183de7985e0062 (diff) | |
download | nagios-plugin-curl-856097e283eb5d4825bd2cf34ae66c47c9e0b7ba.tar.gz nagios-plugin-curl-856097e283eb5d4825bd2cf34ae66c47c9e0b7ba.tar.bz2 |
removed warning about 'answer_protocol_version'
-rw-r--r-- | src/check_curl.c | 3 |
1 files changed, 0 insertions, 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 */ |