From: arighi Date: Thu, 17 Feb 2011 14:59:35 +0000 (+0000) Subject: sec: fix type qualifier ambiguity X-Git-Tag: 2.7.0~252 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a1b70b3ea866a3d5e2764f0311f2ea52473a4af4;p=bertos.git sec: fix type qualifier ambiguity Fix the following build warning: bertos/sec/cipher/aes_f32.h:443: warning: type qualifiers ignored on function return type git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4714 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/sec/cipher/aes_f32.h b/bertos/sec/cipher/aes_f32.h index d172388d..4fa64a0f 100644 --- a/bertos/sec/cipher/aes_f32.h +++ b/bertos/sec/cipher/aes_f32.h @@ -440,7 +440,9 @@ static void lazy_expandKeyEnc256(uint32_t *k) } } -static const void (*lazy_expandKeyEnc[3])(uint32_t *k) = +typedef void (*lazy_expand_handler)(uint32_t *); + +static const lazy_expand_handler lazy_expandKeyEnc[3] = { lazy_expandKeyEnc128, lazy_expandKeyEnc192, lazy_expandKeyEnc256, };