summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf-misc.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2020-06-05 03:24:36 +0000
committerdjm <djm@openbsd.org>2020-06-05 03:24:36 +0000
commit19d7d1041b20eca1dfe9a7e622a70d4917b0f871 (patch)
tree6d75bf68a51a07de6eed02215242f30c93d499d3 /usr.bin/ssh/sshbuf-misc.c
parentwrap long line (diff)
downloadwireguard-openbsd-19d7d1041b20eca1dfe9a7e622a70d4917b0f871.tar.xz
wireguard-openbsd-19d7d1041b20eca1dfe9a7e622a70d4917b0f871.zip
make sshbuf_dump() args const
Diffstat (limited to 'usr.bin/ssh/sshbuf-misc.c')
-rw-r--r--usr.bin/ssh/sshbuf-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshbuf-misc.c b/usr.bin/ssh/sshbuf-misc.c
index 9ece8bc64a8..287eb28552c 100644
--- a/usr.bin/ssh/sshbuf-misc.c
+++ b/usr.bin/ssh/sshbuf-misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshbuf-misc.c,v 1.14 2020/02/26 13:40:09 jsg Exp $ */
+/* $OpenBSD: sshbuf-misc.c,v 1.15 2020/06/05 03:24:36 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -59,7 +59,7 @@ sshbuf_dump_data(const void *s, size_t len, FILE *f)
}
void
-sshbuf_dump(struct sshbuf *buf, FILE *f)
+sshbuf_dump(const struct sshbuf *buf, FILE *f)
{
fprintf(f, "buffer %p len = %zu\n", buf, sshbuf_len(buf));
sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f);