[PATCH 3/3] Cast oid argument of gcry_cipher_set_sbox to disable compiler warning

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Wed Nov 23 06:38:33 CET 2016


* src/gcrypt.h.in (gcry_cipher_set_sbox): cast oid to (void *).

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
 src/gcrypt.h.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index f896a78..77ff947 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -1062,7 +1062,7 @@ gcry_error_t gcry_cipher_checktag (gcry_cipher_hd_t hd, const void *intag,
                                                                    NULL, on )
 
 #define gcry_cipher_set_sbox(h,oid) gcry_cipher_ctl( (h), GCRYCTL_SET_SBOX, \
-                                                     (oid), 0);
+                                                     (void *) oid, 0);
 
 /* Indicate to the encrypt and decrypt functions that the next call
    provides the final data.  Only used with some modes.  */
-- 
2.10.2




More information about the Gcrypt-devel mailing list