summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/buffer.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/buffer.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/buffer.c')
-rw-r--r--usr.sbin/bgpd/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c
index f93c2660ed6..29c0d693c16 100644
--- a/usr.sbin/bgpd/buffer.c
+++ b/usr.sbin/bgpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.2 2003/12/20 14:33:09 henning Exp $ */
+/* $OpenBSD: buffer.c,v 1.3 2003/12/20 21:14:55 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -52,7 +52,7 @@ buf_open(struct peer *peer, int sock, ssize_t len)
}
int
-buf_add(struct buf *buf, u_char *data, ssize_t len)
+buf_add(struct buf *buf, void *data, ssize_t len)
{
if (buf->wpos + len > buf->size)
return (-1);