diff --git a/nsock/src/error.c b/nsock/src/error.c index 716223135..73e226d22 100644 --- a/nsock/src/error.c +++ b/nsock/src/error.c @@ -58,6 +58,10 @@ #include "error.h" +#include +#include +#include + void fatal(char *fmt, ...) { va_list ap; @@ -84,15 +88,3 @@ void pfatal(char *fmt, ...) { exit(1); } -void gh_perror(char *err, ...) { - va_list ap; - - va_start(ap, err); - fflush(stdout); - vfprintf(stderr, err, ap); - va_end(ap); - - perror(" "); - fflush(stderr); -} - diff --git a/nsock/src/error.h b/nsock/src/error.h index 0cf05af64..20734c147 100644 --- a/nsock/src/error.h +++ b/nsock/src/error.h @@ -59,22 +59,6 @@ #ifndef ERROR_H #define ERROR_H -#ifdef HAVE_CONFIG_H -#include "nsock_config.h" -#include "nbase_config.h" -#endif - -#ifdef WIN32 -#include "nbase_winconfig.h" -#endif - -#include -#include -#include -#if HAVE_UNISTD_H -#include -#endif - void fatal(char *fmt, ...) __attribute__ ((noreturn)) __attribute__ ((format (printf, 1, 2))); @@ -83,7 +67,4 @@ void pfatal(char *fmt, ...) __attribute__ ((noreturn)) __attribute__ ((format (printf, 1, 2))); -void gh_perror(char *err, ...); - #endif /* ERROR_H */ -