From 34b6dbb743654fdb6edccf101c4da7e671b7a92d Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 17 May 2021 22:48:17 -0400 Subject: Tolerate -Wall and -Werror Fixes to configure scripts and code so that it compiles (hopefully correctly) with -Wall and -Werror. Remove support for ancient BSD stricmp and strnicmp functions. AC_CHECK_FUNC does not work for strcasecmp and strncasecmp under -Wall, it's simpler to remove it. --- cgi/cgi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cgi/cgi.c') diff --git a/cgi/cgi.c b/cgi/cgi.c index f94bdf0..eb4da69 100644 --- a/cgi/cgi.c +++ b/cgi/cgi.c @@ -50,12 +50,12 @@ #include #include "rfc2045/rfc2045.h" -static void cgi_formdata(unsigned long); - -#ifndef HAVE_STRNCASECMP -extern int strncasecmp(const char *, const char *, size_t); +#if HAVE_STRINGS_H +#include #endif +static void cgi_formdata(unsigned long); + static int cgiformfd; static char hascgiformfd=0; static struct rfc2045 *rfc2045p=0; -- cgit v1.2.3