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: .c.o:
${CC} -c ${CFLAGS} $< ${CC} -c ${CFLAGS} $<
${OBJ}: config.h config.mk arg.h util.h ${OBJ}: config.def.h config.mk arg.h util.h
config.h:
cp config.def.h $@
slock: ${OBJ} slock: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS} ${CC} -o $@ ${OBJ} ${LDFLAGS}

View File

@ -1,6 +1,6 @@
/* user and group to drop privileges to */ /* user and group to drop privileges to */
static const char *user = "nobody"; static const char *user = "nobody";
static const char *group = "nogroup"; static const char *group = "nobody";
static const char *colorname[NUMCOLS] = { static const char *colorname[NUMCOLS] = {
[INIT] = "black", /* after initialization */ [INIT] = "black", /* after initialization */
@ -9,4 +9,4 @@ static const char *colorname[NUMCOLS] = {
}; };
/* treat a cleared input like a wrong password (color) */ /* 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; int errbase;
}; };
#include "config.h" #include "config.def.h"
static void static void
die(const char *errstr, ...) die(const char *errstr, ...)