diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2017-06-01 04:51:59 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2017-06-01 04:51:59 +0000 |
commit | c76ff90afe0f7f947afdc2a5a31d7097fb96b6e1 (patch) | |
tree | 6ed8a4ad8b0e03e286a3100a86094b837e59e77b /usr.bin/ssh | |
parent | 62c30afd276248f01f6fbc9f75f6a44eb61c39ab (diff) |
fix casts re constness
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/bitmap.c | 2 | ||||
-rw-r--r-- | usr.bin/ssh/sshbuf-getput-basic.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/bitmap.c b/usr.bin/ssh/bitmap.c index 01e8f2094c0..8315b95b246 100644 --- a/usr.bin/ssh/bitmap.c +++ b/usr.bin/ssh/bitmap.c @@ -187,7 +187,7 @@ bitmap_from_string(struct bitmap *b, const void *p, size_t l) { int r; size_t i, offset, shift; - u_char *s = (u_char *)p; + const u_char *s = (const u_char *)p; if (l > BITMAP_MAX / 8) return -1; diff --git a/usr.bin/ssh/sshbuf-getput-basic.c b/usr.bin/ssh/sshbuf-getput-basic.c index bd4443b42d6..8d64d8dd9de 100644 --- a/usr.bin/ssh/sshbuf-getput-basic.c +++ b/usr.bin/ssh/sshbuf-getput-basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf-getput-basic.c,v 1.6 2016/06/16 11:00:17 dtucker Exp $ */ +/* $OpenBSD: sshbuf-getput-basic.c,v 1.7 2017/06/01 04:51:58 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -363,7 +363,7 @@ sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) int sshbuf_put_cstring(struct sshbuf *buf, const char *v) { - return sshbuf_put_string(buf, (u_char *)v, v == NULL ? 0 : strlen(v)); + return sshbuf_put_string(buf, v, v == NULL ? 0 : strlen(v)); } int |