summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/route
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-04 09:36:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-04 14:46:23 +0200
commitde8a76da2f374792594ce03a203b3f30e4889f6f (patch)
tree12b5e1e59358005c3c522955c08aee4795e4829c /freebsd/sbin/route
parentEnable bridging by default (diff)
downloadrtems-libbsd-de8a76da2f374792594ce03a203b3f30e4889f6f.tar.bz2
Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
Diffstat (limited to 'freebsd/sbin/route')
-rw-r--r--freebsd/sbin/route/route.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/freebsd/sbin/route/route.c b/freebsd/sbin/route/route.c
index 5c32dd60..07a400fb 100644
--- a/freebsd/sbin/route/route.c
+++ b/freebsd/sbin/route/route.c
@@ -16,7 +16,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -343,7 +343,7 @@ fiboptlist_range(const char *arg, struct fibl_head_t *flh)
if (errno == 0) {
if (*endptr != '\0' ||
fib[i] < 0 ||
- (numfibs != -1 && fib[i] > numfibs - 1))
+ (numfibs != -1 && fib[i] > numfibs - 1))
errno = EINVAL;
}
if (errno)
@@ -1195,7 +1195,7 @@ inet_makenetandmask(u_long net, struct sockaddr_in *sin,
j <<= 8;
}
/* i holds the first non zero bit */
- bits = 32 - (i*8);
+ bits = 32 - (i*8);
}
if (bits != 0)
mask = 0xffffffff << (32 - bits);
@@ -1415,7 +1415,7 @@ prefixlen(const char *str)
int max;
char *p;
- rtm_addrs |= RTA_NETMASK;
+ rtm_addrs |= RTA_NETMASK;
switch (af) {
#ifdef INET6
case AF_INET6:
@@ -1449,7 +1449,7 @@ prefixlen(const char *str)
if (len < 0 || max < len)
errx(EX_USAGE, "%s: invalid prefixlen", str);
-
+
q = len >> 3;
r = len & 7;
memset((void *)p, 0, max / 8);