diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-02 21:44:23 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-02 21:44:23 +0000 |
commit | 93bbff0bcb8060d02667b2018260c5468cd0e475 (patch) | |
tree | 2cddb68c2a4ab1c4f6e40f781bb024590f731d7a /usr.sbin/relayd | |
parent | 3da448405a46d99e49b5d8caf8207d651e13cca4 (diff) |
constify argument to buf_add
ok pyr@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/buffer.c | 4 | ||||
-rw-r--r-- | usr.sbin/relayd/relayd.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/relayd/buffer.c b/usr.sbin/relayd/buffer.c index 56b49937865..2f606dc2103 100644 --- a/usr.sbin/relayd/buffer.c +++ b/usr.sbin/relayd/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.14 2008/10/03 15:20:29 eric Exp $ */ +/* $OpenBSD: buffer.c,v 1.15 2009/06/02 21:44:22 eric Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -94,7 +94,7 @@ buf_realloc(struct buf *buf, size_t len) } int -buf_add(struct buf *buf, void *data, size_t len) +buf_add(struct buf *buf, const void *data, size_t len) { if (buf->wpos + len > buf->size) if (buf_realloc(buf, len) == -1) diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h index c392b2ebe48..d2874385266 100644 --- a/usr.sbin/relayd/relayd.h +++ b/usr.sbin/relayd/relayd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.h,v 1.116 2009/04/24 14:20:24 reyk Exp $ */ +/* $OpenBSD: relayd.h,v 1.117 2009/06/02 21:44:22 eric Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -787,7 +787,7 @@ const char *print_httperror(u_int); /* buffer.c */ struct buf *buf_open(size_t); struct buf *buf_dynamic(size_t, size_t); -int buf_add(struct buf *, void *, size_t); +int buf_add(struct buf *, const void *, size_t); void *buf_reserve(struct buf *, size_t); int buf_close(struct msgbuf *, struct buf *); void buf_free(struct buf *); |