This commit is contained in:
Andreev Gregory 2025-03-06 15:06:46 +03:00
parent a34d8fb432
commit 31c801b304
3 changed files with 4 additions and 7 deletions

View File

@ -11,10 +11,7 @@ all: slock
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.h config.mk arg.h util.h
config.h:
cp config.def.h $@
${OBJ}: config.def.h config.mk arg.h util.h
slock: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}

View File

@ -1,6 +1,6 @@
/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nogroup";
static const char *group = "nobody";
static const char *colorname[NUMCOLS] = {
[INIT] = "black", /* after initialization */
@ -9,4 +9,4 @@ static const char *colorname[NUMCOLS] = {
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
static const int failonclear = 0;

View File

@ -44,7 +44,7 @@ struct xrandr {
int errbase;
};
#include "config.h"
#include "config.def.h"
static void
die(const char *errstr, ...)