From dad05e8f19a0253e9cacdcf9a3710f8ca416c95b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 6 Sep 2007 21:58:46 +0200 Subject: [PATCH] remove prop[] from static and global --- layout.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/layout.c b/layout.c index 69bf10b7..96039410 100644 --- a/layout.c +++ b/layout.c @@ -13,10 +13,6 @@ int blw = 0; -/* static */ - -static char prop[128]; - /* extern */ extern int wax, way, wah, waw; /* windowarea geometry */ extern Window barwin; @@ -97,6 +93,7 @@ void loadjdwmprops(Display *disp, jdwm_config * jdwmconf) { int i; + char prop[128]; if(gettextprop(disp, DefaultRootWindow(disp), jdwmprops, prop, sizeof(prop))) { @@ -150,6 +147,8 @@ void savejdwmprops(Display *disp, jdwm_config *jdwmconf) { int i; + char prop[128]; + for(i = 0; i < jdwmconf->ntags && i < ssizeof(prop) - 1; i++) prop[i] = jdwmconf->selected_tags[i] ? '1' : '0'; prop[i] = '\0';