Prototype fixes, and remove -ansi and -pedantic from Makefile diff -ur sheerdns-old/hash.c sheerdns/hash.c --- sheerdns-old/hash.c 2003-04-12 15:04:59.000000000 +0700 +++ sheerdns/hash.c 2014-07-02 02:20:22.099308751 +0700 @@ -4,6 +4,8 @@ #include #include #include +#include +#include #include "hash.h" #include "dir.h" @@ -25,7 +27,7 @@ unsigned char *s; s = (unsigned char *) hex_hash ((unsigned char *) argv[1]); snprintf (buf, sizeof (buf), SHEERDNS_DIR "/%s/%s", s, argv[1]); - mkdir (buf); + mkdir (buf, 0700); l = strlen ((char *) s); write (1, s, l); write (1, "\n", 1); } diff -ur sheerdns-old/Makefile sheerdns/Makefile --- sheerdns-old/Makefile 2003-04-12 15:04:41.000000000 +0700 +++ sheerdns/Makefile 2014-07-02 02:29:43.872601090 +0700 @@ -1,5 +1,5 @@ -CFLAGS=-Wall -g -O0 -ansi -pedantic +CFLAGS=-Os -Wall SRCS=$(wildcard *.c) diff -ur sheerdns-old/strutil.h sheerdns/strutil.h --- sheerdns-old/strutil.h 2003-04-13 21:33:06.000000000 +0700 +++ sheerdns/strutil.h 2014-07-02 02:26:58.902613382 +0700 @@ -1,6 +1,7 @@ void string_purify (unsigned char *s); void string_chomp (unsigned char *s); +void string_wash (unsigned char *p); char **string_split (const char *s, char c, size_t max, int multi); int string_present (char *s, char **a);