sec: fix type qualifier ambiguity
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 17 Feb 2011 14:59:35 +0000 (14:59 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 17 Feb 2011 14:59:35 +0000 (14:59 +0000)
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

bertos/sec/cipher/aes_f32.h

index d172388decab101057c03cdf259bf537796b28bf..4fa64a0f9361f4ab9bebcea39074c4e125079a14 100644 (file)
@@ -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,
 };