utils: Added a few missing attributes to local variables
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 23 Nov 2013 17:14:06 +0000 (23 18:14 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:07 +0000 (30 18:11 +0000)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
util/fontconv.c
util/wmmenugen.c

index 8276521..142c4c4 100644 (file)
@@ -101,7 +101,7 @@ static int strToInt(str * token)
 
 static char *mapWeightToName(str * weight)
 {
-       char *normalNames[] = { "medium", "normal", "regular" };
+       static const char *normalNames[] = { "medium", "normal", "regular" };
        static char buf[32];
        size_t i;
 
index 83d9b34..2348769 100644 (file)
@@ -41,7 +41,7 @@ static void (*parse)(const char *file, void (*addWMMenuEntryCallback)(WMMenuEntr
 static Bool (*validateFilename)(const char *filename, const struct stat *st, int tflags, struct FTW *ftw);
 
 static WMArray *plMenuNodes;
-char *terminal;
+static const char *terminal;
 
 extern char *__progname;