diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-12 13:16:35 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-04-17 22:13:24 (GMT) |
commit | 6c78f0b5ea82a4bea71ae2024f27d3916175a7a2 (patch) | |
tree | c8a70477926d3d919c6938b851fb81169ab930f4 /plugins/check_curl.c | |
parent | cee364f219ed73c75a4c4bfb5ac148b8a721780c (diff) | |
download | monitoring-plugins-6c78f0b5ea82a4bea71ae2024f27d3916175a7a2.tar.gz |
Fixes for -Wunusedrefs/pull/1866/head
* lib/utils_base.c
* plugins/check_curl.c
* plugins-root/check_dhcp.c
Removed a line which theoretically can not do anything, but there was
comment which indicated something else. Still trying this though.
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index be5740d..100a97a 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -2217,11 +2217,10 @@ curlhelp_parse_statusline (const char *buf, curlhelp_statusline *status_line) | |||
2217 | if( strchr( p, '.' ) != NULL ) { | 2217 | if( strchr( p, '.' ) != NULL ) { |
2218 | 2218 | ||
2219 | /* HTTP 1.x case */ | 2219 | /* HTTP 1.x case */ |
2220 | char *ppp; | 2220 | strtok( p, "." ); |
2221 | ppp = strtok( p, "." ); | ||
2222 | status_line->http_major = (int)strtol( p, &pp, 10 ); | 2221 | status_line->http_major = (int)strtol( p, &pp, 10 ); |
2223 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } | 2222 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } |
2224 | ppp = strtok( NULL, " " ); | 2223 | strtok( NULL, " " ); |
2225 | status_line->http_minor = (int)strtol( p, &pp, 10 ); | 2224 | status_line->http_minor = (int)strtol( p, &pp, 10 ); |
2226 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } | 2225 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } |
2227 | p += 4; /* 1.x SP */ | 2226 | p += 4; /* 1.x SP */ |