summaryrefslogtreecommitdiffstats
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-04-18 19:36:01 +0000
committerru <ru@FreeBSD.org>2004-04-18 19:36:01 +0000
commit9540f2e5933db7e71d347e604502be84c5d562ff (patch)
tree85cc4782e19423b80e3f6920d33124ab6f2b5587 /sys/net/rtsock.c
parent22ff34b571813d64c42e2ad042f2972a997d0b0d (diff)
downloadFreeBSD-src-9540f2e5933db7e71d347e604502be84c5d562ff.zip
FreeBSD-src-9540f2e5933db7e71d347e604502be84c5d562ff.tar.gz
Fixed a bug from rev. 1.42: cast to a correct type.
Submitted by: luigi
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index e9fa47f..58673af 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -327,8 +327,8 @@ route_output(struct mbuf *m, struct socket *so)
struct radix_node *t;
t = rn_addmask((caddr_t) info.rti_info[RTAX_GENMASK], 0, 1);
/* XXX why this odd cast to (caddr_t *) ? Maybe wrong ? */
- if (t && bcmp((caddr_t *) info.rti_info[RTAX_GENMASK] + 1,
- (caddr_t *)t->rn_key + 1,
+ if (t && bcmp((caddr_t)info.rti_info[RTAX_GENMASK] + 1,
+ (caddr_t)t->rn_key + 1,
*(u_char *)t->rn_key - 1) == 0)
info.rti_info[RTAX_GENMASK] =
(struct sockaddr *)(t->rn_key);
OpenPOWER on IntegriCloud