Move a few prototypes and static'ed a few functions

Moved prototypes for initialise() and action() from main.c to advent.h
Made the following functions static, so they wouldn't require prototypes:
   sig_handler (main.c)
   spotted_by_pirate (main.c)
   light (actions.c)
This commit is contained in:
Bob Little 2017-06-17 18:19:09 -04:00
parent 14c83ede8e
commit a3485d2a41
4 changed files with 9 additions and 6 deletions

View file

@ -26,6 +26,8 @@ VERS=1.0
CC?=gcc
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic -Wextra -g
CCFLAGS+=-Wstrict-prototypes
CCFLAGS+=-Wmissing-prototypes
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
@ -75,6 +77,7 @@ clean:
rm -f newdb.c newdb.h
rm -f README advent.6 MANIFEST *.tar.gz
rm -f *~
rm -f .*~
cd tests; $(MAKE) --quiet clean
check: advent