From e624dbbe026581a5f3e8fdc7208edd13fa51a809 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Mon, 27 Dec 2004 12:30:36 +0000 Subject: [PATCH] Fix err and debugf warnings. --- trunk/darkhttpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index 02901aa..aaba4e4 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -53,7 +53,7 @@ static const char rcsid[] = #ifdef NDEBUG #define safefree free - static void debugf(const char *format, ...) { } + #define debugf (void) #else #define safefree(x) do { free(x); x = NULL; } while(0) #define debugf printf @@ -69,7 +69,7 @@ static const char rcsid[] = -#if defined(__FreeBSD__) || defined(__linux) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux) #include #else /* --------------------------------------------------------------------------- @@ -97,7 +97,7 @@ static void errx(const int code, const char *format, ...) * * Replacement for the BSD err() which is usually in */ -void err(const int code, const char *format, ...) +static void err(const int code, const char *format, ...) { va_list va;