diff options
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 97c86a3..db106f2 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -578,7 +578,7 @@ process_arguments (int argc, char **argv) | |||
578 | labels_size += 8; | 578 | labels_size += 8; |
579 | labels = realloc (labels, labels_size); | 579 | labels = realloc (labels, labels_size); |
580 | if (labels == NULL) | 580 | if (labels == NULL) |
581 | die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels); | 581 | die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), (int)nlabels); |
582 | } | 582 | } |
583 | labels[nlabels - 1] = optarg; | 583 | labels[nlabels - 1] = optarg; |
584 | ptr = thisarg (optarg); | 584 | ptr = thisarg (optarg); |
@@ -607,7 +607,7 @@ process_arguments (int argc, char **argv) | |||
607 | unitv_size += 8; | 607 | unitv_size += 8; |
608 | unitv = realloc (unitv, unitv_size); | 608 | unitv = realloc (unitv, unitv_size); |
609 | if (unitv == NULL) | 609 | if (unitv == NULL) |
610 | die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits); | 610 | die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), (int)nunits); |
611 | } | 611 | } |
612 | unitv[nunits - 1] = optarg; | 612 | unitv[nunits - 1] = optarg; |
613 | ptr = thisarg (optarg); | 613 | ptr = thisarg (optarg); |