diff options
| author | Sam Varshavchik | 2021-05-17 22:48:17 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2021-05-19 08:03:46 -0400 |
| commit | 34b6dbb743654fdb6edccf101c4da7e671b7a92d (patch) | |
| tree | 9328e2bd91c4fb8bf5f5103e97ca3456b1c09943 /tcpd | |
| parent | f47a71576c377269f5c5ca6156b2f319256e2738 (diff) | |
| download | courier-libs-34b6dbb743654fdb6edccf101c4da7e671b7a92d.tar.bz2 | |
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.
Diffstat (limited to 'tcpd')
| -rw-r--r-- | tcpd/configure.ac | 12 |
1 files changed, 6 insertions, 6 deletions
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 <stropts.h> #include <fcntl.h> ],[ { - 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 <stdio.h> #include <unistd.h> +#include <stdlib.h> int main(int argc, char **argv) { @@ -328,7 +328,7 @@ then AC_MSG_CHECKING(whether OpenSSL requires Kerberos) AC_TRY_COMPILE( [ #include <openssl/ssl.h> -], [ int x=1; ], :, +], [ ], :, [ KRBFLAGS=`$KRB5CONFIG --cflags` CFLAGS="$CFLAGS $KRBFLAGS" @@ -336,7 +336,7 @@ then AC_TRY_COMPILE( [ #include <openssl/ssl.h> -], [ 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 <openssl/rand.h> ], [ -char dummy[1]; +unsigned char dummy[1]; unsigned char a[1], b[1]; EVP_CIPHER_CTX *ctx=EVP_CIPHER_CTX_new(); |
