aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile3
-rw-r--r--src/cerberus.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index defe086..ffee8d5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
OPTIMISE = -Os
CPPFLAGS =
LDFLAGS =
-CFLAGS = -Wall -Wextra -pedantic
+CFLAGS = -std=gnu99 -Wall -Wextra
CC_FLAGS = $(CPPFLAGS) $(CFLAGS) $(OPTIMISE)
LD_FLAGS = $(LDFLAGS) $(CFLAGS) $(OPTIMISE)
@@ -20,6 +20,7 @@ bin/cerberus: $(OBJ)
obj/%.o: src/%.c src/%.h
+ @mkdir -p obj
$(CC) $(CC_FLAGS) -o "$@" -c "$<"
diff --git a/src/cerberus.c b/src/cerberus.c
index cd6c376..5b69a81 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -119,7 +119,7 @@ int main(int argc, char** argv)
signal(SIGALRM, timeout_quit);
signal(SIGQUIT, user_quit);
signal(SIGINT, user_quit);
- siginterrupt(SIGALM, 1);
+ siginterrupt(SIGALRM, 1);
siginterrupt(SIGQUIT, 1);
siginterrupt(SIGINT, 1);
alarm(TIMEOUT_SECONDS);