aboutsummaryrefslogtreecommitdiff
path: root/sys/net/radix.c
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2014-10-22 18:55:36 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2014-10-22 18:55:36 +0000
commit11a5be0f6094c934efe02f0d7c008a16eb67f067 (patch)
treece397f6a5a4d07020b08027f95237de5f208705d /sys/net/radix.c
parenteb1fef6574e1e83c7364614a85c39e7244c30271 (diff)
downloadsrc-11a5be0f6094c934efe02f0d7c008a16eb67f067.tar.gz
src-11a5be0f6094c934efe02f0d7c008a16eb67f067.zip
since we cast a pointer, use the correct signedness
(this was already in, and got lost in a recent update).
Notes
Notes: svn path=/head/; revision=273479
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r--sys/net/radix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index 0447cba6f665..d16c92490729 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -528,7 +528,7 @@ rn_addmask(void *n_arg, struct radix_node_head *maskhead, int search, int skip)
R_Zalloc(x, struct radix_node *, RADIX_MAX_KEY_LEN + 2 * sizeof (*x));
if ((saved_x = x) == 0)
return (0);
- netmask = cp = (caddr_t)(x + 2);
+ netmask = cp = (unsigned char *)(x + 2);
bcopy(addmask_key, cp, mlen);
x = rn_insert(cp, maskhead, &maskduplicated, x);
if (maskduplicated) {