diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-11-24 11:31:36 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-11-24 11:31:36 -0800 |
commit | 859af0a5dca7ccc73cc09b457ec8220fc466811a (patch) | |
tree | a030d85a89edf3a8061f702e75d4db9690c2f037 | |
parent | 927e3cfb52b58fbdf217d84204d653db101c137a (diff) |
tc: break long lines
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | tc/f_rsvp.c | 3 | ||||
-rw-r--r-- | tc/q_atm.c | 3 | ||||
-rw-r--r-- | tc/q_cbs.c | 3 | ||||
-rw-r--r-- | tc/q_drr.c | 3 | ||||
-rw-r--r-- | tc/q_fifo.c | 3 | ||||
-rw-r--r-- | tc/q_hfsc.c | 10 | ||||
-rw-r--r-- | tc/q_htb.c | 4 | ||||
-rw-r--r-- | tc/q_prio.c | 3 | ||||
-rw-r--r-- | tc/q_red.c | 3 | ||||
-rw-r--r-- | tc/q_tbf.c | 3 |
10 files changed, 24 insertions, 14 deletions
diff --git a/tc/f_rsvp.c b/tc/f_rsvp.c index 02028b4b..1ce37340 100644 --- a/tc/f_rsvp.c +++ b/tc/f_rsvp.c @@ -169,7 +169,8 @@ done: } -static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) +static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, + char **argv, struct nlmsghdr *n) { int family = strcmp(qu->id, "rsvp") == 0 ? AF_INET : AF_INET6; struct tc_rsvp_pinfo pinfo = {}; @@ -26,7 +26,8 @@ #define MAX_HDR_LEN 64 -static int atm_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int atm_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { if (argc) { fprintf(stderr, "Usage: atm\n"); @@ -34,7 +34,8 @@ static void explain1(const char *arg, const char *val) fprintf(stderr, "cbs: illegal value for \"%s\": \"%s\"\n", arg, val); } -static int cbs_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int cbs_parse_opt(struct qdisc_util *qu, int argc, + char **argv, struct nlmsghdr *n, const char *dev) { struct tc_cbs_qopt opt = {}; struct rtattr *tail; @@ -33,7 +33,8 @@ static void explain2(void) } -static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { while (argc) { if (strcmp(*argv, "help") == 0) { diff --git a/tc/q_fifo.c b/tc/q_fifo.c index c89d186d..5fd6c1b1 100644 --- a/tc/q_fifo.c +++ b/tc/q_fifo.c @@ -27,7 +27,8 @@ static void explain(void) fprintf(stderr, "Usage: ... <[p|b]fifo | pfifo_head_drop> [ limit NUMBER ]\n"); } -static int fifo_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int fifo_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { int ok = 0; struct tc_fifo_qopt opt = {}; diff --git a/tc/q_hfsc.c b/tc/q_hfsc.c index 597a659a..c19e87f9 100644 --- a/tc/q_hfsc.c +++ b/tc/q_hfsc.c @@ -23,8 +23,8 @@ #include "utils.h" #include "tc_util.h" -static int hfsc_get_sc(int *, char ***, struct tc_service_curve *, const char *); - +static int hfsc_get_sc(int *, char ***, + struct tc_service_curve *, const char *); static void explain_qdisc(void) @@ -70,7 +70,8 @@ explain1(char *arg) } static int -hfsc_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +hfsc_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { struct tc_hfsc_qopt qopt = {}; @@ -281,7 +282,8 @@ struct qdisc_util hfsc_qdisc_util = { }; static int -hfsc_get_sc1(int *argcp, char ***argvp, struct tc_service_curve *sc, const char *dev) +hfsc_get_sc1(int *argcp, char ***argvp, + struct tc_service_curve *sc, const char *dev) { char **argv = *argvp; int argc = *argcp; @@ -58,8 +58,8 @@ static void explain1(char *arg) explain(); } - -static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int htb_parse_opt(struct qdisc_util *qu, int argc, + char **argv, struct nlmsghdr *n, const char *dev) { unsigned int direct_qlen = ~0U; struct tc_htb_glob opt = { diff --git a/tc/q_prio.c b/tc/q_prio.c index 992da6f6..358cf06c 100644 --- a/tc/q_prio.c +++ b/tc/q_prio.c @@ -27,7 +27,8 @@ static void explain(void) fprintf(stderr, "Usage: ... prio bands NUMBER priomap P1 P2...[multiqueue]\n"); } -static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { int pmap_mode = 0; int idx = 0; @@ -32,7 +32,8 @@ static void explain(void) fprintf(stderr, " [ecn] [harddrop]\n"); } -static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { struct tc_red_qopt opt = {}; unsigned int burst = 0; @@ -35,7 +35,8 @@ static void explain1(const char *arg, const char *val) } -static int tbf_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) +static int tbf_parse_opt(struct qdisc_util *qu, int argc, char **argv, + struct nlmsghdr *n, const char *dev) { int ok = 0; struct tc_tbf_qopt opt = {}; |