summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/message.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-10-24 20:52:51 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-10-24 20:52:51 +0000
commit0d42f712b9385b3dc336b4c2df13c4c7ac365cd5 (patch)
tree44aaf3cdac4deea1fe49565744ae4736d5eeeb4e /usr.sbin/ripd/message.c
parentcb735ba84540d643a3cdc5ea902dc771089fad6b (diff)
Make the packet buffer u_int8_t * everywhere. This is binary data and not
a string.
Diffstat (limited to 'usr.sbin/ripd/message.c')
-rw-r--r--usr.sbin/ripd/message.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/ripd/message.c b/usr.sbin/ripd/message.c
index b73cc6d81a0..091d162d640 100644
--- a/usr.sbin/ripd/message.c
+++ b/usr.sbin/ripd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.8 2007/10/18 17:00:59 deraadt Exp $ */
+/* $OpenBSD: message.c,v 1.9 2007/10/24 20:52:50 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -311,7 +311,7 @@ free:
}
void
-recv_request(struct iface *i, struct nbr *nbr, char *buf, u_int16_t len)
+recv_request(struct iface *i, struct nbr *nbr, u_int8_t *buf, u_int16_t len)
{
struct rip_entry *e;
struct rip_route rr;
@@ -363,7 +363,7 @@ recv_request(struct iface *i, struct nbr *nbr, char *buf, u_int16_t len)
rr.ifindex = i->ifindex;
ripe_imsg_compose_rde(IMSG_ROUTE_REQUEST, nbr->peerid,
- 0, (void *)&rr, sizeof(rr));
+ 0, &rr, sizeof(rr));
e++;
}
@@ -373,7 +373,7 @@ recv_request(struct iface *i, struct nbr *nbr, char *buf, u_int16_t len)
}
void
-recv_response(struct iface *i, struct nbr *nbr, char *buf, u_int16_t len)
+recv_response(struct iface *i, struct nbr *nbr, u_int8_t *buf, u_int16_t len)
{
struct rip_route r;
struct rip_entry *e;
@@ -423,8 +423,7 @@ recv_response(struct iface *i, struct nbr *nbr, char *buf, u_int16_t len)
r.metric = ntohl(e->metric);
r.ifindex = i->ifindex;
- ripe_imsg_compose_rde(IMSG_ROUTE_FEED, 0, 0, (void *)&r,
- sizeof(r));
+ ripe_imsg_compose_rde(IMSG_ROUTE_FEED, 0, 0, &r, sizeof(r));
e++;
}