From 2b22408b1f782f3484092458957652b01166c090 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 15 Apr 2017 14:36:24 +0200 Subject: fixed non-C99-ism in get_header_value diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 7576b2d..08327e6 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -1396,7 +1396,8 @@ perfd_time_ssl (double elapsed_time_ssl) char * get_header_value (const struct phr_header* headers, const size_t nof_headers, const char* header) { - for( int i = 0; i < nof_headers; i++ ) { + int i; + for( i = 0; i < nof_headers; i++ ) { if( strncasecmp( header, headers[i].name, max( headers[i].name_len, 4 ) ) == 0 ) { return strndup( headers[i].value, headers[i].value_len ); } -- cgit v0.10-9-g596f