summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2022-06-02 14:38:52 -0700
committerStephen Hemminger <stephen@networkplumber.org>2022-06-02 14:40:52 -0700
commit1e50afa8598c2a8337e804083c5d29ca2292abf0 (patch)
tree31d7855bb39471c64009f9d7b8f60733614fa64c
parentc0f8b923ac8c48f7c41d09f0a59cc8554c0c6dbf (diff)
downloadiproute2-1e50afa8598c2a8337e804083c5d29ca2292abf0.tar.gz
tc/flower: declaration hides parameter
The variable handle is a parameter to the function, but then is defined inside basic block for classid. Rename it. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--tc/f_flower.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tc/f_flower.c b/tc/f_flower.c
index 805ca671..a7877c71 100644
--- a/tc/f_flower.c
+++ b/tc/f_flower.c
@@ -1452,15 +1452,15 @@ static int flower_parse_opt(struct filter_util *qu, char *handle,
while (argc > 0) {
if (matches(*argv, "classid") == 0 ||
matches(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- ret = get_tc_classid(&handle, *argv);
+ ret = get_tc_classid(&classid, *argv);
if (ret) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &handle, 4);
+ addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &classid, 4);
} else if (matches(*argv, "hw_tc") == 0) {
unsigned int handle;
__u32 tc;