Fix style(9)

Reviewed by:	allanjude, vangyzen
Approved by:	allanjude
MFC after:	1 week
Sponsored by:	Rubicon Communications (Netgate)
Differential Revision:	https://reviews.freebsd.org/D9510
This commit is contained in:
Renato Botelho 2017-02-14 18:11:16 +00:00
parent 2fb3637007
commit 937f8ddf10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313737

View file

@ -111,8 +111,9 @@
#define NEXTADDR(w, s) \
if (rtm->rtm_addrs & (w)) { \
bcopy((char *)&s, cp, sizeof(s)); cp += SA_SIZE(&s);}
bcopy((char *)&s, cp, sizeof(s)); \
cp += SA_SIZE(&s); \
}
static pid_t pid;
static int nflag;
@ -604,7 +605,8 @@ again:;
rtm = (struct rt_msghdr *)next;
sin = (struct sockaddr_in6 *)(rtm + 1);
sdl = (struct sockaddr_dl *)((char *)sin + ALIGN(sin->sin6_len));
sdl = (struct sockaddr_dl *)((char *)sin +
ALIGN(sin->sin6_len));
/*
* Some OSes can produce a route that has the LINK flag but
@ -924,21 +926,19 @@ ifinfo(char *ifname, int argc, char **argv)
cp++;
}
#define SETFLAG(s, f) \
do {\
if (strcmp(cp, (s)) == 0) {\
if (clear)\
newflags &= ~(f);\
else\
newflags |= (f);\
}\
} while (0)
#define SETFLAG(s, f) do { \
if (strcmp(cp, (s)) == 0) { \
if (clear) \
newflags &= ~(f); \
else \
newflags |= (f); \
} \
} while (0)
/*
* XXX: this macro is not 100% correct, in that it matches "nud" against
* "nudbogus". But we just let it go since this is minor.
*/
#define SETVALUE(f, v) \
do { \
#define SETVALUE(f, v) do { \
char *valptr; \
unsigned long newval; \
v = 0; /* unspecified */ \
@ -952,7 +952,7 @@ ifinfo(char *ifname, int argc, char **argv)
err(1, "syntax error in %s's value", (f)); \
v = newval; \
} \
} while (0)
} while (0)
SETFLAG("disabled", ND6_IFF_IFDISABLED);
SETFLAG("nud", ND6_IFF_PERFORMNUD);
@ -1021,7 +1021,7 @@ ifinfo(char *ifname, int argc, char **argv)
printf("%02x", rbuf[j]);
}
}
#endif
#endif /* IPV6CTL_USETEMPADDR */
if (ND.flags) {
printf("\nFlags: ");
#ifdef ND6_IFF_IFDISABLED
@ -1314,7 +1314,7 @@ getdefif()
close(s);
}
#endif
#endif /* SIOCSDEFIFACE_IN6 */
static char *
sec2str(time_t total)