Properly declare buf as extern and fix all unused-warnings
Laslo Hunhold dev@frign.de
Sun, 17 Sep 2017 17:21:54 +0200
3 files changed,
6 insertions(+),
3 deletions(-)
M
slstatus.c
→
slstatus.c
@@ -10,6 +10,7 @@ #include <time.h>
#include <X11/Xlib.h> #include "arg.h" +#include "slstatus.h" #include "util.h" struct arg {@@ -19,15 +20,17 @@ const char *args;
}; 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; }