Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Mark unused parameters, fix compiler warnings
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
c1cf8ac
..
e8d367b
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-19,7
+19,7
@@
struct arg {
char *argv0;
char buf[1024];
char *argv0;
char buf[1024];
-static
unsigned short
int done;
+static int done;
static Display *dpy;
#include "config.h"
static Display *dpy;
#include "config.h"
@@
-98,6
+98,7
@@
main(int argc, char *argv[])
if (sflag) {
printf("%s\n", status);
if (sflag) {
printf("%s\n", status);
+ fflush(stdout);
} else {
XStoreName(dpy, DefaultRootWindow(dpy), status);
XSync(dpy, False);
} else {
XStoreName(dpy, DefaultRootWindow(dpy), status);
XSync(dpy, False);