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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user