]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Avoid returning from void function. Patch by Rob McMahon.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 19 Jul 2012 18:57:12 +0000 (20:57 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 19 Jul 2012 18:59:50 +0000 (20:59 +0200)
lib/nettle/cipher.c

index 1333cae97d9f500909609a44e7bce4e27637d10e..5bae0f1bfae49f5211f5ebbf3c642d639f10ec1f 100644 (file)
@@ -90,7 +90,7 @@ static void _gcm_encrypt(void *_ctx, nettle_crypt_func f,
             unsigned length, uint8_t *dst,
             const uint8_t *src)
 {
-  return gcm_aes_encrypt(_ctx, length, dst, src);
+  gcm_aes_encrypt(_ctx, length, dst, src);
 }
 
 static void _gcm_decrypt(void *_ctx, nettle_crypt_func f,  
@@ -98,7 +98,7 @@ static void _gcm_decrypt(void *_ctx, nettle_crypt_func f,
             unsigned length, uint8_t *dst,
             const uint8_t *src)
 {
-  return gcm_aes_decrypt(_ctx, length, dst, src);
+  gcm_aes_decrypt(_ctx, length, dst, src);
 }
 
 static int wrap_nettle_cipher_exists(gnutls_cipher_algorithm_t algo)