diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 12:20:27 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 12:20:27 +0200 |
commit | 81f3b4165146eedd2da60afc5677ec44a0db9829 (patch) | |
tree | 5387e43d19e023365b55b975abb2b1959d6b20fc /plugins/check_snmp.c | |
parent | 07f9c438f31de7a280e43c4196a32d200ad41fbe (diff) | |
download | monitoring-plugins-81f3b41.tar.gz |
Fix fallout of the previous changes
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 01bee231..7ee9d0ca 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -263,7 +263,7 @@ main (int argc, char **argv) | |||
263 | previous_string = strdup((char *) previous_state->data); | 263 | previous_string = strdup((char *) previous_state->data); |
264 | while((ap = strsep(&previous_string, ":")) != NULL) { | 264 | while((ap = strsep(&previous_string, ":")) != NULL) { |
265 | if(verbose>2) | 265 | if(verbose>2) |
266 | printf("State for %d=%s\n", i, ap); | 266 | printf("State for %zd=%s\n", i, ap); |
267 | while (i >= previous_size) { | 267 | while (i >= previous_size) { |
268 | previous_size += OID_COUNT_STEP; | 268 | previous_size += OID_COUNT_STEP; |
269 | previous_value = realloc(previous_value, previous_size * sizeof(*previous_value)); | 269 | previous_value = realloc(previous_value, previous_size * sizeof(*previous_value)); |
@@ -415,7 +415,7 @@ main (int argc, char **argv) | |||
415 | break; | 415 | break; |
416 | 416 | ||
417 | if (verbose > 2) { | 417 | if (verbose > 2) { |
418 | printf("Processing oid %i (line %i)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response); | 418 | printf("Processing oid %zi (line %zi)\n oidname: %s\n response: %s\n", i+1, line+1, oidname, response); |
419 | } | 419 | } |
420 | 420 | ||
421 | /* Clean up type array - Sol10 does not necessarily zero it out */ | 421 | /* Clean up type array - Sol10 does not necessarily zero it out */ |