svn commit: r273479 - head/sys/net

Luigi Rizzo luigi at FreeBSD.org
Wed Oct 22 18:55:36 UTC 2014


Author: luigi
Date: Wed Oct 22 18:55:36 2014
New Revision: 273479
URL: https://svnweb.freebsd.org/changeset/base/273479

Log:
  since we cast a pointer, use the correct signedness
  (this was already in, and got lost in a recent update).

Modified:
  head/sys/net/radix.c

Modified: head/sys/net/radix.c
==============================================================================
--- head/sys/net/radix.c	Wed Oct 22 18:11:10 2014	(r273478)
+++ head/sys/net/radix.c	Wed Oct 22 18:55:36 2014	(r273479)
@@ -528,7 +528,7 @@ rn_addmask(void *n_arg, struct radix_nod
 	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) {


More information about the svn-src-head mailing list