@@ -231,7 +231,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
231
231
232
232
if (!strcmp (* argv , "random" )) {
233
233
NEXT_ARG ();
234
- random_loss_model :
234
+ random_loss_model :
235
235
if (get_percent (& opt .loss , * argv )) {
236
236
explain1 ("loss percent" );
237
237
return -1 ;
@@ -338,7 +338,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
338
338
return -1 ;
339
339
}
340
340
} else if (matches (* argv , "ecn" ) == 0 ) {
341
- present [TCA_NETEM_ECN ] = 1 ;
341
+ present [TCA_NETEM_ECN ] = 1 ;
342
342
} else if (matches (* argv , "reorder" ) == 0 ) {
343
343
NEXT_ARG ();
344
344
present [TCA_NETEM_REORDER ] = 1 ;
@@ -469,7 +469,7 @@ static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
469
469
470
470
if (present [TCA_NETEM_CORR ] &&
471
471
addattr_l (n , 1024 , TCA_NETEM_CORR , & cor , sizeof (cor )) < 0 )
472
- return -1 ;
472
+ return -1 ;
473
473
474
474
if (present [TCA_NETEM_REORDER ] &&
475
475
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,
478
478
if (present [TCA_NETEM_ECN ] &&
479
479
addattr_l (n , 1024 , TCA_NETEM_ECN , & present [TCA_NETEM_ECN ],
480
480
sizeof (present [TCA_NETEM_ECN ])) < 0 )
481
- return -1 ;
481
+ return -1 ;
482
482
483
483
if (present [TCA_NETEM_CORRUPT ] &&
484
484
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,
491
491
if (loss_type == NETEM_LOSS_GI ) {
492
492
if (addattr_l (n , 1024 , NETEM_LOSS_GI ,
493
493
& gimodel , sizeof (gimodel )) < 0 )
494
- return -1 ;
494
+ return -1 ;
495
495
} else if (loss_type == NETEM_LOSS_GE ) {
496
496
if (addattr_l (n , 1024 , NETEM_LOSS_GE ,
497
497
& gemodel , sizeof (gemodel )) < 0 )
498
- return -1 ;
498
+ return -1 ;
499
499
} else {
500
500
fprintf (stderr , "loss in the weeds!\n" );
501
501
return -1 ;
0 commit comments