summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2019-07-03 06:15:48 +0000
committerclaudio <claudio@openbsd.org>2019-07-03 06:15:48 +0000
commitc656f5c3749ea1d5645be9726ad5c25905b5d275 (patch)
tree1a04c0a68da0514553665eb09cc4333eb6227241 /usr.sbin/bgpctl
parentForgotten va_copy/va_end; on some archs that is really needed. ok benno@ (diff)
downloadwireguard-openbsd-c656f5c3749ea1d5645be9726ad5c25905b5d275.tar.xz
wireguard-openbsd-c656f5c3749ea1d5645be9726ad5c25905b5d275.zip
Remove unneccessary type cast
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index f8837c7a188..8242c0d95d2 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.241 2019/06/25 07:44:20 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.242 2019/07/03 06:15:48 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1446,7 +1446,7 @@ show_attr(void *b, u_int16_t len, int flag0)
data += 4;
len -= 4;
} else {
- alen = (u_char)data[2];
+ alen = data[2];
data += 3;
len -= 3;
}