whitespace cleanups

Remove trailing whitespace.
Make sure there is space after keywords.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger
2023-06-05 18:43:58 -07:00
parent 9c1f7f453f
commit 5c4697a405
5 changed files with 5 additions and 5 deletions

View 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);
}

View 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);

View 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);

View 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);

View 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);