]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: f_u32: trivial coding style cleanups
authorLuca Lemmo <luca@linux.com>
Wed, 16 Mar 2016 16:56:13 +0000 (17:56 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 21 Mar 2016 18:42:12 +0000 (11:42 -0700)
Signed-off-by: Luca Lemmo <luca@linux.com>
tc/f_u32.c

index 2a6c9712d6331aebf1826a1369d6e8456020d179..5ca60c89d47d9ac127ed0b87f4022eb7b75503c4 100644 (file)
@@ -80,7 +80,7 @@ static int get_u32_handle(__u32 *handle, const char *str)
        return 0;
 }
 
-static char * sprint_u32_handle(__u32 handle, char *buf)
+static char *sprint_u32_handle(__u32 handle, char *buf)
 {
        int bsize = SPRINT_BSIZE-1;
        __u32 htid = TC_U32_HTID(handle);
@@ -382,7 +382,7 @@ static int parse_ip6_addr(int *argc_p, char ***argv_p,
 
        plen = addr.bitlen;
        for (i = 0; i < plen; i += 32) {
-//             if (((i + 31) & ~0x1F) <= plen) {
+               /* if (((i + 31) & ~0x1F) <= plen) { */
                if (i + 31 <= plen) {
                        res = pack_key(sel, addr.data[i / 32],
                                       0xFFFFFFFF, off + 4 * (i / 32), offmask);
@@ -1109,14 +1109,14 @@ static int u32_parse_opt(struct filter_util *qu, char *handle,
                        continue;
                } else if (strcmp(*argv, "indev") == 0) {
                        char ind[IFNAMSIZ + 1];
-                       memset(ind, 0, sizeof (ind));
+                       memset(ind, 0, sizeof(ind));
                        argc--;
                        argv++;
                        if (argc < 1) {
                                fprintf(stderr, "Illegal indev\n");
                                return -1;
                        }
-                       strncpy(ind, *argv, sizeof (ind) - 1);
+                       strncpy(ind, *argv, sizeof(ind) - 1);
                        addattr_l(n, MAX_MSG, TCA_U32_INDEV, ind, strlen(ind) + 1);
 
                } else if (matches(*argv, "action") == 0) {