declare buf only if XINERAMA support is used

This commit is contained in:
Anselm R Garbe
2009-06-23 16:29:32 +01:00
parent 38e9b67026
commit 0d8671a5ad
2 changed files with 3 additions and 3 deletions

2
dwm.c
View File

@ -599,7 +599,6 @@ die(const char *errstr, ...) {
void
drawbar(Monitor *m) {
char buf[2];
int x;
unsigned int i, occ = 0, urg = 0;
unsigned long *col;
@ -616,6 +615,7 @@ drawbar(Monitor *m) {
dc.x = 0;
#ifdef XINERAMA
{
char buf[2];
buf[0] = m->screen_number + '0';
buf[1] = '\0';
dc.w = TEXTW(buf);