Subject: [PATCH 2/2] libgcrypt.h: Change _libssh2_random() definition to a single statement

[PATCH 2/2] libgcrypt.h: Change _libssh2_random() definition to a single statement

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 13 Nov 2012 04:26:28 +0100

---
 src/libgcrypt.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libgcrypt.h b/src/libgcrypt.h
index 2f9864f..96b5e61 100644
--- a/src/libgcrypt.h
+++ b/src/libgcrypt.h
@@ -56,8 +56,8 @@
 #define MD5_DIGEST_LENGTH 16
 #define SHA_DIGEST_LENGTH 20
 
-#define _libssh2_random(buf, len)                \
-  (gcry_randomize ((buf), (len), GCRY_STRONG_RANDOM), 1)
+#define _libssh2_random(buf, len) \
+  gcry_randomize ((buf), (len), GCRY_STRONG_RANDOM)
 
 #define libssh2_sha1_ctx gcry_md_hd_t
 #define libssh2_sha1_init(ctx) gcry_md_open (ctx,  GCRY_MD_SHA1, 0);
-- 
1.7.4.1.343.ga91df.dirty
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-11-13