]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
whitespace cleanups
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Jun 2023 01:43:58 +0000 (18:43 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Jun 2023 01:45:45 +0000 (18:45 -0700)
Remove trailing whitespace.
Make sure there is space after keywords.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipmaddr.c
lib/mpls_ntop.c
lib/mpls_pton.c
rdma/stat.c
tc/q_netem.c

index a8ef20ec624a48828ffa895c5d1777dc468ca9dd..176f6ab74b9440c294f3ef881cc94b287bf94dca 100644 (file)
@@ -153,7 +153,7 @@ static void read_igmp(struct ma_info **result_p)
                ma = malloc(sizeof(m));
                if (ma == NULL)
                        break;
-                       
+
                memcpy(ma, &m, sizeof(m));
                maddr_ins(result_p, ma);
        }
index f8d89f421ecba6b09af1fd191d5c8a9af320439e..eb54a9d951b4d40a9c3fdda7dd55015f4ece3e80 100644 (file)
@@ -40,7 +40,7 @@ static const char *mpls_ntop1(const struct mpls_label *addr, char *buf, size_t b
 
 const char *mpls_ntop(int af, const void *addr, char *buf, size_t buflen)
 {
-       switch(af) {
+       switch (af) {
        case AF_MPLS:
                errno = 0;
                return mpls_ntop1((struct mpls_label *)addr, buf, buflen);
index 065374eb11bf582a3b3952d36994cddf9ae36ff8..e69671504a1b6c0a3a2af430889623c404e49872 100644 (file)
@@ -49,7 +49,7 @@ int mpls_pton(int af, const char *src, void *addr, size_t alen)
        unsigned int maxlabels = alen / sizeof(struct mpls_label);
        int err;
 
-       switch(af) {
+       switch (af) {
        case AF_MPLS:
                errno = 0;
                err = mpls_pton1(src, (struct mpls_label *)addr, maxlabels);
index aad8815ce95319532a6a5332e9199522fb2d78ef..3df2c98f4d9aa0c917156a313ef5529a10dce3e7 100644 (file)
@@ -443,7 +443,7 @@ static int stat_get_auto_mode_mask(struct rd *rd)
                }
 
                mode = strtok_r(NULL, delim, &saved_ptr);
-       } while(1);
+       } while (1);
 
        if (mask)
                rd_arg_inc(rd);
index d1d79b0b4d356db343703632c4c262780b9eafae..8ace2b614284ab53f2c526f0de2ba5ad9c5ddaba 100644 (file)
@@ -419,7 +419,7 @@ random_loss_model:
                        dist_data = calloc(sizeof(dist_data[0]), MAX_DIST);
                        if (dist_data == NULL)
                                return -1;
-                       
+
                        dist_size = get_distribution(*argv, dist_data, MAX_DIST);
                        if (dist_size <= 0) {
                                free(dist_data);