From b18e6840152b300f2db8ff8dca16aee0839f864b Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sun, 19 Aug 2007 18:50:47 +0200 Subject: renamed char prop[] into buf[] --- client.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 9f46a0e..c03770b 100644 --- a/client.c +++ b/client.c @@ -7,7 +7,7 @@ /* static */ -static char prop[128]; +static char buf[128]; static void attachstack(Client *c) { @@ -186,12 +186,12 @@ getprops(Client *c) { unsigned int i; Bool result = False; - if(gettextprop(c->win, dwmprops, prop, sizeof prop)) { - for(i = 0; i < ntags && i < sizeof prop - 1 && prop[i] != '\0'; i++) - if((c->tags[i] = prop[i] == '1')) + if(gettextprop(c->win, dwmprops, buf, sizeof buf)) { + for(i = 0; i < ntags && i < sizeof buf - 1 && buf[i] != '\0'; i++) + if((c->tags[i] = buf[i] == '1')) result = True; - if(i < sizeof prop - 1 && prop[i] != '\0') - c->isfloating = prop[i] == '1'; + if(i < sizeof buf - 1 && buf[i] != '\0') + c->isfloating = buf[i] == '1'; } return result; } @@ -321,13 +321,13 @@ void setprops(Client *c) { unsigned int i; - for(i = 0; i < ntags && i < sizeof prop - 1; i++) - prop[i] = c->tags[i] ? '1' : '0'; - if(i < sizeof prop - 1) - prop[i++] = c->isfloating ? '1' : '0'; - prop[i] = '\0'; + for(i = 0; i < ntags && i < sizeof buf - 1; i++) + buf[i] = c->tags[i] ? '1' : '0'; + if(i < sizeof buf - 1) + buf[i++] = c->isfloating ? '1' : '0'; + buf[i] = '\0'; XChangeProperty(dpy, c->win, dwmprops, XA_STRING, 8, - PropModeReplace, (unsigned char *)prop, i); + PropModeReplace, (unsigned char *)buf, i); } void -- cgit v1.2.3-13-gbd6f