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. --- tcpd/configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tcpd') diff --git a/tcpd/configure.ac b/tcpd/configure.ac index c3bb9cb..3bc0e64 100644 --- a/tcpd/configure.ac +++ b/tcpd/configure.ac @@ -208,9 +208,8 @@ AC_TRY_COMPILE( [ #include #include ],[ { - struct strfdinsert ins; - queue_t *pointer; - int i=I_FDINSERT; + (void)(sizeof(struct strfdinsert) + + sizeof(queue_t) + I_FDINSERT) } ], tcpd_cv_svr3=yes, tcpd_cv_svr3=no)) @@ -223,6 +222,7 @@ changequote(<<,>>) #include #include +#include int main(int argc, char **argv) { @@ -328,7 +328,7 @@ then AC_MSG_CHECKING(whether OpenSSL requires Kerberos) AC_TRY_COMPILE( [ #include -], [ int x=1; ], :, +], [ ], :, [ KRBFLAGS=`$KRB5CONFIG --cflags` CFLAGS="$CFLAGS $KRBFLAGS" @@ -336,7 +336,7 @@ then AC_TRY_COMPILE( [ #include -], [ int x=1; ], [ KRBLIBS="`$KRB5CONFIG --libs`" ], +], [ ], [ KRBLIBS="`$KRB5CONFIG --libs`" ], AC_MSG_ERROR(OpenSSL test build failed) ) ] ) @@ -544,7 +544,7 @@ RAND_pseudo_bytes(dummy, 1); #include ], [ -char dummy[1]; +unsigned char dummy[1]; unsigned char a[1], b[1]; EVP_CIPHER_CTX *ctx=EVP_CIPHER_CTX_new(); -- cgit v1.2.3