]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
pedit: fix whitespace
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 1 May 2017 16:25:22 +0000 (09:25 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 1 May 2017 16:25:22 +0000 (09:25 -0700)
Add newlines to break long lines.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_pedit.c
tc/m_pedit.h

index 0be42343ac88666e00c199840bd6bd7f460a9812..6498dd91b47102ebf0a78c3bbceca2bcc1cda25f 100644 (file)
@@ -145,7 +145,8 @@ int pack_key(struct m_pedit_sel *_sel, struct m_pedit_key *tkey)
        } else {
                if (tkey->htype != TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK ||
                    tkey->cmd != TCA_PEDIT_KEY_EX_CMD_SET) {
-                       fprintf(stderr, "Munge parameters not supported. Use 'munge ex'.\n");
+                       fprintf(stderr,
+                               "Munge parameters not supported. Use 'munge ex'.\n");
                        return -1;
                }
        }
@@ -326,7 +327,8 @@ int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type, __u32 retain,
                        tkey->cmd = TCA_PEDIT_KEY_EX_CMD_ADD;
 
                if (!sel->extended && tkey->cmd) {
-                       fprintf(stderr, "Non extended mode. only 'set' command is supported\n");
+                       fprintf(stderr,
+                               "Non extended mode. only 'set' command is supported\n");
                        return -1;
                }
 
@@ -584,7 +586,8 @@ int parse_pedit(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
 
                        if (matches(*argv, "ex") == 0) {
                                if (ok > 1) {
-                                       fprintf(stderr, "'ex' must be before first 'munge'\n");
+                                       fprintf(stderr,
+                                               "'ex' must be before first 'munge'\n");
                                        explain();
                                        return -1;
                                }
index ecfb6add0df55ce537b4a953c48273a6f2984f2d..0bc0297100f03b85c059264f29e9bcfdef5d6042 100644 (file)
@@ -64,25 +64,31 @@ struct m_pedit_sel {
        bool extended;
 };
 
-struct m_pedit_util
-{
+struct m_pedit_util {
        struct m_pedit_util *next;
        char    id[PEDITKINDSIZ];
        int     (*parse_peopt)(int *argc_p, char ***argv_p,
-                              struct m_pedit_sel *sel, struct m_pedit_key *tkey);
+                              struct m_pedit_sel *sel,
+                              struct m_pedit_key *tkey);
 };
 
 extern int pack_key(struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key32(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key16(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key8(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int parse_val(int *argc_p, char ***argv_p, __u32 * val, int type);
-extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type, __u32 retain,
+extern int pack_key32(__u32 retain, struct m_pedit_sel *sel,
+                     struct m_pedit_key *tkey);
+extern int pack_key16(__u32 retain, struct m_pedit_sel *sel,
+                     struct m_pedit_key *tkey);
+extern int pack_key8(__u32 retain, struct m_pedit_sel *sel,
+                    struct m_pedit_key *tkey);
+extern int parse_val(int *argc_p, char ***argv_p, __u32 *val, int type);
+extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,
+                    __u32 retain,
                     struct m_pedit_sel *sel, struct m_pedit_key *tkey);
 extern int parse_offset(int *argc_p, char ***argv_p,
                        struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-int parse_pedit(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
-extern int print_pedit(struct action_util *au,FILE * f, struct rtattr *arg);
-extern int pedit_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats);
+int parse_pedit(struct action_util *a, int *argc_p, char ***argv_p,
+               int tca_id, struct nlmsghdr *n);
+extern int print_pedit(struct action_util *au, FILE *f, struct rtattr *arg);
+extern int pedit_print_xstats(struct action_util *au, FILE *f,
+                             struct rtattr *xstats);
 
 #endif