From bb71728ebe76426177b471adf63531d5a1211b2d Mon Sep 17 00:00:00 2001 From: Mikael Nousiainen Date: Sun, 25 Oct 2020 22:20:42 +0200 Subject: [PATCH] Fix conflicting variables --- rigs/yaesu/newcat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 593176710..94576a1b1 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -6255,6 +6255,7 @@ static int set_roofing_filter(RIG *rig, vfo_t vfo, int index) char main_sub_vfo = '0'; char roofing_filter_choice = 0; int err; + int i; rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); @@ -6273,9 +6274,9 @@ static int set_roofing_filter(RIG *rig, vfo_t vfo, int index) return -RIG_ENAVAIL; } - for (index = 0; roofing_filters[index].index >= 0; index++) + for (i = 0; roofing_filters[i].index >= 0; i++) { - struct newcat_roofing_filter *current_filter = &roofing_filters[index]; + struct newcat_roofing_filter *current_filter = &roofing_filters[i]; char set_value = current_filter->set_value; if (set_value == 0) {