avutil/parseutils:make const tables static const
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Aug 2013 14:50:24 +0000 (16:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Aug 2013 14:50:24 +0000 (16:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/parseutils.c

index f2f8f18..5797e9e 100644 (file)
@@ -824,13 +824,13 @@ int main(void)
         time_t tvi;
         struct tm *tm;
         static char tzstr[] = "TZ=CET-1";
-        const char *time_string[] = {
+        static const char * const time_string[] = {
             "now",
             "12:35:46",
             "2000-12-20 0:02:47.5z",
             "2000-12-20T010247.6",
         };
-        const char *duration_string[] = {
+        static const char * const duration_string[] = {
             "2:34:56.79",
             "-1:23:45.67",
             "42.1729",