diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-04-15 14:36:24 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:30:31 +0200 |
commit | d5d71dde61eb2e251c1f9555eef97cb0bcdf55cd (patch) | |
tree | 55458ca443b2c84c0c8adba4ce2a3d50b53963b5 /plugins | |
parent | 9960c56e5e09caf33a8010e52cb32a931fb3ab2a (diff) | |
download | monitoring-plugins-d5d71dde61eb2e251c1f9555eef97cb0bcdf55cd.tar.gz |
fixed non-C99-ism in get_header_value
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 7576b2df..08327e60 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -1396,7 +1396,8 @@ perfd_time_ssl (double elapsed_time_ssl) | |||
1396 | char * | 1396 | char * |
1397 | get_header_value (const struct phr_header* headers, const size_t nof_headers, const char* header) | 1397 | get_header_value (const struct phr_header* headers, const size_t nof_headers, const char* header) |
1398 | { | 1398 | { |
1399 | for( int i = 0; i < nof_headers; i++ ) { | 1399 | int i; |
1400 | for( i = 0; i < nof_headers; i++ ) { | ||
1400 | if( strncasecmp( header, headers[i].name, max( headers[i].name_len, 4 ) ) == 0 ) { | 1401 | if( strncasecmp( header, headers[i].name, max( headers[i].name_len, 4 ) ) == 0 ) { |
1401 | return strndup( headers[i].value, headers[i].value_len ); | 1402 | return strndup( headers[i].value, headers[i].value_len ); |
1402 | } | 1403 | } |