]> git.sesse.net Git - ffmpeg/commitdiff
avutil/sha512: make const tables static const
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Aug 2013 14:49:03 +0000 (16:49 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Aug 2013 14:49:03 +0000 (16:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/sha512.c

index 445480cce1ea57ee209e488711dd51c29100ddaa..84136037dbba3de553a69e18d440a3714aa99a18 100644 (file)
@@ -285,7 +285,7 @@ int main(void)
     int i, j, k;
     AVSHA512 ctx;
     unsigned char digest[64];
-    const int lengths[4] = { 224, 256, 384, 512 };
+    static const int lengths[4] = { 224, 256, 384, 512 };
 
     for (j = 0; j < 4; j++) {
         if (j < 2) printf("Testing SHA-512/%d\n", lengths[j]);