2017-02-04 00:19:42 +00:00
|
|
|
commit 13560e2c4d340056c4381e4216c49950a350ed0b
|
|
|
|
Author: D. Hugh Redelmeier <hugh@mimosa.com>
|
|
|
|
Date: Fri Feb 3 18:16:10 2017 -0500
|
|
|
|
|
|
|
|
pluto: use %tu to format ptrdiff_t (%zu is for size_t)
|
|
|
|
|
|
|
|
diff --git a/programs/pluto/test_buffer.c b/programs/pluto/test_buffer.c
|
|
|
|
index 6f24aa1..9b4ed0b 100644
|
|
|
|
--- a/programs/pluto/test_buffer.c
|
|
|
|
+++ b/programs/pluto/test_buffer.c
|
|
|
|
@@ -66,7 +66,7 @@ chunk_t decode_hex_to_chunk(const char *original, const char *string)
|
|
|
|
buf[i] = '\0';
|
2017-02-03 22:51:18 +00:00
|
|
|
if (i != 2) {
|
|
|
|
loglog(RC_INTERNALERR,
|
2017-02-04 00:19:42 +00:00
|
|
|
- "unexpected space or NUL character at offset %zu in hex buffer \"%s\" at \"%s\"\n",
|
|
|
|
+ "unexpected space or NUL character at offset %tu in hex buffer \"%s\" at \"%s\"\n",
|
|
|
|
pos - string, string, pos);
|
2017-02-03 22:51:18 +00:00
|
|
|
exit_pluto(PLUTO_EXIT_NSS_FAIL);
|
|
|
|
}
|
2017-02-04 00:19:42 +00:00
|
|
|
@@ -74,7 +74,7 @@ chunk_t decode_hex_to_chunk(const char *original, const char *string)
|
|
|
|
chunk.ptr[chunk.len] = strtoul(buf, &end, 16);
|
2017-02-03 22:51:18 +00:00
|
|
|
if (end - buf != 2) {
|
|
|
|
loglog(RC_INTERNALERR,
|
2017-02-04 00:19:42 +00:00
|
|
|
- "invalid character at offset %zu in hex buffer \"%s\" at \"%s\"\n",
|
|
|
|
+ "invalid character at offset %tu in hex buffer \"%s\" at \"%s\"\n",
|
|
|
|
pos-string, string, pos);
|
2017-02-03 22:51:18 +00:00
|
|
|
exit_pluto(PLUTO_EXIT_NSS_FAIL);
|
|
|
|
}
|