diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-12-26 17:32:34 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-12-26 17:32:34 +0000 |
commit | 7a0b37a105dced953db99747befb1ba39ff51afa (patch) | |
tree | a79fe4b7089d4c5f9ad055fd7932232075d3d133 /lib/libutil/imsg.h | |
parent | 3ff4a18b976016ce2fcf3acd1ea75cbdb8b4d62c (diff) |
constify data parameter in imsg_add() and imsg_compose()
ok deraadt@
Diffstat (limited to 'lib/libutil/imsg.h')
-rw-r--r-- | lib/libutil/imsg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/imsg.h b/lib/libutil/imsg.h index d691f7d36f3..89946578b90 100644 --- a/lib/libutil/imsg.h +++ b/lib/libutil/imsg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.h,v 1.2 2010/06/23 07:53:55 nicm Exp $ */ +/* $OpenBSD: imsg.h,v 1.3 2013/12/26 17:32:33 eric Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -98,12 +98,12 @@ void imsg_init(struct imsgbuf *, int); ssize_t imsg_read(struct imsgbuf *); ssize_t imsg_get(struct imsgbuf *, struct imsg *); int imsg_compose(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, - int, void *, u_int16_t); + int, const void *, u_int16_t); int imsg_composev(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, int, const struct iovec *, int); struct ibuf *imsg_create(struct imsgbuf *, u_int32_t, u_int32_t, pid_t, u_int16_t); -int imsg_add(struct ibuf *, void *, u_int16_t); +int imsg_add(struct ibuf *, const void *, u_int16_t); void imsg_close(struct imsgbuf *, struct ibuf *); void imsg_free(struct imsg *); int imsg_flush(struct imsgbuf *); |