diff --git a/compat/getopt_long.c b/compat/getopt_long.c index a32c84fb..cd00e7e0 100644 --- a/compat/getopt_long.c +++ b/compat/getopt_long.c @@ -94,13 +94,6 @@ #if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET) -/* - * Some defines to make it easier to keep the code in sync with upstream. - * getopt opterr optind optopt optreset optarg are all in defines.h which is - * pulled in by includes.h. - */ -#define warnx logit - #if 0 #include #include @@ -110,16 +103,6 @@ #include #include -static void logit(const char *fmt, ...) { - va_list va; - (void)fprintf(stderr, "%s: ", getprogname()); - va_start(va, fmt); - (void)vfprintf(stderr, fmt, va); - va_end(va); - (void)fputc('\n', stderr); - (void)fflush(stderr); -} - struct option { /* name of long option */ const char *name;