mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-19 14:17:24 +00:00
tc: minor cleanup on ingress
Fix whitespacing and remove the unnecessary condition. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
3bf5445c5e
commit
ec6f5abcea
@ -34,18 +34,14 @@ static void explain(void)
|
|||||||
|
|
||||||
static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
|
static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
|
||||||
{
|
{
|
||||||
|
while (argc > 0) {
|
||||||
if (argc > 0) {
|
if (strcmp(*argv, "handle") == 0) {
|
||||||
while (argc > 0) {
|
NEXT_ARG();
|
||||||
|
argc--; argv++;
|
||||||
if (strcmp(*argv, "handle") == 0) {
|
} else {
|
||||||
NEXT_ARG();
|
fprintf(stderr, "What is \"%s\"?\n", *argv);
|
||||||
argc--; argv++;
|
explain();
|
||||||
} else {
|
return -1;
|
||||||
fprintf(stderr, "What is \"%s\"?\n", *argv);
|
|
||||||
explain();
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,8 +51,7 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc
|
|||||||
|
|
||||||
static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||||
{
|
{
|
||||||
|
fprintf(f, "---------------- ");
|
||||||
fprintf(f, "---------------- ");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user