summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/imsg.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-20 21:14:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-20 21:14:56 +0000
commit16da6d2ee94b057ef5fbfc73701dcd76e24aa81c (patch)
treeb54d55bc0974b6faddd32da695e22afd5a042409 /usr.sbin/bgpd/imsg.c
parentb50914bcbf212c47516493cec8225da4c0cf3313 (diff)
let buf_add take void *data instead of u_char *data and save a zillion
evil casts
Diffstat (limited to 'usr.sbin/bgpd/imsg.c')
-rw-r--r--usr.sbin/bgpd/imsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/imsg.c b/usr.sbin/bgpd/imsg.c
index 4a7bf9e13f4..ecd6995719c 100644
--- a/usr.sbin/bgpd/imsg.c
+++ b/usr.sbin/bgpd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.3 2003/12/20 18:39:05 henning Exp $ */
+/* $OpenBSD: imsg.c,v 1.4 2003/12/20 21:14:55 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -97,7 +97,7 @@ imsg_compose(int fd, int type, u_int32_t peerid, u_char *data,
wbuf = buf_open(NULL, fd, hdr.len);
if (wbuf == NULL)
fatal("buf_open error", 0);
- if (buf_add(wbuf, (u_char *)&hdr, sizeof(hdr)) == -1)
+ if (buf_add(wbuf, &hdr, sizeof(hdr)) == -1)
fatal("buf_add error", 0);
if (datalen)
if (buf_add(wbuf, data, datalen) == -1)