1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

since we cast a pointer, use the correct signedness

(this was already in, and got lost in a recent update).
This commit is contained in:
Luigi Rizzo 2014-10-22 18:55:36 +00:00
parent eb1fef6574
commit 11a5be0f60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273479

View File

@ -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) {