Remove trailing whitespace.
Make sure there is space after keywords.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ma = malloc(sizeof(m));
if (ma == NULL)
break;
-
+
memcpy(ma, &m, sizeof(m));
maddr_ins(result_p, ma);
}
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);
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);
}
mode = strtok_r(NULL, delim, &saved_ptr);
- } while(1);
+ } while (1);
if (mask)
rd_arg_inc(rd);
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);