]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
add space after keyword
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 16 Jan 2023 17:18:58 +0000 (09:18 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 16 Jan 2023 17:18:58 +0000 (09:18 -0800)
The style standard is to use space after keywords.
Example:
if (expr)
verus
if(expr)

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
dcb/dcb_app.c
devlink/devlink.c
ip/iprule.c

index b9ac8f4bce59bc751236315b15c4c6ba3a2bc4ea..eeb78e70f63f305daf90adbd106c680151f580e5 100644 (file)
@@ -264,7 +264,7 @@ static int dcb_app_parse_pcp(__u32 *key, const char *arg)
 {
        int i;
 
-       for(i = 0; i < ARRAY_SIZE(pcp_names); i++) {
+       for (i = 0; i < ARRAY_SIZE(pcp_names); i++) {
                if (pcp_names[i] && strcmp(arg, pcp_names[i]) == 0) {
                        *key = i;
                        return 0;
index 931a768a41d159d809c3c07f9656ffa934ceea30..795f8318c0c4433bdc9175307e3a871273a12634 100644 (file)
@@ -1963,7 +1963,7 @@ static int dl_argv_parse(struct dl *dl, uint64_t o_required,
 
                        dl_arg_inc(dl);
                        err = dl_argv_str(dl, &sectionstr);
-                       if(err)
+                       if (err)
                                return err;
                        err = flash_overwrite_section_get(sectionstr,
                                                          &opts->overwrite_mask);
index 654ffffe3cc056a4556bee0d477c8c45f8a4aa6e..458607efd93f30bd7075542546b2dc12c845c6df 100644 (file)
@@ -695,7 +695,7 @@ static int iprule_list_flush_or_save(int argc, char **argv, int action)
                        else if (ret != 2)
                                invarg("invalid dport range\n", *argv);
                        filter.dport = r;
-               } else{
+               } else {
                        if (matches(*argv, "dst") == 0 ||
                            matches(*argv, "to") == 0) {
                                NEXT_ARG();