From 5c4697a4051187b92c521bad27ee173eaa939003 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 5 Jun 2023 18:43:58 -0700 Subject: [PATCH] whitespace cleanups Remove trailing whitespace. Make sure there is space after keywords. Signed-off-by: Stephen Hemminger --- ip/ipmaddr.c | 2 +- lib/mpls_ntop.c | 2 +- lib/mpls_pton.c | 2 +- rdma/stat.c | 2 +- tc/q_netem.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ip/ipmaddr.c b/ip/ipmaddr.c index a8ef20ec6..176f6ab74 100644 --- a/ip/ipmaddr.c +++ b/ip/ipmaddr.c @@ -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); } diff --git a/lib/mpls_ntop.c b/lib/mpls_ntop.c index f8d89f421..eb54a9d95 100644 --- a/lib/mpls_ntop.c +++ b/lib/mpls_ntop.c @@ -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); diff --git a/lib/mpls_pton.c b/lib/mpls_pton.c index 065374eb1..e69671504 100644 --- a/lib/mpls_pton.c +++ b/lib/mpls_pton.c @@ -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); diff --git a/rdma/stat.c b/rdma/stat.c index aad8815ce..3df2c98f4 100644 --- a/rdma/stat.c +++ b/rdma/stat.c @@ -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); diff --git a/tc/q_netem.c b/tc/q_netem.c index d1d79b0b4..8ace2b614 100644 --- a/tc/q_netem.c +++ b/tc/q_netem.c @@ -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); -- 2.47.2