summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-07-31 11:19:41 +1000
committerteor <teor@torproject.org>2018-07-31 11:21:28 +1000
commit9118430b14dc20e0e2816d2dafe76714861b43b5 (patch)
treed3e8648120fe6578acf5713802ee3aebfce461d6 /src/tools
parente26794ace9b12a87f67b20a151d2c71a1563e26a (diff)
downloadtor-9118430b14dc20e0e2816d2dafe76714861b43b5.tar.gz
tor-9118430b14dc20e0e2816d2dafe76714861b43b5.zip
Use Windows-compatible format strings in tor-print-ed-signing-cert.c
Fixes bug 26986; bugfix on master.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-print-ed-signing-cert.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/tor-print-ed-signing-cert.c b/src/tools/tor-print-ed-signing-cert.c
index ca53e34d5d..0f64059d84 100644
--- a/src/tools/tor-print-ed-signing-cert.c
+++ b/src/tools/tor-print-ed-signing-cert.c
@@ -7,6 +7,7 @@
#include <time.h>
#include "ed25519_cert.h"
+#include "lib/cc/torint.h" /* TOR_PRIdSZ */
#include "lib/crypt_ops/crypto_format.h"
#include "lib/malloc/malloc.h"
@@ -49,8 +50,8 @@ main(int argc, char **argv)
ssize_t parsed = ed25519_cert_parse(&cert, certbuf, cert_body_len);
if (parsed <= 0) {
- fprintf(stderr, "ed25519_cert_parse failed with return value %zd\n",
- parsed);
+ fprintf(stderr, "ed25519_cert_parse failed with return value %" TOR_PRIdSZ
+ "\n", parsed);
return -5;
}