diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-12-29 00:47:29 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-12-29 00:47:29 +0100 |
commit | 5275f81e38c756c57a695939df541e96b3386a5f (patch) | |
tree | 20f3f242d1678459a5476ffd0d303cd69d44a157 | |
parent | ad864430b083d713803725337cf954fdd73f2abd (diff) | |
download | monitoring-plugins-5275f81.tar.gz |
check_snmp: Remove unused variable
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 0 insertions, 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) | |||
691 | { | 691 | { |
692 | char *ptr; | 692 | char *ptr; |
693 | int c = 1; | 693 | int c = 1; |
694 | int ii = 0; | ||
695 | size_t j = 0, jj = 0; | 694 | size_t j = 0, jj = 0; |
696 | 695 | ||
697 | int option = 0; | 696 | int option = 0; |
@@ -848,7 +847,6 @@ process_arguments (int argc, char **argv) | |||
848 | numoids = j; | 847 | numoids = j; |
849 | if (c == 'E' || c == 'e') { | 848 | if (c == 'E' || c == 'e') { |
850 | jj++; | 849 | jj++; |
851 | ii++; | ||
852 | while (j+1 >= eval_size) { | 850 | while (j+1 >= eval_size) { |
853 | eval_size += OID_COUNT_STEP; | 851 | eval_size += OID_COUNT_STEP; |
854 | eval_method = realloc(eval_method, eval_size * sizeof(*eval_method)); | 852 | eval_method = realloc(eval_method, eval_size * sizeof(*eval_method)); |
@@ -875,7 +873,6 @@ process_arguments (int argc, char **argv) | |||
875 | memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); | 873 | memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); |
876 | } | 874 | } |
877 | eval_method[jj++] = CRIT_STRING; | 875 | eval_method[jj++] = CRIT_STRING; |
878 | ii++; | ||
879 | break; | 876 | break; |
880 | case 'R': /* regex */ | 877 | case 'R': /* regex */ |
881 | cflags = REG_ICASE; | 878 | cflags = REG_ICASE; |
@@ -896,7 +893,6 @@ process_arguments (int argc, char **argv) | |||
896 | memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); | 893 | memset(eval_method + eval_size - OID_COUNT_STEP, 0, 8); |
897 | } | 894 | } |
898 | eval_method[jj++] = CRIT_REGEX; | 895 | eval_method[jj++] = CRIT_REGEX; |
899 | ii++; | ||
900 | break; | 896 | break; |
901 | 897 | ||
902 | /* Format */ | 898 | /* Format */ |