From: Stephen Hemminger Date: Fri, 24 Nov 2017 19:31:36 +0000 (-0800) Subject: tc: break long lines X-Git-Tag: v4.15.0~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=859af0a5dca7ccc73cc09b457ec8220fc466811a;p=thirdparty%2Fiproute2.git tc: break long lines Signed-off-by: Stephen Hemminger --- diff --git a/tc/f_rsvp.c b/tc/f_rsvp.c index 02028b4bd..1ce37340e 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 = {}; diff --git a/tc/q_atm.c b/tc/q_atm.c index 787b46cde..783a578c3 100644 --- a/tc/q_atm.c +++ b/tc/q_atm.c @@ -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"); diff --git a/tc/q_cbs.c b/tc/q_cbs.c index e1134c3a2..b57390571 100644 --- a/tc/q_cbs.c +++ b/tc/q_cbs.c @@ -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; diff --git a/tc/q_drr.c b/tc/q_drr.c index 85aa5b600..5e541c09a 100644 --- a/tc/q_drr.c +++ b/tc/q_drr.c @@ -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 c89d186d9..5fd6c1b11 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 597a659a7..c19e87f98 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; diff --git a/tc/q_htb.c b/tc/q_htb.c index 3e295a71b..ffb43aa15 100644 --- a/tc/q_htb.c +++ b/tc/q_htb.c @@ -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 992da6f6f..358cf06cc 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; diff --git a/tc/q_red.c b/tc/q_red.c index cf482fcca..1949558f1 100644 --- a/tc/q_red.c +++ b/tc/q_red.c @@ -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; diff --git a/tc/q_tbf.c b/tc/q_tbf.c index 2c5edbe21..dfaa5d383 100644 --- a/tc/q_tbf.c +++ b/tc/q_tbf.c @@ -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 = {};