From: Christophe CURIS Date: Sat, 23 Nov 2013 17:14:06 +0000 (+0100) Subject: utils: Added a few missing attributes to local variables X-Git-Tag: wmaker-0.95.6~300 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/23ac316d1e33a60e157b1d61a1d62af90d0e79f2 utils: Added a few missing attributes to local variables Signed-off-by: Christophe CURIS --- diff --git a/util/fontconv.c b/util/fontconv.c index 82765214..142c4c41 100644 --- a/util/fontconv.c +++ b/util/fontconv.c @@ -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; diff --git a/util/wmmenugen.c b/util/wmmenugen.c index 83d9b349..2348769b 100644 --- a/util/wmmenugen.c +++ b/util/wmmenugen.c @@ -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;