From e576e57600e67b3f7364807fd0d43b5fb9b02de5 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 19 Jul 2012 20:57:12 +0200 Subject: Avoid returning from void function. Patch by Rob McMahon. --- lib/nettle/cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nettle/cipher.c b/lib/nettle/cipher.c index 1333cae97d..5bae0f1bfa 100644 --- a/lib/nettle/cipher.c +++ b/lib/nettle/cipher.c @@ -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) -- cgit v1.2.1