Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Properly declare buf as extern and fix all unused-warnings
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
b4eb761
..
89a3268
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-10,6
+10,7
@@
#include <X11/Xlib.h>
#include "arg.h"
#include <X11/Xlib.h>
#include "arg.h"
+#include "slstatus.h"
#include "util.h"
struct arg {
#include "util.h"
struct arg {
@@
-19,15
+20,17
@@
struct arg {
};
char *argv0;
};
char *argv0;
+char buf[1024];
static unsigned short int done;
static Display *dpy;
static unsigned short int done;
static Display *dpy;
-#include "slstatus.h"
#include "config.h"
static void
terminate(const int signo)
{
#include "config.h"
static void
terminate(const int signo)
{
+ (void)signo;
+
done = 1;
}
done = 1;
}