summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hmac.c4
-rw-r--r--sshbuf-misc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/hmac.c b/hmac.c
index d1c12417e..1c879640c 100644
--- a/hmac.c
+++ b/hmac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hmac.c,v 1.11 2015/01/15 21:37:14 markus Exp $ */ 1/* $OpenBSD: hmac.c,v 1.12 2015/03/24 20:03:44 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Markus Friedl. All rights reserved. 3 * Copyright (c) 2014 Markus Friedl. All rights reserved.
4 * 4 *
@@ -154,7 +154,7 @@ hmac_test(void *key, size_t klen, void *m, size_t mlen, u_char *e, size_t elen)
154 154
155 if (memcmp(e, digest, elen)) { 155 if (memcmp(e, digest, elen)) {
156 for (i = 0; i < elen; i++) 156 for (i = 0; i < elen; i++)
157 printf("[%zd] %2.2x %2.2x\n", i, e[i], digest[i]); 157 printf("[%zu] %2.2x %2.2x\n", i, e[i], digest[i]);
158 printf("mismatch\n"); 158 printf("mismatch\n");
159 } else 159 } else
160 printf("ok\n"); 160 printf("ok\n");
diff --git a/sshbuf-misc.c b/sshbuf-misc.c
index f1c2d03c9..d022065f9 100644
--- a/sshbuf-misc.c
+++ b/sshbuf-misc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshbuf-misc.c,v 1.3 2015/02/05 12:59:57 millert Exp $ */ 1/* $OpenBSD: sshbuf-misc.c,v 1.4 2015/03/24 20:03:44 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller 3 * Copyright (c) 2011 Damien Miller
4 * 4 *
@@ -42,7 +42,7 @@ sshbuf_dump_data(const void *s, size_t len, FILE *f)
42 const u_char *p = (const u_char *)s; 42 const u_char *p = (const u_char *)s;
43 43
44 for (i = 0; i < len; i += 16) { 44 for (i = 0; i < len; i += 16) {
45 fprintf(f, "%.4zd: ", i); 45 fprintf(f, "%.4zu: ", i);
46 for (j = i; j < i + 16; j++) { 46 for (j = i; j < i + 16; j++) {
47 if (j < len) 47 if (j < len)
48 fprintf(f, "%02x ", p[j]); 48 fprintf(f, "%02x ", p[j]);