[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Use Windows-compatible format strings in tor-print-ed-signing-cert.c



commit 9118430b14dc20e0e2816d2dafe76714861b43b5
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Tue Jul 31 11:19:41 2018 +1000

    Use Windows-compatible format strings in tor-print-ed-signing-cert.c
    
    Fixes bug 26986; bugfix on master.
---
 changes/bug26986                      | 3 +++
 src/tools/tor-print-ed-signing-cert.c | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/changes/bug26986 b/changes/bug26986
new file mode 100644
index 000000000..a3ab9ff25
--- /dev/null
+++ b/changes/bug26986
@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Use Windows-compatible format strings in tor-print-ed-signing-cert.c.
+      Fixes bug 26986; bugfix on master.
diff --git a/src/tools/tor-print-ed-signing-cert.c b/src/tools/tor-print-ed-signing-cert.c
index ca53e34d5..0f64059d8 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;
   }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits