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 /rfc822/imapsubj.c | |
| 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 'rfc822/imapsubj.c')
| -rw-r--r-- | rfc822/imapsubj.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/rfc822/imapsubj.c b/rfc822/imapsubj.c index 2f6adfd..97da19c 100644 --- a/rfc822/imapsubj.c +++ b/rfc822/imapsubj.c @@ -10,19 +10,10 @@ #include <ctype.h> #include <stdlib.h> #include <string.h> -#include "rfc822.h" - -#if HAVE_STRCASECMP - -#else -#define strcasecmp stricmp -#endif - -#if HAVE_STRNCASECMP - -#else -#define strncasecmp strnicmp +#if HAVE_STRINGS_H +#include <strings.h> #endif +#include "rfc822.h" /* Skip over blobs */ |
