Xinqi Bao's Git
projects
/
slock.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
clarify colors in config.def.h
[slock.git]
/
slock.c
diff --git
a/slock.c
b/slock.c
index
4d7f06f
..
d2f0886
100644
(file)
--- a/
slock.c
+++ b/
slock.c
@@
-31,8
+31,6
@@
enum {
NUMCOLS
};
NUMCOLS
};
-#include "config.h"
-
struct lock {
int screen;
Window root, win;
struct lock {
int screen;
Window root, win;
@@
-46,6
+44,8
@@
struct xrandr {
int errbase;
};
int errbase;
};
+#include "config.h"
+
static void
die(const char *errstr, ...)
{
static void
die(const char *errstr, ...)
{
@@
-166,7
+166,7
@@
readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
running = !!strcmp(inputhash, hash);
if (running) {
XBell(dpy, 100);
running = !!strcmp(inputhash, hash);
if (running) {
XBell(dpy, 100);
- failure =
True
;
+ failure =
1
;
}
explicit_bzero(&passwd, sizeof(passwd));
len = 0;
}
explicit_bzero(&passwd, sizeof(passwd));
len = 0;