diff options
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | slstatus.c | 5 | ||||
-rw-r--r-- | util.h | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -12,7 +12,7 @@ X11LIB = /usr/X11R6/lib # flags CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE -CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused -Os +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os LDFLAGS = -L$(X11LIB) -s LDLIBS = -lX11 @@ -10,6 +10,7 @@ #include <X11/Xlib.h> #include "arg.h" +#include "slstatus.h" #include "util.h" struct arg { @@ -19,15 +20,17 @@ struct arg { }; char *argv0; +char buf[1024]; static unsigned short int done; static Display *dpy; -#include "slstatus.h" #include "config.h" static void terminate(const int signo) { + (void)signo; + done = 1; } @@ -1,4 +1,4 @@ -static char buf[1024]; +extern char buf[1024]; #define LEN(x) (sizeof (x) / sizeof *(x)) |