summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-12-05 15:39:07 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-12-05 15:39:07 -0500
commit30b76a1f93a79d7c88c510b53143bfbf146efbd6 (patch)
tree6b593933698fbde15f3250dbb7c2ca0b6161d409 /dwm.c
parentda4475e12268ea27869957fa775dddbb539c110a (diff)
downloaddwm-30b76a1f93a79d7c88c510b53143bfbf146efbd6.tar.gz
Warning cleanup
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 99bccef..37096d8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -976,16 +976,15 @@ drawbar(Monitor *m)
return;
/* draw status first so it can be overdrawn by tags later */
- char *text, *s, ch;
+ char *s, ch;
x = 0;
- for (text = s = stext; *s; s++) {
+ for (s = stext; *s; s++) {
if ((unsigned char)(*s) < ' ') {
ch = *s;
*s = '\0';
tw = m->ww - drawstatusbar(m, bh, stext);
x += tw;
*s = ch;
- text = s + 1;
}
}