X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=slock.c;h=d2f08862453615c3131332273fbd1d0187f4195c;hb=ae96836f90c3652fd0907e0632ddd4591d5716fa;hp=4d7f06fe9a8fc4dc3b6904fc8231c065614a17d8;hpb=c96e725df0c449abb5f1f6a3b604f64fa69c4756;p=slock.git diff --git a/slock.c b/slock.c index 4d7f06f..d2f0886 100644 --- a/slock.c +++ b/slock.c @@ -31,8 +31,6 @@ enum { NUMCOLS }; -#include "config.h" - struct lock { int screen; Window root, win; @@ -46,6 +44,8 @@ struct xrandr { int errbase; }; +#include "config.h" + 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); - failure = True; + failure = 1; } explicit_bzero(&passwd, sizeof(passwd)); len = 0;