Skip to content

Commit 268a9ee

Browse files
committed
netem: fix code indentation
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
1 parent da9cc6a commit 268a9ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tc/q_netem.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
231231

232232
if (!strcmp(*argv, "random")) {
233233
NEXT_ARG();
234-
random_loss_model:
234+
random_loss_model:
235235
if (get_percent(&opt.loss, *argv)) {
236236
explain1("loss percent");
237237
return -1;
@@ -338,7 +338,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
338338
return -1;
339339
}
340340
} else if (matches(*argv, "ecn") == 0) {
341-
present[TCA_NETEM_ECN] = 1;
341+
present[TCA_NETEM_ECN] = 1;
342342
} else if (matches(*argv, "reorder") == 0) {
343343
NEXT_ARG();
344344
present[TCA_NETEM_REORDER] = 1;
@@ -469,7 +469,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
469469

470470
if (present[TCA_NETEM_CORR] &&
471471
addattr_l(n, 1024, TCA_NETEM_CORR, &cor, sizeof(cor)) < 0)
472-
return -1;
472+
return -1;
473473

474474
if (present[TCA_NETEM_REORDER] &&
475475
addattr_l(n, 1024, TCA_NETEM_REORDER, &reorder, sizeof(reorder)) < 0)
@@ -478,7 +478,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
478478
if (present[TCA_NETEM_ECN] &&
479479
addattr_l(n, 1024, TCA_NETEM_ECN, &present[TCA_NETEM_ECN],
480480
sizeof(present[TCA_NETEM_ECN])) < 0)
481-
return -1;
481+
return -1;
482482

483483
if (present[TCA_NETEM_CORRUPT] &&
484484
addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0)
@@ -491,11 +491,11 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
491491
if (loss_type == NETEM_LOSS_GI) {
492492
if (addattr_l(n, 1024, NETEM_LOSS_GI,
493493
&gimodel, sizeof(gimodel)) < 0)
494-
return -1;
494+
return -1;
495495
} else if (loss_type == NETEM_LOSS_GE) {
496496
if (addattr_l(n, 1024, NETEM_LOSS_GE,
497497
&gemodel, sizeof(gemodel)) < 0)
498-
return -1;
498+
return -1;
499499
} else {
500500
fprintf(stderr, "loss in the weeds!\n");
501501
return -1;

0 commit comments

Comments
 (0)