From 5275f81e38c756c57a695939df541e96b3386a5f Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:47:29 +0100 Subject: check_snmp: Remove unused variable --- plugins/check_snmp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 7ee9d0ca..295aa9b5 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -691,7 +691,6 @@ process_arguments (int argc, char **argv) { char *ptr; int c = 1; - int ii = 0; size_t j = 0, jj = 0; int option = 0; @@ -848,7 +847,6 @@ process_arguments (int argc, char **argv) numoids = j; if (c == 'E' || c == 'e') { jj++; - ii++; while (j+1 >= eval_size) { eval_size += OID_COUNT_STEP; eval_method = realloc(eval_method, eval_size * sizeof(*eval_method)); @@ -875,7 +873,6 @@ process_arguments (int argc, char **argv) memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); } eval_method[jj++] = CRIT_STRING; - ii++; break; case 'R': /* regex */ cflags = REG_ICASE; @@ -896,7 +893,6 @@ process_arguments (int argc, char **argv) memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); } eval_method[jj++] = CRIT_REGEX; - ii++; break; /* Format */ -- cgit v1.2.3-74-g34f1