From 914440b4fc3c5ecb7d9eedf4da6f2a1c7ec2e7a9 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Sun, 17 Sep 2017 17:21:54 +0200 Subject: Properly declare buf as extern and fix all unused-warnings --- slstatus.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index b4eb761..89a3268 100644 --- a/slstatus.c +++ b/slstatus.c @@ -10,6 +10,7 @@ #include #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; } -- cgit v1.2.3