diff options
Diffstat (limited to 'networking/tc.c')
-rw-r--r-- | networking/tc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/tc.c b/networking/tc.c index 1574353a5..f968707a9 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -391,7 +391,7 @@ static int print_class(const struct sockaddr_nl *who UNUSED_PARAM, | |||
391 | printf("root "); | 391 | printf("root "); |
392 | else if (msg->tcm_parent) { | 392 | else if (msg->tcm_parent) { |
393 | classid = print_tc_classid(filter_qdisc ? | 393 | classid = print_tc_classid(filter_qdisc ? |
394 | TC_H_MIN(msg->tcm_parent) : msg->tcm_parent); | 394 | TC_H_MIN(msg->tcm_parent) : msg->tcm_parent); |
395 | printf("parent %s ", classid); | 395 | printf("parent %s ", classid); |
396 | if (ENABLE_FEATURE_CLEAN_UP) | 396 | if (ENABLE_FEATURE_CLEAN_UP) |
397 | free(classid); | 397 | free(classid); |
@@ -526,7 +526,8 @@ int tc_main(int argc UNUSED_PARAM, char **argv) | |||
526 | duparg(*argv, "handle"); | 526 | duparg(*argv, "handle"); |
527 | /* reject LONG_MIN || LONG_MAX */ | 527 | /* reject LONG_MIN || LONG_MAX */ |
528 | /* TODO: for fw | 528 | /* TODO: for fw |
529 | if ((slash = strchr(handle, '/')) != NULL) | 529 | slash = strchr(handle, '/'); |
530 | if (slash != NULL) | ||
530 | *slash = '\0'; | 531 | *slash = '\0'; |
531 | */ | 532 | */ |
532 | msg.tcm_handle = get_u32(*argv, "handle"); | 533 | msg.tcm_handle = get_u32(*argv, "handle"); |