From caf0e6096908b38a20e1358b76ed4da44bbe45a4 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 30 Dec 2013 19:15:48 +0100
Subject: [PATCH] Forced cast to unsigned int for %u format in the ecdsa
application
---
programs/pkey/ecdsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c
index 0783c71a4..3dccfeb1d 100644
--- a/programs/pkey/ecdsa.c
+++ b/programs/pkey/ecdsa.c
@@ -162,7 +162,7 @@ int main( int argc, char *argv[] )
printf( " failed\n ! ecdsa_genkey returned %d\n", ret );
goto exit;
}
- printf( " ok (signature length = %u)\n", sig_len );
+ printf( " ok (signature length = %u)\n", (unsigned int) sig_len );
dump_buf( " + Hash: ", hash, sizeof hash );
dump_buf( " + Signature: ", sig, sig_len );