summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c4
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 */