From: Nikos Mavrogiannopoulos Date: Thu, 19 Jul 2012 18:57:12 +0000 (+0200) Subject: Avoid returning from void function. Patch by Rob McMahon. X-Git-Tag: gnutls_3_1_0pre0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=673ae9f69ab57b1e161b92f102af4b0f21ffbdcc;p=thirdparty%2Fgnutls.git Avoid returning from void function. Patch by Rob McMahon. --- diff --git a/lib/nettle/cipher.c b/lib/nettle/cipher.c index 2a662c7141..faf9d780bd 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)