summaryrefslogtreecommitdiff
path: root/sshbuf-misc.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-06-05 03:24:36 +0000
committerDamien Miller <djm@mindrot.org>2020-06-05 13:28:29 +1000
commit69796297c812640415c6cea074ea61afc899cbaa (patch)
tree193e4b25199953c4ae2c8e22782b6161e65f3361 /sshbuf-misc.c
parent670428895739d1f79894bdb2457891c3afa60a59 (diff)
downloadopenssh-git-69796297c812640415c6cea074ea61afc899cbaa.tar.gz
upstream: make sshbuf_dump() args const
OpenBSD-Commit-ID: b4a5accae750875d665b862504169769bcf663bd
Diffstat (limited to 'sshbuf-misc.c')
-rw-r--r--sshbuf-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshbuf-misc.c b/sshbuf-misc.c
index 9b5aa208..86e5fa34 100644
--- a/sshbuf-misc.c
+++ b/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
*
@@ -63,7 +63,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);