diff options
author | 2017-01-20 14:10:05 +0000 | |
---|---|---|
committer | 2017-01-20 14:10:05 +0000 | |
commit | a3777487993cf120363313e0cea5af96163fce67 (patch) | |
tree | 4f091cedbe87e3b883b12ec64aa8e66f7f333f47 | |
parent | Reset various pointers in ikev2_msg_cleanup (diff) | |
download | wireguard-openbsd-a3777487993cf120363313e0cea5af96163fce67.tar.xz wireguard-openbsd-a3777487993cf120363313e0cea5af96163fce67.zip |
Constify the data argument for ibuf_new
From and OK markus@, OK reyk
-rw-r--r-- | sbin/iked/iked.h | 4 | ||||
-rw-r--r-- | sbin/iked/imsg_util.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h index 1e0b782b947..ae07b19958b 100644 --- a/sbin/iked/iked.h +++ b/sbin/iked/iked.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.h,v 1.100 2017/01/09 14:49:21 reyk Exp $ */ +/* $OpenBSD: iked.h,v 1.101 2017/01/20 14:10:05 mikeb Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -940,7 +940,7 @@ void print_verbose(const char *, ...) /* imsg_util.c */ struct ibuf * - ibuf_new(void *, size_t); + ibuf_new(const void *, size_t); struct ibuf * ibuf_static(void); int ibuf_cat(struct ibuf *, struct ibuf *); diff --git a/sbin/iked/imsg_util.c b/sbin/iked/imsg_util.c index 9bd20038089..250cfe32b98 100644 --- a/sbin/iked/imsg_util.c +++ b/sbin/iked/imsg_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg_util.c,v 1.10 2015/08/21 11:59:27 reyk Exp $ */ +/* $OpenBSD: imsg_util.c,v 1.11 2017/01/20 14:10:05 mikeb Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -49,7 +49,7 @@ ibuf_zero(struct ibuf *buf) } struct ibuf * -ibuf_new(void *data, size_t len) +ibuf_new(const void *data, size_t len) { struct ibuf *buf; |