diff --git a/src/Makefile b/src/Makefile index 59108f7..4c85e90 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,6 +6,7 @@ in.tokend: in.tokend.o xxtea.o claim.cgi: claim.cgi.o common.o puzzler.cgi: puzzler.cgi.o common.o +puzzles.cgi: puzzles.cgi.o common.o pointscli: common.o pointscli.o clean: diff --git a/src/common.c b/src/common.c index c443b5d..a21c677 100644 --- a/src/common.c +++ b/src/common.c @@ -100,10 +100,8 @@ cgi_item(char *str, size_t maxlen) } void -cgi_page(char *title, char *fmt, ...) +cgi_head(char *title) { - va_list ap; - printf(("Content-type: text/html\r\n" "\r\n" "\n" @@ -115,12 +113,26 @@ cgi_page(char *title, char *fmt, ...) "
\n" "