[00:00:00] =>> Building mail/panda-cclient [00:00:00] build started at 2026-04-09T17:29:14+02:00 [00:00:00] port directory: /usr/ports/mail/panda-cclient [00:00:00] package name: panda-cclient-20130621_3 [00:00:00] building for: FreeBSD pkg.mfl.dk 15.0-RELEASE-p1 FreeBSD 15.0-RELEASE-p1 amd64 [00:00:00] maintained by: thierry@FreeBSD.org [00:00:00] port version: 20130621 [00:00:00] port revision: 3 [00:00:00] Makefile datestamp: Apr 9 13:56:42 2026 [00:00:00] Ports top last git commit: 1d8282cf0d487fbe69084c8a5abfdb361c840b53 [00:00:00] Ports top unclean checkout: no [00:00:00] =>> Inspecting /usr/local/poudriere/data/.m/150amd64-local/ref//usr/ports/mail/panda-cclient for modifications to git checkout... no [00:00:00] Port dir unclean checkout: no [00:00:00] Poudriere version: poudriere-git-3.4.99.20260303 [00:00:00] Host OSVERSION: 1500068 [00:00:00] Jail OSVERSION: 1500068 [00:00:00] Builder Id: 02 [00:00:00] Builder jail path: /usr/local/poudriere/data/.m/150amd64-local/02 [00:00:00] Ref jail path: /usr/local/poudriere/data/.m/150amd64-local/ref [00:00:00] Job Idx: 2 [00:00:00] Jail Id (no networking) : 5 [00:00:00] Jail Name (no networking): 150amd64-local-job-02 [00:00:00] Jail Id (networking) : 6 [00:00:00] Jail Name (networking) : 150amd64-local-job-02-n [00:00:00] [00:00:00] ---Begin Environment--- [00:00:00] SHELL=/bin/sh [00:00:00] OSVERSION=1500068 [00:00:00] UNAME_v=FreeBSD 15.0-RELEASE-p1 [00:00:00] UNAME_r=15.0-RELEASE-p1 [00:00:00] BLOCKSIZE=K [00:00:00] MAIL=/var/mail/root [00:00:00] MM_CHARSET=UTF-8 [00:00:00] LANG=C.UTF-8 [00:00:00] STATUS=1 [00:00:00] HOME=/root [00:00:00] PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin [00:00:00] MAKE_OBJDIR_CHECK_WRITABLE=0 [00:00:00] LOCALBASE=/usr/local [00:00:00] USER=root [00:00:00] POUDRIERE_NAME=poudriere-git [00:00:00] POUDRIERE_VERSION=3.4.99.20260303 [00:00:00] LC_COLLATE=C [00:00:00] POUDRIERE_BUILD_TYPE=bulk [00:00:00] PACKAGE_BUILDING=yes [00:00:00] SAVED_TERM=tmux-256color [00:00:00] OUTPUT_REDIRECTED_STDERR=4 [00:00:00] OUTPUT_REDIRECTED=1 [00:00:00] PWD=/usr/local/poudriere/data/.m/150amd64-local/02/.p [00:00:00] OUTPUT_REDIRECTED_STDOUT=3 [00:00:00] P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS [00:00:00] MASTERNAME=150amd64-local [00:00:00] OLDPWD=/usr/local/poudriere/data/.m/150amd64-local/ref/.p/pool [00:00:00] POUDRIERE_PKGNAME=poudriere-git-3.4.99.20260303 [00:00:00] PREFIX=/usr/local [00:00:00] POUDRIEREPATH=/usr/local/bin/poudriere [00:00:00] ---End Environment--- [00:00:00] [00:00:00] ---Begin Poudriere Port Flags/Env--- [00:00:00] PORT_FLAGS= [00:00:00] PKGENV= [00:00:00] FLAVOR= [00:00:00] MAKE_ARGS= [00:00:00] ---End Poudriere Port Flags/Env--- [00:00:00] [00:00:00] ---Begin OPTIONS List--- [00:00:00] ===> The following configuration options are available for panda-cclient-20130621_3: [00:00:00] IPV6=on: IPv6 protocol support [00:00:00] MBX_DEFAULT=off: Use MBX as default mailbox format [00:00:00] SSL=on: SSL protocol support [00:00:00] SSL_AND_PLAINTEXT=off: Allow plain text passwords and SSL [00:00:00] ===> Use 'make config' to modify these settings [00:00:00] ---End OPTIONS List--- [00:00:00] [00:00:00] --MAINTAINER-- [00:00:00] thierry@FreeBSD.org [00:00:00] --End MAINTAINER-- [00:00:00] [00:00:00] --PORTVERSION-- [00:00:00] 20130621 [00:00:00] --End PORTVERSION-- [00:00:00] [00:00:00] --PORTREVISION-- [00:00:00] 3 [00:00:00] --End PORTREVISION-- [00:00:00] [00:00:00] --CONFIGURE_ARGS-- [00:00:00] [00:00:00] --End CONFIGURE_ARGS-- [00:00:00] [00:00:00] --CONFIGURE_ENV-- [00:00:00] XDG_DATA_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work/.cache HOME=/wrkdirs/usr/ports/mail/panda-cclient/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/panda-cclient/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/panda-cclient/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh [00:00:00] --End CONFIGURE_ENV-- [00:00:00] [00:00:00] --MAKE_ENV-- [00:00:00] OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/panda-cclient/work/.cache HOME=/wrkdirs/usr/ports/mail/panda-cclient/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/panda-cclient/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/panda-cclient/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -Wl,-rpath,/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" [00:00:00] --End MAKE_ENV-- [00:00:00] [00:00:00] --PLIST_SUB-- [00:00:00] SHLIBNAME=libc-client.so.2010 SHLIBBASE=c-client OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/cclient" EXAMPLESDIR="share/examples/cclient" DATADIR="share/cclient" WWWDIR="www/cclient" ETCDIR="etc/cclient" [00:00:00] --End PLIST_SUB-- [00:00:00] [00:00:00] --SUB_LIST-- [00:00:00] PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/cclient DOCSDIR=/usr/local/share/doc/cclient EXAMPLESDIR=/usr/local/share/examples/cclient WWWDIR=/usr/local/www/cclient ETCDIR=/usr/local/etc/cclient [00:00:00] --End SUB_LIST-- [00:00:00] [00:00:00] ---Begin make.conf--- [00:00:00] USE_PACKAGE_DEPENDS=yes [00:00:00] BATCH=yes [00:00:00] WRKDIRPREFIX=/wrkdirs [00:00:00] PORTSDIR=/usr/ports [00:00:00] PACKAGES=/packages [00:00:00] DISTDIR=/distfiles [00:00:00] FORCE_PACKAGE=yes [00:00:00] PACKAGE_BUILDING=yes [00:00:00] PACKAGE_BUILDING_FLAVORS=yes [00:00:00] #### /usr/local/etc/poudriere.d/make.conf #### [00:00:00] DEFAULT_VERSIONS+= ssl=openssl [00:00:00] DEFAULT_VERSIONS+= mysql=11.4m [00:00:00] DEFAULT_VERSIONS+= pgsql=17 [00:00:00] OPTIONS_SET+= LDAP [00:00:00] OPTIONS_SET+= QT6 [00:00:00] #OPTIONS_UNSET+= X11 [00:00:00] DEFAULT_VERSIONS+= php=8.4 [00:00:00] DEFAULT_VERSIONS+= samba=4.23 [00:00:00] graphics_cairo_UNSET+= XCB [00:00:00] x11-toolkits_gtk30_UNSET += ATK_BRIDGE COLORD [00:00:00] #ALLOW_UNSUPPORTED_SYSTEM= yes [00:00:00] CCACHE_DIR= /var/cache/ccache [00:00:00] WITH_CCACHE_BUILD= yes [00:00:00] #OVERLAYS+= /usr/local/share/sccache/overlay [00:00:00] #SCCACHE_DIR= /var/cache/ccache/sccache [00:00:00] [00:00:00] databases_redis_UNSET= PIE RELRO BIND_NOW [00:00:00] [00:00:00] WITHOUT_PIE_PORTS+= databases/redis [00:00:00] WITHOUT_RELRO_PORTS+= databases/redis [00:00:00] WITHOUT_BIND_NOW_PORTS+= databases/redis [00:00:00] WITH_CCACHE_BUILD=yes [00:00:00] CCACHE_DIR=/root/.ccache [00:00:00] #### Misc Poudriere #### [00:00:00] .include "/etc/make.conf.ports_env" [00:00:00] GID=0 [00:00:00] UID=0 [00:00:00] DISABLE_MAKE_JOBS=poudriere [00:00:00] ---End make.conf--- [00:00:00] --Resource limits-- [00:00:00] cpu time (seconds, -t) unlimited [00:00:00] file size (512-blocks, -f) unlimited [00:00:00] data seg size (kbytes, -d) 33554432 [00:00:00] stack size (kbytes, -s) 524288 [00:00:00] core file size (512-blocks, -c) unlimited [00:00:00] max memory size (kbytes, -m) unlimited [00:00:00] locked memory (kbytes, -l) unlimited [00:00:00] max user processes (-u) 58500 [00:00:00] open files (-n) 8192 [00:00:00] virtual mem size (kbytes, -v) unlimited [00:00:00] swap limit (kbytes, -w) unlimited [00:00:00] socket buffer size (bytes, -b) unlimited [00:00:00] pseudo-terminals (-p) unlimited [00:00:00] kqueues (-k) unlimited [00:00:00] umtx shared locks (-o) unlimited [00:00:00] pipebuf (-y) unlimited [00:00:00] --End resource limits-- [00:00:00] times start [shell] (user/sys/real): 0m0.021s 0m0.005s 4m44.000s [00:00:00] times start [child] (user/sys/real): 0m0.076s 0m0.076s 4m44.000s [00:00:00] =================================================== [00:00:00] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:00] ===> License APACHE20 accepted by the user [00:00:00] =========================================================================== [00:00:00] =================================================== [00:00:00] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:00] ===> panda-cclient-20130621_3 depends on file: /usr/local/sbin/pkg - not found [00:00:00] ===> Installing existing package /packages/All/pkg-2.6.2_1.pkg [00:00:00] [pkg.mfl.dk] Installing pkg-2.6.2_1... [00:00:00] [pkg.mfl.dk] Extracting pkg-2.6.2_1: .......... done [00:00:02] ===> panda-cclient-20130621_3 depends on file: /usr/local/sbin/pkg - found [00:00:02] ===> Returning to build of panda-cclient-20130621_3 [00:00:02] =========================================================================== [00:00:02] =================================================== [00:00:02] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:02] =========================================================================== [00:00:03] =================================================== [00:00:03] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:03] ===> License APACHE20 accepted by the user [00:00:03] => jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz doesn't seem to exist in /portdistfiles. [00:00:03] => Attempting to fetch https://codeload.github.com/jonabbey/panda-imap/tar.gz/3452f1598a8b4eeb44b38aead1c1598e379b05de?dummy=/jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz [00:00:03] fetch: https://codeload.github.com/jonabbey/panda-imap/tar.gz/3452f1598a8b4eeb44b38aead1c1598e379b05de?dummy=/jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz: size unknown [00:00:03] fetch: https://codeload.github.com/jonabbey/panda-imap/tar.gz/3452f1598a8b4eeb44b38aead1c1598e379b05de?dummy=/jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz: size of remote file is not known [00:00:03] jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e37 2018 kB 7517 kBps 00s [00:00:04] ===> Fetching all distfiles required by panda-cclient-20130621_3 for building [00:00:04] =========================================================================== [00:00:04] =================================================== [00:00:04] ===== env: FETCH_REGET=0 NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:04] ===> License APACHE20 accepted by the user [00:00:04] ===> Fetching all distfiles required by panda-cclient-20130621_3 for building [00:00:04] => SHA256 Checksum OK for jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz. [00:00:04] =========================================================================== [00:00:04] =================================================== [00:00:04] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:04] =========================================================================== [00:00:04] =================================================== [00:00:04] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:04] ===> License APACHE20 accepted by the user [00:00:04] ===> Fetching all distfiles required by panda-cclient-20130621_3 for building [00:00:04] ===> Extracting for panda-cclient-20130621_3 [00:00:04] => SHA256 Checksum OK for jonabbey-panda-imap-20130621-3452f1598a8b4eeb44b38aead1c1598e379b05de_GH0.tar.gz. [00:00:08] =========================================================================== [00:00:08] =================================================== [00:00:08] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:09] =========================================================================== [00:00:09] =================================================== [00:00:09] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:09] ===> Patching for panda-cclient-20130621_3 [00:00:09] ===> Applying FreeBSD patches for panda-cclient-20130621_3 from /usr/ports/mail/panda-cclient/files [00:00:09] =========================================================================== [00:00:09] =================================================== [00:00:09] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:09] ===> panda-cclient-20130621_3 depends on file: /usr/local/lib/libcrypto.so.12 - not found [00:00:09] ===> Installing existing package /packages/All/openssl-3.0.20,1.pkg [00:00:11] [pkg.mfl.dk] Installing openssl-3.0.20,1... [00:00:11] [pkg.mfl.dk] Extracting openssl-3.0.20,1: .......... done [00:00:13] ===> panda-cclient-20130621_3 depends on file: /usr/local/lib/libcrypto.so.12 - found [00:00:13] ===> Returning to build of panda-cclient-20130621_3 [00:00:13] ===> panda-cclient-20130621_3 depends on file: /usr/local/bin/ccache - not found [00:00:13] ===> Installing existing package /packages/All/ccache-3.7.12_9.pkg [00:00:14] [pkg.mfl.dk] Installing ccache-3.7.12_9... [00:00:14] [pkg.mfl.dk] Extracting ccache-3.7.12_9: .......... done [00:00:14] Create compiler links... [00:00:14] create symlink for cc [00:00:14] create symlink for cc (world) [00:00:14] create symlink for c++ [00:00:14] create symlink for c++ (world) [00:00:14] create symlink for CC [00:00:14] create symlink for CC (world) [00:00:14] create symlink for clang [00:00:14] create symlink for clang (world) [00:00:14] create symlink for clang++ [00:00:14] create symlink for clang++ (world) [00:00:14] ===== [00:00:14] Message from ccache-3.7.12_9: [00:00:14] [00:00:14] -- [00:00:14] NOTE: [00:00:14] Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for [00:00:14] information on using ccache with FreeBSD ports and src. [00:00:14] ===> panda-cclient-20130621_3 depends on file: /usr/local/bin/ccache - found [00:00:14] ===> Returning to build of panda-cclient-20130621_3 [00:00:14] =========================================================================== [00:00:14] =================================================== [00:00:14] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:14] =========================================================================== [00:00:14] =================================================== [00:00:14] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:14] ===> Configuring for panda-cclient-20130621_3 [00:00:14] /usr/bin/sed -i.bak -e "s|/usr/local|/usr/local|g" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/Makefile [00:00:14] /usr/bin/sed -i.bak -e "s|/usr/local|/usr/local|g" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/src/osdep/unix/Makefile [00:00:14] /usr/bin/sed -i.bak -e "s|/usr/local|/usr/local|g" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/src/osdep/unix/Makefile.gss [00:00:14] /usr/bin/sed -i.bak -e "s:/etc/ssl/certs:/usr/local/certs:g; s:/etc/ssl/private:/usr/local/certs:g" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/Makefile [00:00:14] /usr/bin/sed -i.bak -e "s:/etc/c-client.cf:/usr/local/etc/c-client.cf:" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/src/osdep/unix/env_unix.h [00:00:14] /usr/bin/sed -i.bak -e " s:SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib:SSLINCLUDE=/usr/local/include SSLLIB=/usr/local/lib: " /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/Makefile [00:00:14] /usr/bin/sed -i.bak -e "s|^IP=4|IP=6|" /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/Makefile /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/src/osdep/unix/Makefile [00:00:14] >> The c-client shared library will be named libc-client.so.2010 [00:00:14] =========================================================================== [00:00:14] =================================================== [00:00:14] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:14] ===> Building for panda-cclient-20130621_3 [00:00:14] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [00:00:14] + Building in full compliance with RFC 3501 security [00:00:14] + requirements: [00:00:14] ++ TLS/SSL encryption is supported [00:00:14] ++ Unencrypted plaintext passwords are prohibited [00:00:14] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [00:00:14] Applying an process to sources... [00:00:14] tools/an "ln -s" src/c-client c-client [00:00:15] tools/an "ln -s" src/ansilib c-client [00:00:15] tools/an "ln -s" src/charset c-client [00:00:15] tools/an "ln -s" src/osdep/unix c-client [00:00:15] tools/an "ln -s" src/mtest mtest [00:00:15] tools/an "ln -s" src/ipopd ipopd [00:00:15] tools/an "ln -s" src/imapd imapd [00:00:15] tools/an "ln -s" src/mailutil mailutil [00:00:15] tools/an "ln -s" src/mlock mlock [00:00:15] tools/an "ln -s" src/dmail dmail [00:00:15] tools/an "ln -s" src/tmail tmail [00:00:15] ln -s tools/an . [00:00:15] touch ip6 [00:00:15] make build EXTRACFLAGS='-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix.nopwd IP=6 EXTRASPECIALS='' BUILDTYPE=bsf IP=6 PASSWDTYPE=pam SPECIALS="SSLINCLUDE=/usr/local/include SSLLIB=/usr/local/lib SSLCERTS=/usr/local/certs SSLKEYS=/usr/local/certs GSSINCLUDE=/usr/include GSSLIB=/usr/lib PAMLDFLAGS=-lpam" [00:00:15] `ip6' is up to date. [00:00:15] Building c-client for bsf... [00:00:15] echo `cat SPECIALS` > c-client/SPECIALS [00:00:15] cd c-client;make bsf EXTRACFLAGS='-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix.nopwd IP=6 SSLINCLUDE=/usr/local/include SSLLIB=/usr/local/lib SSLCERTS=/usr/local/certs SSLKEYS=/usr/local/certs GSSINCLUDE=/usr/include GSSLIB=/usr/lib PAMLDFLAGS=-lpam [00:00:15] make build EXTRACFLAGS='-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix.nopwd IP=6 `cat SPECIALS` OS=bsf CHECKPW=pam SIGTYPE=psx CRXTYPE=nfs SPOOLDIR=/var ACTIVEFILE=/usr/local/news/lib/active RSHPATH=/usr/bin/rsh LOCKPGM=/usr/local/libexec/mlock BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" BASELDFLAGS="-lpam" [00:00:15] sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' [00:00:15] Once-only environment setup... [00:00:15] echo cc > CCTYPE [00:00:15] echo -g -O2 -pipe -fno-omit-frame-pointer '-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' -DCHUNKSIZE=65536 > CFLAGS [00:00:15] echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/mail\" -DANONYMOUSHOME=\"/var/mail/anonymous\" -DACTIVEFILE=\"/usr/local/news/lib/active\" -DNEWSSPOOL=\"/var/news\" -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/local/libexec/mlock\" -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS [00:00:15] echo -lpam > LDFLAGS [00:00:15] echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE [00:00:15] echo bsf > OSTYPE [00:00:15] ./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy [00:00:15] ./mkauths ext md5 pla log [00:00:15] echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c [00:00:15] ln -s os_bsf.h osdep.h [00:00:15] ln -s os_bsf.c osdepbas.c [00:00:15] ln -s log_std.c osdeplog.c [00:00:15] ln -s sig_psx.c siglocal.c [00:00:15] ln -s crx_nfs.c crexcl.c [00:00:15] ln -s ip6_unix.c ip_unix.c [00:00:15] sh -c '(test bsf = sc5 -o bsf = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' [00:00:15] echo "libc-client.so.`grep CCLIENTVERSION mail.h | sed -e's/[^"]\{1,\}"\([0-9]\{1,\}\)"/\1/'`" > SHLIBNAME [00:00:15] test -z && echo "-fPIC -DPIC -D_REENTRANT" > SHLIBFLAGS || echo "" > SHLIBFLAGS [00:00:15] PAM password authentication [00:00:15] echo -lpam >> LDFLAGS [00:00:15] ln -s ckp_pam.c osdepckp.c [00:00:15] Building with SSL [00:00:15] ln -s ssl_unix.c osdepssl.c [00:00:15] echo -I/usr/local/include -I/usr/local/include/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/certs\" >> OSCFLAGS [00:00:15] echo " ssl_onceonlyinit ();" >> linkage.c [00:00:15] echo -L/usr/local/lib -lssl -lcrypto -lcrypt >> LDFLAGS [00:00:15] Building with SSL and plaintext passwords disabled unless SSL/TLS [00:00:15] echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c [00:00:15] cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c [00:00:15] ======================================================================== [00:00:15] Building OS-dependent module [00:00:15] If you get No such file error messages for files x509.h, ssl.h, [00:00:15] pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL [00:00:15] is not installed on your system. Either install OpenSSL first [00:00:15] or build with command: make bsf SSLTYPE=none [00:00:15] ======================================================================== [00:00:15] `cat CCTYPE` `cat SHLIBFLAGS` `cat CFLAGS` `cat OSCFLAGS` -c osdep.c [00:01:29] In file included from osdep.c:45: [00:01:30] ./nl_unix.c:49:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 49 | if (!*dst) *dst = (char *) fs_get ((*dstl = i) + 1); [00:01:30] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:258: [00:01:30] ./pmatch.c:41:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 41 | if (!pat[1]) return (delim && strchr (s,delim)) ? NIL : T; [00:01:30] | ^ [00:01:30] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:30] 85 | char *strchr(const char *, int) __pure; [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:1: [00:01:30] ./auth_ext.c:62:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_ext.c:62:17: note: place parentheses around the assignment to silence this warning [00:01:30] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_ext.c:62:17: note: use '==' to turn this assignment into an equality comparison [00:01:30] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_ext.c:66:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_ext.c:66:21: note: place parentheses around the assignment to silence this warning [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_ext.c:66:21: note: use '==' to turn this assignment into an equality comparison [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | == [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:103:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:103:17: note: place parentheses around the assignment to silence this warning [00:01:30] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:103:17: note: use '==' to turn this assignment into an equality comparison [00:01:30] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:118:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 118 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:118:16: note: place parentheses around the assignment to silence this warning [00:01:30] 118 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:118:16: note: use '==' to turn this assignment into an equality comparison [00:01:30] 118 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:153:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:01:30] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:153:12: note: place parentheses around the assignment to silence this warning [00:01:30] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:153:12: note: use '==' to turn this assignment into an equality comparison [00:01:30] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:155:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 155 | if (hash = strrchr (user,' ')) { [00:01:30] | ~~~~~^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:155:14: note: place parentheses around the assignment to silence this warning [00:01:30] 155 | if (hash = strrchr (user,' ')) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:155:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 155 | if (hash = strrchr (user,' ')) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:158:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:158:20: note: place parentheses around the assignment to silence this warning [00:01:30] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:158:20: note: use '==' to turn this assignment into an equality comparison [00:01:30] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:160:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:160:13: note: place parentheses around the assignment to silence this warning [00:01:30] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:160:13: note: use '==' to turn this assignment into an equality comparison [00:01:30] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:194:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 194 | read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); [00:01:30] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:196:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 196 | for (s = user; *s && ((*s < 'A') || (*s > 'Z')); s++); [00:01:30] | ^ ~~~~ [00:01:30] ./auth_md5.c:198:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 198 | lusr = *s ? lcase (cpystr (user)) : NIL; [00:01:30] | ^~~~~~~~~~~~~ [00:01:30] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:30] 83 | unsigned char *lcase (unsigned char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:199:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 199 | for (s = strtok_r ((char *) buf,"\015\012",&r),lret = NIL; s; [00:01:30] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:200:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 200 | s = ret ? NIL : strtok_r (NIL,"\015\012",&r)) [00:01:30] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:202:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 202 | if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { [00:01:30] | ^ [00:01:30] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:30] 85 | char *strchr(const char *, int) __pure; [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:202:35: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 202 | if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { [00:01:30] | ^ ~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:204:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 204 | if (!strcmp (s,user)) ret = cpystr (t); [00:01:30] | ^ [00:01:30] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:30] 90 | int strcmp(const char *, const char *) __pure; [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:204:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 204 | if (!strcmp (s,user)) ret = cpystr (t); [00:01:30] | ^ [00:01:30] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:01:30] 84 | char *cpystr (const char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:205:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 205 | else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; [00:01:30] | ^ [00:01:30] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:30] 90 | int strcmp(const char *, const char *) __pure; [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:205:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 205 | else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; [00:01:30] | ^~~~ [00:01:30] /usr/include/string.h:90:39: note: passing argument to parameter here [00:01:30] 90 | int strcmp(const char *, const char *) __pure; [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:208:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 208 | if (!ret && lret) ret = cpystr (lret); [00:01:30] | ^~~~ [00:01:30] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:01:30] 84 | char *cpystr (const char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:2: [00:01:30] ./auth_md5.c:237:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:237:16: note: place parentheses around the assignment to silence this warning [00:01:30] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:237:16: note: use '==' to turn this assignment into an equality comparison [00:01:30] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_md5.c:239:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_md5.c:239:9: note: place parentheses around the assignment to silence this warning [00:01:30] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_md5.c:239:9: note: use '==' to turn this assignment into an equality comparison [00:01:30] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:3: [00:01:30] ./auth_pla.c:66:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_pla.c:66:17: note: place parentheses around the assignment to silence this warning [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_pla.c:66:17: note: use '==' to turn this assignment into an equality comparison [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_pla.c:94:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 94 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_pla.c:94:16: note: place parentheses around the assignment to silence this warning [00:01:30] 94 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_pla.c:94:16: note: use '==' to turn this assignment into an equality comparison [00:01:30] 94 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_pla.c:123:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 123 | if (aid = (*responder) ("",0,&len)) { [00:01:30] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_pla.c:123:11: note: place parentheses around the assignment to silence this warning [00:01:30] 123 | if (aid = (*responder) ("",0,&len)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_pla.c:123:11: note: use '==' to turn this assignment into an equality comparison [00:01:30] 123 | if (aid = (*responder) ("",0,&len)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] In file included from osdep.c:46: [00:01:30] In file included from ./env_unix.c:262: [00:01:30] In file included from ./auths.c:4: [00:01:30] ./auth_log.c:66:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_log.c:66:17: note: place parentheses around the assignment to silence this warning [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_log.c:66:17: note: use '==' to turn this assignment into an equality comparison [00:01:30] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_log.c:81:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 81 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_log.c:81:16: note: place parentheses around the assignment to silence this warning [00:01:30] 81 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_log.c:81:16: note: use '==' to turn this assignment into an equality comparison [00:01:30] 81 | if (challenge = (*challenger) (stream,&clen)) [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_log.c:107:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:01:30] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_log.c:107:12: note: place parentheses around the assignment to silence this warning [00:01:30] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_log.c:107:12: note: use '==' to turn this assignment into an equality comparison [00:01:30] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_log.c:108:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:01:30] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_log.c:108:14: note: place parentheses around the assignment to silence this warning [00:01:30] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_log.c:108:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./auth_log.c:110:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:01:30] ./auth_log.c:110:20: note: place parentheses around the assignment to silence this warning [00:01:30] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./auth_log.c:110:20: note: use '==' to turn this assignment into an equality comparison [00:01:30] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:01:30] | ^ [00:01:30] | == [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:541:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 541 | if (julian = t->tm_yday -julian) [00:01:30] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:541:14: note: place parentheses around the assignment to silence this warning [00:01:30] 541 | if (julian = t->tm_yday -julian) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:541:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 541 | if (julian = t->tm_yday -julian) [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:671:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 671 | struct passwd *pw = getpwnam (user); [00:01:30] | ^~~~ [00:01:30] /usr/include/pwd.h:147:37: note: passing argument to parameter here [00:01:30] 147 | struct passwd *getpwnam(const char *); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:675:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:01:30] | ^~~~ [00:01:30] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:01:30] 84 | char *cpystr (const char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:675:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:01:30] | ^~~~~~~~~~~~~ [00:01:30] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:30] 83 | unsigned char *lcase (unsigned char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:675:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] /usr/include/pwd.h:147:37: note: passing argument to parameter here [00:01:30] 147 | struct passwd *getpwnam(const char *); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:699:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 699 | if (s = auth_md5_pwd (user)) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:699:11: note: place parentheses around the assignment to silence this warning [00:01:30] 699 | if (s = auth_md5_pwd (user)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:699:11: note: use '==' to turn this assignment into an equality comparison [00:01:30] 699 | if (s = auth_md5_pwd (user)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:701:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 701 | ret = pwuser (user); /* validated, get passwd entry for user */ [00:01:30] | ^~~~ [00:01:30] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:01:30] 668 | static struct passwd *pwuser (unsigned char *user) [00:01:30] | ^ [00:01:30] ./env_unix.c:706:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:01:30] | ^~~~ [00:01:30] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:01:30] 668 | static struct passwd *pwuser (unsigned char *user) [00:01:30] | ^ [00:01:30] ./env_unix.c:706:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:01:30] | ~~~^~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:706:15: note: place parentheses around the assignment to silence this warning [00:01:30] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:706:15: note: use '==' to turn this assignment into an equality comparison [00:01:30] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:709:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 709 | (*pwd == ' ') && pwd[1] && (ret = pwuser (s))) [00:01:30] | ^ [00:01:30] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:01:30] 668 | static struct passwd *pwuser (unsigned char *user) [00:01:30] | ^ [00:01:30] ./env_unix.c:740:58: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 740 | else if (valpwd (authuser,pwd,argc,argv)) pw = pwuser (user); [00:01:30] | ^~~~ [00:01:30] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:01:30] 668 | static struct passwd *pwuser (unsigned char *user) [00:01:30] | ^ [00:01:30] ./env_unix.c:758:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 758 | return pw_login (pwuser (user),authuser,user,NIL,argc,argv); [00:01:30] | ^~~~ [00:01:30] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:01:30] 668 | static struct passwd *pwuser (unsigned char *user) [00:01:30] | ^ [00:01:30] ./env_unix.c:797:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 797 | if (user && auser && *auser && compare_cstring (auser,user)) { [00:01:30] | ^~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:797:59: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 797 | if (user && auser && *auser && compare_cstring (auser,user)) { [00:01:30] | ^~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:800:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 800 | if (!compare_cstring (auser,*t++)) [00:01:30] | ^~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:800:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 800 | if (!compare_cstring (auser,*t++)) [00:01:30] | ^~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1096:47: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1096 | sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1096:54: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1096 | sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1106:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1106 | else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { [00:01:30] | ^~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1106:67: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1106 | else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1130:55: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1130 | if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { [00:01:30] | ^~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1130:59: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1130 | if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1144:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1144 | if (!compare_cstring (name,"INBOX")) name = "INBOX"; [00:01:30] | ^~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1144:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1144 | if (!compare_cstring (name,"INBOX")) name = "INBOX"; [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1158:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1158 | if (!compare_cstring (name+1,"NBOX")) { [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1158:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1158 | if (!compare_cstring (name+1,"NBOX")) { [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1294:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1294 | if (s = strrchr (base->lock,'/')) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:1294:11: note: place parentheses around the assignment to silence this warning [00:01:30] 1294 | if (s = strrchr (base->lock,'/')) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:1294:11: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1294 | if (s = strrchr (base->lock,'/')) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:1608:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1608 | if (!compare_cstring (s,"set keywords") && !userFlags[0]) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1608:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1608 | if (!compare_cstring (s,"set keywords") && !userFlags[0]) { [00:01:30] | ^~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1622:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1622 | if (!compare_cstring (s,"set new-mailbox-format") || [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1622:28: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1622 | if (!compare_cstring (s,"set new-mailbox-format") || [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1623:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1623 | !compare_cstring (s,"set new-folder-format")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1623:28: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1623 | !compare_cstring (s,"set new-folder-format")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1624:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1624 | if (!compare_cstring (k,"same-as-inbox")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1624:30: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1624 | if (!compare_cstring (k,"same-as-inbox")) { [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1625:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:1625:14: note: place parentheses around the assignment to silence this warning [00:01:30] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:1625:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:1626:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1626 | if (!compare_cstring (d->name,"mbox")) [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1626:33: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1626 | if (!compare_cstring (d->name,"mbox")) [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1629:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1629 | else if (!compare_cstring (d->name,"dummy")) d = NIL; [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1629:38: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1629 | else if (!compare_cstring (d->name,"dummy")) d = NIL; [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1633:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1633 | else if (!compare_cstring (k,"system-standard")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1633:35: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1633 | else if (!compare_cstring (k,"system-standard")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1636:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1636 | if (!compare_cstring (k,"mbox")) k = "unix"; [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1636:32: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1636 | if (!compare_cstring (k,"mbox")) k = "unix"; [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1638:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./env_unix.c:1638:14: note: place parentheses around the assignment to silence this warning [00:01:30] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./env_unix.c:1638:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:01:30] | ^ [00:01:30] | == [00:01:30] ./env_unix.c:1647:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1647 | if (!compare_cstring (s,"set empty-mailbox-format") || [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1647:28: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1647 | if (!compare_cstring (s,"set empty-mailbox-format") || [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1648:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1648 | !compare_cstring (s,"set empty-folder-format")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1648:28: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1648 | !compare_cstring (s,"set empty-folder-format")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1649:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1649 | if (!compare_cstring (k,"invalid")) appendProto = NIL; [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1649:30: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1649 | if (!compare_cstring (k,"invalid")) appendProto = NIL; [00:01:30] | ^~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1650:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1650 | else if (!compare_cstring (k,"same-as-inbox")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1650:35: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1650 | else if (!compare_cstring (k,"same-as-inbox")) [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1652:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1652 | compare_cstring (d->name,"dummy")) ? [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1652:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1652 | compare_cstring (d->name,"dummy")) ? [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1654:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1654 | else if (!compare_cstring (k,"system-standard")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1654:35: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1654 | else if (!compare_cstring (k,"system-standard")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1658:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1658 | d && compare_cstring (d->name,k); d = d->next); [00:01:30] | ^~~~~~~ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1658:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1658 | d && compare_cstring (d->name,k); d = d->next); [00:01:30] | ^ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1669:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1669 | if (!compare_cstring (s,"set local-host")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1669:26: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1669 | if (!compare_cstring (s,"set local-host")) { [00:01:30] | ^~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1673:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1673 | else if (!compare_cstring (s,"set news-active-file")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1673:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1673 | else if (!compare_cstring (s,"set news-active-file")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1677:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1677 | else if (!compare_cstring (s,"set news-spool-directory")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1677:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1677 | else if (!compare_cstring (s,"set news-spool-directory")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1681:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1681 | else if (!compare_cstring (s,"set mh-path")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1681:31: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1681 | else if (!compare_cstring (s,"set mh-path")) [00:01:30] | ^~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1683:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1683 | else if (!compare_cstring (s,"set mh-allow-inbox")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1683:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1683 | else if (!compare_cstring (s,"set mh-allow-inbox")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1685:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1685 | else if (!compare_cstring (s,"set news-state-file")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1685:31: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1685 | else if (!compare_cstring (s,"set news-state-file")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1689:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1689 | else if (!compare_cstring (s,"set ftp-export-directory")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1689:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1689 | else if (!compare_cstring (s,"set ftp-export-directory")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1693:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1693 | else if (!compare_cstring (s,"set public-home-directory")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1693:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1693 | else if (!compare_cstring (s,"set public-home-directory")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1697:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1697 | else if (!compare_cstring (s,"set shared-home-directory")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1697:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1697 | else if (!compare_cstring (s,"set shared-home-directory")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1701:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1701 | else if (!compare_cstring (s,"set system-inbox")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1701:31: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1701 | else if (!compare_cstring (s,"set system-inbox")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1705:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1705 | else if (!compare_cstring (s,"set mail-subdirectory")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1705:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1705 | else if (!compare_cstring (s,"set mail-subdirectory")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1709:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1709 | else if (!compare_cstring (s,"set from-widget")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1709:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1709 | else if (!compare_cstring (s,"set from-widget")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1711:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1711 | compare_cstring (k,"header-only") ? [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1711:26: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1711 | compare_cstring (k,"header-only") ? [00:01:30] | ^~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1714:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1714 | else if (!compare_cstring (s,"set rsh-command")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1714:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1714 | else if (!compare_cstring (s,"set rsh-command")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1716:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1716 | else if (!compare_cstring (s,"set rsh-path")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1716:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1716 | else if (!compare_cstring (s,"set rsh-path")) [00:01:30] | ^~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1718:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1718 | else if (!compare_cstring (s,"set ssh-command")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1718:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1718 | else if (!compare_cstring (s,"set ssh-command")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1720:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1720 | else if (!compare_cstring (s,"set ssh-path")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1720:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1720 | else if (!compare_cstring (s,"set ssh-path")) [00:01:30] | ^~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1722:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1722 | else if (!compare_cstring (s,"set tcp-open-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1722:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1722 | else if (!compare_cstring (s,"set tcp-open-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1724:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1724 | else if (!compare_cstring (s,"set tcp-read-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1724:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1724 | else if (!compare_cstring (s,"set tcp-read-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1726:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1726 | else if (!compare_cstring (s,"set tcp-write-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1726:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1726 | else if (!compare_cstring (s,"set tcp-write-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1728:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1728 | else if (!compare_cstring (s,"set rsh-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1728:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1728 | else if (!compare_cstring (s,"set rsh-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1730:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1730 | else if (!compare_cstring (s,"set ssh-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1730:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1730 | else if (!compare_cstring (s,"set ssh-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1732:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1732 | else if (!compare_cstring (s,"set maximum-login-trials")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1732:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1732 | else if (!compare_cstring (s,"set maximum-login-trials")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1734:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1734 | else if (!compare_cstring (s,"set lookahead")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1734:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1734 | else if (!compare_cstring (s,"set lookahead")) [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1736:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1736 | else if (!compare_cstring (s,"set prefetch")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1736:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1736 | else if (!compare_cstring (s,"set prefetch")) [00:01:30] | ^~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1738:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1738 | else if (!compare_cstring (s,"set close-on-error")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1738:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1738 | else if (!compare_cstring (s,"set close-on-error")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1740:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1740 | else if (!compare_cstring (s,"set imap-port")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1740:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1740 | else if (!compare_cstring (s,"set imap-port")) [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1742:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1742 | else if (!compare_cstring (s,"set pop3-port")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1742:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1742 | else if (!compare_cstring (s,"set pop3-port")) [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1744:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1744 | else if (!compare_cstring (s,"set uid-lookahead")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1744:31: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1744 | else if (!compare_cstring (s,"set uid-lookahead")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1746:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1746 | else if (!compare_cstring (s,"set try-ssl-first")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1746:31: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1746 | else if (!compare_cstring (s,"set try-ssl-first")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1749:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1749 | else if (!compare_cstring (s,"set mailbox-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1749:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1749 | else if (!compare_cstring (s,"set mailbox-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1751:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1751 | else if (!compare_cstring (s,"set directory-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1751:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1751 | else if (!compare_cstring (s,"set directory-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1753:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1753 | else if (!compare_cstring (s,"set lock-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1753:31: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1753 | else if (!compare_cstring (s,"set lock-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1755:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1755 | else if (!compare_cstring (s,"set ftp-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1755:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1755 | else if (!compare_cstring (s,"set ftp-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1757:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1757 | else if (!compare_cstring (s,"set public-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1757:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1757 | else if (!compare_cstring (s,"set public-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1759:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1759 | else if (!compare_cstring (s,"set shared-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1759:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1759 | else if (!compare_cstring (s,"set shared-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1761:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1761 | else if (!compare_cstring (s,"set ftp-directory-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1761:31: warning: passing 'char[29]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1761 | else if (!compare_cstring (s,"set ftp-directory-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1763:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1763 | else if (!compare_cstring (s,"set public-directory-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1763:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1763 | else if (!compare_cstring (s,"set public-directory-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1765:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1765 | else if (!compare_cstring (s,"set shared-directory-protection")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1765:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1765 | else if (!compare_cstring (s,"set shared-directory-protection")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1767:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1767 | else if (!compare_cstring (s,"set dot-lock-file-timeout")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1767:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1767 | else if (!compare_cstring (s,"set dot-lock-file-timeout")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1769:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1769 | else if (!compare_cstring (s,"set disable-fcntl-locking")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1769:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1769 | else if (!compare_cstring (s,"set disable-fcntl-locking")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1771:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1771 | else if (!compare_cstring (s,"set disable-lock-warning")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1771:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1771 | else if (!compare_cstring (s,"set disable-lock-warning")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1773:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1773 | else if (!compare_cstring (s,"set disable-unix-UIDs-and-keywords")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1773:31: warning: passing 'char[35]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1773 | else if (!compare_cstring (s,"set disable-unix-UIDs-and-keywords")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1775:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1775 | else if (!compare_cstring (s,"set hide-dot-files")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1775:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1775 | else if (!compare_cstring (s,"set hide-dot-files")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1777:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1777 | else if (!compare_cstring (s,"set list-maximum-level")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1777:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1777 | else if (!compare_cstring (s,"set list-maximum-level")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1779:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1779 | else if (!compare_cstring (s,"set trust-dns")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1779:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1779 | else if (!compare_cstring (s,"set trust-dns")) [00:01:30] | ^~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1781:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1781 | else if (!compare_cstring (s,"set sasl-uses-ptr-name")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1781:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1781 | else if (!compare_cstring (s,"set sasl-uses-ptr-name")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1783:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1783 | else if (!compare_cstring (s,"set network-filesystem-stat-bug")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1783:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1783 | else if (!compare_cstring (s,"set network-filesystem-stat-bug")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1785:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1785 | else if (!compare_cstring (s,"set nntp-range")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1785:31: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1785 | else if (!compare_cstring (s,"set nntp-range")) [00:01:30] | ^~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1789:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1789 | if (!compare_cstring (s,"set black-box-directory") && [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1789:28: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1789 | if (!compare_cstring (s,"set black-box-directory") && [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1791:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1791 | else if (!compare_cstring(s,"set black-box-default-home-directory")&& [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1791:32: warning: passing 'char[37]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1791 | else if (!compare_cstring(s,"set black-box-default-home-directory")&& [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1794:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1794 | else if (!compare_cstring (s,"set anonymous-home-directory") && [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1794:33: warning: passing 'char[29]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1794 | else if (!compare_cstring (s,"set anonymous-home-directory") && [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1801:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1801 | else if (!compare_cstring (s,"set CA-certificate-path")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1801:33: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1801 | else if (!compare_cstring (s,"set CA-certificate-path")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1803:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1803 | else if (!compare_cstring (s,"set ssl-cipher-list")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1803:33: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1803 | else if (!compare_cstring (s,"set ssl-cipher-list")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1805:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1805 | else if (!compare_cstring (s,"set ssl-protocols")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1805:33: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1805 | else if (!compare_cstring (s,"set ssl-protocols")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1807:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1807 | else if (!compare_cstring (s,"set ssl-dh-parameters")) /* same use as Sendmail */ [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1807:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1807 | else if (!compare_cstring (s,"set ssl-dh-parameters")) /* same use as Sendmail */ [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1809:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1809 | else if (!compare_cstring (s,"set disable-plaintext")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1809:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1809 | else if (!compare_cstring (s,"set disable-plaintext")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1811:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1811 | else if (!compare_cstring (s,"set allowed-login-attempts")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1811:33: warning: passing 'char[27]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1811 | else if (!compare_cstring (s,"set allowed-login-attempts")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1813:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1813 | else if (!compare_cstring (s,"set chroot-server")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1813:33: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1813 | else if (!compare_cstring (s,"set chroot-server")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1815:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1815 | else if (!compare_cstring (s,"set restrict-mailbox-access")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1815:33: warning: passing 'char[28]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1815 | else if (!compare_cstring (s,"set restrict-mailbox-access")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1817:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1817 | if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1817:32: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1817 | if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; [00:01:30] | ^~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1818:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1818 | else if (!compare_cstring (k,"otherusers")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1818:37: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1818 | else if (!compare_cstring (k,"otherusers")) [00:01:30] | ^~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1820:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1820 | else if (!compare_cstring (k,"all")) restrictBox = -1; [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1820:37: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1820 | else if (!compare_cstring (k,"all")) restrictBox = -1; [00:01:30] | ^~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1822:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1822 | else if (!compare_cstring (s,"set advertise-the-world")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1822:33: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1822 | else if (!compare_cstring (s,"set advertise-the-world")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1824:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1824 | else if (!compare_cstring (s,"set limited-advertise")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1824:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1824 | else if (!compare_cstring (s,"set limited-advertise")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1827:7: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1827 | (s,"set disable-automatic-shared-namespaces")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1827:9: warning: passing 'char[40]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1827 | (s,"set disable-automatic-shared-namespaces")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1829:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1829 | else if (!compare_cstring (s,"set allow-user-config")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1829:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1829 | else if (!compare_cstring (s,"set allow-user-config")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1831:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1831 | else if (!compare_cstring (s,"set allow-reverse-dns")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1831:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1831 | else if (!compare_cstring (s,"set allow-reverse-dns")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1833:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1833 | else if (!compare_cstring (s,"set k5-cp-uses-service-name")) [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1833:33: warning: passing 'char[28]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1833 | else if (!compare_cstring (s,"set k5-cp-uses-service-name")) [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1837:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1837 | else if (!compare_cstring (s,"set plaintext-allowed-clients")) { [00:01:30] | ^ [00:01:30] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:46: [00:01:30] ./env_unix.c:1837:33: warning: passing 'char[30]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 1837 | else if (!compare_cstring (s,"set plaintext-allowed-clients")) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:30] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:30] | ^ [00:01:30] In file included from osdep.c:49: [00:01:30] In file included from ./tcp_unix.c:26: [00:01:30] ./ip_unix.c:130:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 130 | (!getaddrinfo (lcase (strcpy (tmp,text)),NIL,&hints,&ai))) { [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:30] 83 | unsigned char *lcase (unsigned char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:49: [00:01:30] In file included from ./tcp_unix.c:26: [00:01:30] ./ip_unix.c:130:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 130 | (!getaddrinfo (lcase (strcpy (tmp,text)),NIL,&hints,&ai))) { [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] /usr/include/netdb.h:250:30: note: passing argument to parameter here [00:01:30] 250 | int getaddrinfo(const char *, const char *, [00:01:30] | ^ [00:01:30] In file included from osdep.c:49: [00:01:30] In file included from ./tcp_unix.c:26: [00:01:30] ./ip_unix.c:248:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 248 | (!getaddrinfo (lcase (strcpy (tmp,name)),NIL,&hints, [00:01:30] | ^~~~~~~~~~~~~~~~~ [00:01:30] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:30] 83 | unsigned char *lcase (unsigned char *string); [00:01:30] | ^ [00:01:30] In file included from osdep.c:49: [00:01:30] In file included from ./tcp_unix.c:26: [00:01:30] ./ip_unix.c:248:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:30] 248 | (!getaddrinfo (lcase (strcpy (tmp,name)),NIL,&hints, [00:01:30] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] /usr/include/netdb.h:250:30: note: passing argument to parameter here [00:01:30] 250 | int getaddrinfo(const char *, const char *, [00:01:30] | ^ [00:01:30] In file included from osdep.c:49: [00:01:30] ./tcp_unix.c:179:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:01:30] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./tcp_unix.c:179:13: note: place parentheses around the assignment to silence this warning [00:01:30] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:179:13: note: use '==' to turn this assignment into an equality comparison [00:01:30] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./tcp_unix.c:226:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:01:30] | ~~~~~~~~~~~~~^~~~~ [00:01:30] ./tcp_unix.c:226:22: note: place parentheses around the assignment to silence this warning [00:01:30] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:226:22: note: use '==' to turn this assignment into an equality comparison [00:01:30] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:01:30] | ^ [00:01:30] | == [00:01:30] ./tcp_unix.c:374:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:01:30] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./tcp_unix.c:374:13: note: place parentheses around the assignment to silence this warning [00:01:30] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:374:13: note: use '==' to turn this assignment into an equality comparison [00:01:30] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:01:30] | ^ [00:01:30] | == [00:01:30] ./tcp_unix.c:477:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:01:30] 477 | char *ret = tcp_getline_work (stream,&n,&contd); [00:01:30] | ^~~~~~ [00:01:30] ./tcp_unix.c:61:17: note: passing argument to parameter 'contd' here [00:01:30] 61 | long *contd); [00:01:30] | ^ [00:01:30] ./tcp_unix.c:485:41: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:01:30] 485 | ret = tcp_getline_work (stream,&n,&contd); [00:01:30] | ^~~~~~ [00:01:30] ./tcp_unix.c:61:17: note: passing argument to parameter 'contd' here [00:01:30] 61 | long *contd); [00:01:30] | ^ [00:01:30] ./tcp_unix.c:553:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 553 | if (n = min (size,stream->ictr)) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./tcp_unix.c:553:9: note: place parentheses around the assignment to silence this warning [00:01:30] 553 | if (n = min (size,stream->ictr)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:553:9: note: use '==' to turn this assignment into an equality comparison [00:01:30] 553 | if (n = min (size,stream->ictr)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] ./tcp_unix.c:874:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:01:30] | ~~^~~~~~~~~~~~~~~~ [00:01:30] ./tcp_unix.c:874:8: note: place parentheses around the assignment to silence this warning [00:01:30] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:874:8: note: use '==' to turn this assignment into an equality comparison [00:01:30] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:01:30] | ^ [00:01:30] | == [00:01:30] ./tcp_unix.c:1003:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] ./tcp_unix.c:1003:11: note: place parentheses around the assignment to silence this warning [00:01:30] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] ./tcp_unix.c:1003:11: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:159:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:01:30] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 160 | pw->pw_name,&conv,&hdl) == PAM_SUCCESS) && [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 161 | (pam_set_item (hdl,PAM_RHOST,tcp_clientaddr ()) == PAM_SUCCESS) && [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 162 | (pam_authenticate (hdl,NIL) == PAM_SUCCESS) && [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 163 | (pam_acct_mgmt (hdl,NIL) == PAM_SUCCESS) && [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 164 | (pam_setcred (hdl,PAM_ESTABLISH_CRED) == PAM_SUCCESS)) ? [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 165 | getpwnam (name) : NIL) { [00:01:30] | ~~~~~~~~~~~~~~~~~~~~~ [00:01:30] osdep.c:159:10: note: place parentheses around the assignment to silence this warning [00:01:30] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:01:30] | ^ [00:01:30] | ( [00:01:30] 160 | pw->pw_name,&conv,&hdl) == PAM_SUCCESS) && [00:01:30] 161 | (pam_set_item (hdl,PAM_RHOST,tcp_clientaddr ()) == PAM_SUCCESS) && [00:01:30] 162 | (pam_authenticate (hdl,NIL) == PAM_SUCCESS) && [00:01:30] 163 | (pam_acct_mgmt (hdl,NIL) == PAM_SUCCESS) && [00:01:30] 164 | (pam_setcred (hdl,PAM_ESTABLISH_CRED) == PAM_SUCCESS)) ? [00:01:30] 165 | getpwnam (name) : NIL) { [00:01:30] | [00:01:30] | ) [00:01:30] osdep.c:159:10: note: use '==' to turn this assignment into an equality comparison [00:01:30] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:472:12: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] [00:01:30] 472 | TLSv1_client_method () : [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/ssl.h:2023:1: note: 'TLSv1_client_method' has been explicitly marked deprecated here [00:01:30] 2023 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_client_method(void); [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:203:33: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0' [00:01:30] 203 | #define OSSL_DEPRECATEDIN_1_1_0 OSSL_DEPRECATED(1.1.0) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:01:30] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:01:30] | ^ [00:01:30] osdep.c:490:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:01:30] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] osdep.c:490:9: note: place parentheses around the assignment to silence this warning [00:01:30] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] osdep.c:490:9: note: use '==' to turn this assignment into an equality comparison [00:01:30] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:494:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:01:30] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] osdep.c:494:14: note: place parentheses around the assignment to silence this warning [00:01:30] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] osdep.c:494:14: note: use '==' to turn this assignment into an equality comparison [00:01:30] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:503:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:01:30] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:30] 504 | NIL,NIL,"")) { [00:01:30] | ~~~~~~~~~~~ [00:01:30] osdep.c:503:15: note: place parentheses around the assignment to silence this warning [00:01:30] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:01:30] | ^ [00:01:30] | ( [00:01:30] 504 | NIL,NIL,"")) { [00:01:30] | [00:01:30] | ) [00:01:30] osdep.c:503:15: note: use '==' to turn this assignment into an equality comparison [00:01:30] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:641:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:01:30] 641 | char *ret = ssl_getline_work (stream,&n,&contd); [00:01:30] | ^~~~~~ [00:01:30] osdep.c:314:17: note: passing argument to parameter 'contd' here [00:01:30] 314 | long *contd); [00:01:30] | ^ [00:01:30] osdep.c:649:41: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:01:30] 649 | ret = ssl_getline_work (stream,&n,&contd); [00:01:30] | ^~~~~~ [00:01:30] osdep.c:314:17: note: passing argument to parameter 'contd' here [00:01:30] 314 | long *contd); [00:01:30] | ^ [00:01:30] osdep.c:1177:16: warning: 'SSL_CTX_use_RSAPrivateKey_file' is deprecated [-Wdeprecated-declarations] [00:01:30] 1177 | else if (!(SSL_CTX_use_RSAPrivateKey_file (stream->context,key, [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/ssl.h:1702:1: note: 'SSL_CTX_use_RSAPrivateKey_file' has been explicitly marked deprecated here [00:01:30] 1702 | OSSL_DEPRECATEDIN_3_0 [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:01:30] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:01:30] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:01:30] | ^ [00:01:30] osdep.c:1192:8: warning: 'PEM_read_bio_DHparams' is deprecated [-Wdeprecated-declarations] [00:01:30] 1192 | dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/pem.h:471:21: note: 'PEM_read_bio_DHparams' has been explicitly marked deprecated here [00:01:30] 471 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:01:30] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:01:30] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:01:30] | ^ [00:01:30] osdep.c:1215:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] [00:01:30] 1215 | DH_free(dh); [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here [00:01:30] 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:01:30] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:01:30] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:01:30] | ^ [00:01:30] osdep.c:1253:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:01:30] | ~~^~~~~~~~~~~~~~~~~~ [00:01:30] osdep.c:1253:12: note: place parentheses around the assignment to silence this warning [00:01:30] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] osdep.c:1253:12: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:01:30] | ^ [00:01:30] | == [00:01:30] osdep.c:1272:17: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] [00:01:30] 1272 | if (!(key = RSA_generate_key (export ? keylength : 1024,RSA_F4,NIL,NIL))) { [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/rsa.h:253:1: note: 'RSA_generate_key' has been explicitly marked deprecated here [00:01:30] 253 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void (*callback)(int, int, void *), [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:247:33: note: expanded from macro 'OSSL_DEPRECATEDIN_0_9_8' [00:01:30] 247 | #define OSSL_DEPRECATEDIN_0_9_8 OSSL_DEPRECATED(0.9.8) [00:01:30] | ^ [00:01:30] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:01:30] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:01:30] | ^ [00:01:30] osdep.c:1275:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:30] 1275 | while (i = ERR_get_error ()) [00:01:30] | ~~^~~~~~~~~~~~~~~~~~ [00:01:30] osdep.c:1275:16: note: place parentheses around the assignment to silence this warning [00:01:30] 1275 | while (i = ERR_get_error ()) [00:01:30] | ^ [00:01:30] | ( ) [00:01:30] osdep.c:1275:16: note: use '==' to turn this assignment into an equality comparison [00:01:30] 1275 | while (i = ERR_get_error ()) [00:01:30] | ^ [00:01:30] | == [00:01:30] 256 warnings generated. [00:01:30] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mail.c [00:01:34] mail.c:213:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:01:34] | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:213:28: note: place parentheses around the assignment to silence this warning [00:01:34] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:213:28: note: use '==' to turn this assignment into an equality comparison [00:01:34] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:384:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 384 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:384:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 384 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:389:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 389 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:389:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 389 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:391:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:391:13: note: place parentheses around the assignment to silence this warning [00:01:34] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:391:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:394:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 394 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:394:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 394 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:396:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:396:13: note: place parentheses around the assignment to silence this warning [00:01:34] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:396:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:400:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 400 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:400:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 400 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:401:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:401:13: note: place parentheses around the assignment to silence this warning [00:01:34] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:401:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:405:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 405 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:405:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 405 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:406:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:406:13: note: place parentheses around the assignment to silence this warning [00:01:34] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:406:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:410:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 410 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:410:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 410 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:411:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:411:13: note: place parentheses around the assignment to silence this warning [00:01:34] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:411:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:415:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 415 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:415:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 415 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:416:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:01:34] | ~~~~^~~~~~~~~~~~ [00:01:34] mail.c:416:13: note: place parentheses around the assignment to silence this warning [00:01:34] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:416:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:650:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:650:11: note: place parentheses around the assignment to silence this warning [00:01:34] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:650:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:651:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 651 | if (r = env_parameters (function,value)) ret = r; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:651:11: note: place parentheses around the assignment to silence this warning [00:01:34] 651 | if (r = env_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:651:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 651 | if (r = env_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:652:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:652:11: note: place parentheses around the assignment to silence this warning [00:01:34] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:652:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:654:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:654:13: note: place parentheses around the assignment to silence this warning [00:01:34] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:654:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:658:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:658:13: note: place parentheses around the assignment to silence this warning [00:01:34] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:658:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:772:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 772 | if (t = strpbrk (s = t,"/:=")) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:772:13: note: place parentheses around the assignment to silence this warning [00:01:34] 772 | if (t = strpbrk (s = t,"/:=")) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:772:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 772 | if (t = strpbrk (s = t,"/:=")) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:790:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 790 | if (t = strpbrk (v = t,"/:")) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:790:10: note: place parentheses around the assignment to silence this warning [00:01:34] 790 | if (t = strpbrk (v = t,"/:")) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:790:10: note: use '==' to turn this assignment into an equality comparison [00:01:34] 790 | if (t = strpbrk (v = t,"/:")) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:797:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 797 | if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:797:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 797 | if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:798:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 798 | lcase (strcpy (mb->service,v)); [00:01:34] | ^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:34] 83 | unsigned char *lcase (unsigned char *string); [00:01:34] | ^ [00:01:34] mail.c:799:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 799 | else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:799:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 799 | else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:801:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 801 | else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:801:31: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 801 | else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:807:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 807 | if (!compare_cstring (s,"anonymous")) mb->anoflag = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:807:26: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 807 | if (!compare_cstring (s,"anonymous")) mb->anoflag = T; [00:01:34] | ^~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:808:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 808 | else if (!compare_cstring (s,"debug")) mb->dbgflag = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:808:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 808 | else if (!compare_cstring (s,"debug")) mb->dbgflag = T; [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:809:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 809 | else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:809:31: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 809 | else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:810:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 810 | else if (!compare_cstring (s,"secure")) mb->secflag = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:810:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 810 | else if (!compare_cstring (s,"secure")) mb->secflag = T; [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:811:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 811 | else if (!compare_cstring (s,"norsh")) mb->norsh = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:811:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 811 | else if (!compare_cstring (s,"norsh")) mb->norsh = T; [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:812:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 812 | else if (!compare_cstring (s,"loser")) mb->loser = T; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:812:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 812 | else if (!compare_cstring (s,"loser")) mb->loser = T; [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:813:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 813 | else if (!compare_cstring (s,"tls") && !mb->notlsflag) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:813:31: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 813 | else if (!compare_cstring (s,"tls") && !mb->notlsflag) [00:01:34] | ^~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:815:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 815 | else if (!compare_cstring (s,"tls-sslv23") && !mb->notlsflag) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:815:31: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 815 | else if (!compare_cstring (s,"tls-sslv23") && !mb->notlsflag) [00:01:34] | ^~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:817:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 817 | else if (!compare_cstring (s,"notls") && !mb->tlsflag) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:817:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 817 | else if (!compare_cstring (s,"notls") && !mb->tlsflag) [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:819:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 819 | else if (!compare_cstring (s,"tryssl")) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:819:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 819 | else if (!compare_cstring (s,"tryssl")) [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:821:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 821 | else if (mailssldriver && !compare_cstring (s,"ssl") && !mb->tlsflag) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:821:48: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 821 | else if (mailssldriver && !compare_cstring (s,"ssl") && !mb->tlsflag) [00:01:34] | ^~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:823:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 823 | else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:823:48: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 823 | else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) [00:01:34] | ^~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:826:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 826 | else if (mailssldriver && !compare_cstring (s,"validate-cert")); [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:826:48: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 826 | else if (mailssldriver && !compare_cstring (s,"validate-cert")); [00:01:34] | ^~~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:829:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 829 | else if (!compare_cstring (s,"imap") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:829:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 829 | else if (!compare_cstring (s,"imap") || [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:830:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 830 | !compare_cstring (s,"nntp") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:830:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 830 | !compare_cstring (s,"nntp") || [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:831:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 831 | !compare_cstring (s,"pop3") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:831:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 831 | !compare_cstring (s,"pop3") || [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:832:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 832 | !compare_cstring (s,"smtp") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:832:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 832 | !compare_cstring (s,"smtp") || [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:833:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 833 | !compare_cstring (s,"submit")) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:833:24: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 833 | !compare_cstring (s,"submit")) [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:834:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 834 | lcase (strcpy (mb->service,s)); [00:01:34] | ^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:34] 83 | unsigned char *lcase (unsigned char *string); [00:01:34] | ^ [00:01:34] mail.c:835:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 835 | else if (!compare_cstring (s,"imap2") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:835:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 835 | else if (!compare_cstring (s,"imap2") || [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:836:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 836 | !compare_cstring (s,"imap2bis") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:836:24: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 836 | !compare_cstring (s,"imap2bis") || [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:837:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 837 | !compare_cstring (s,"imap4") || [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:837:24: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 837 | !compare_cstring (s,"imap4") || [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:838:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 838 | !compare_cstring (s,"imap4rev1")) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:838:24: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 838 | !compare_cstring (s,"imap4rev1")) [00:01:34] | ^~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:840:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 840 | else if (!compare_cstring (s,"pop")) [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:840:31: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 840 | else if (!compare_cstring (s,"pop")) [00:01:34] | ^~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:925:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 925 | while (d = d->next); /* until at the end */ [00:01:34] | ~~^~~~~~~~~ [00:01:34] mail.c:925:12: note: place parentheses around the assignment to silence this warning [00:01:34] 925 | while (d = d->next); /* until at the end */ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:925:12: note: use '==' to turn this assignment into an equality comparison [00:01:34] 925 | while (d = d->next); /* until at the end */ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:958:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 958 | while (d = d->next); /* until at the end */ [00:01:34] | ~~^~~~~~~~~ [00:01:34] mail.c:958:12: note: place parentheses around the assignment to silence this warning [00:01:34] 958 | while (d = d->next); /* until at the end */ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:958:12: note: use '==' to turn this assignment into an equality comparison [00:01:34] 958 | while (d = d->next); /* until at the end */ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1002:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1002:9: note: place parentheses around the assignment to silence this warning [00:01:34] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1002:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1013:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1013 | if (!compare_cstring (mailbox,"INBOX")) { [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:1013:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1013 | if (!compare_cstring (mailbox,"INBOX")) { [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:1018:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1018:9: note: place parentheses around the assignment to silence this warning [00:01:34] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1018:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1098:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1098 | if (s = mail_utf7_valid (newname)) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1098:9: note: place parentheses around the assignment to silence this warning [00:01:34] 1098 | if (s = mail_utf7_valid (newname)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1098:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1098 | if (s = mail_utf7_valid (newname)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1205:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:01:34] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1205:18: note: place parentheses around the assignment to silence this warning [00:01:34] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1205:18: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1222:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:01:34] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1222:18: note: place parentheses around the assignment to silence this warning [00:01:34] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1222:18: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1249:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1249:13: note: place parentheses around the assignment to silence this warning [00:01:34] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1249:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1255:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1255 | for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:1255:59: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1255 | for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); [00:01:34] | ^~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:1477:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1477 | if (stream->dtb && mail_uid_sequence (stream,sequence) && [00:01:34] | ^~~~~~~~ [00:01:34] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:34] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:34] | ^ [00:01:34] mail.c:1493:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1493 | if (stream->dtb && mail_sequence (stream,sequence) && [00:01:34] | ^~~~~~~~ [00:01:34] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:34] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:34] | ^ [00:01:34] mail.c:1518:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1518 | ov.date = env->date; [00:01:34] | ^ ~~~~~~~~~ [00:01:34] mail.c:1549:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1549:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1549:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1661:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1661:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1661:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1731:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1731:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1731:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1736:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1736 | if (!((b = mail_body (stream,msgno,section)) && [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:1784:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1784 | if (rt.data = (unsigned char *) [00:01:34] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:01:34] 1785 | (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { [00:01:34] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1784:19: note: place parentheses around the assignment to silence this warning [00:01:34] 1784 | if (rt.data = (unsigned char *) [00:01:34] | ^ [00:01:34] | ( [00:01:34] 1785 | (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { [00:01:34] | [00:01:34] | ) [00:01:34] mail.c:1784:19: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1784 | if (rt.data = (unsigned char *) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1822:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1822:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1822:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1827:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1827 | if (!((b = mail_body (stream,msgno,section)) && [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:1877:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1877:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1877:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1881:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1881 | if (!(section && *section && (b = mail_body (stream,msgno,section)))) [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:1960:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:1960:15: note: place parentheses around the assignment to silence this warning [00:01:34] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:1960:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:1964:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 1964 | if (!(b = mail_body (stream,msgno,section))) return ""; [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:2018:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2018:15: note: place parentheses around the assignment to silence this warning [00:01:34] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2018:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2024:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2024 | if (!((b = mail_body (stream,msgno,section)) && [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:2088:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2088:15: note: place parentheses around the assignment to silence this warning [00:01:34] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2088:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2092:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2092 | if (!(b = mail_body (stream,msgno,section))) return NIL; [00:01:34] | ^~~~~~~ [00:01:34] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:34] 1693 | unsigned char *section); [00:01:34] | ^ [00:01:34] mail.c:2238:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2238 | if (delta = ((last - first) / 2)) { [00:01:34] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2238:12: note: place parentheses around the assignment to silence this warning [00:01:34] 2238 | if (delta = ((last - first) / 2)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2238:12: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2238 | if (delta = ((last - first) / 2)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2314:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2314 | ((flags & ST_UID) ? mail_uid_sequence (stream,sequence) : [00:01:34] | ^~~~~~~~ [00:01:34] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:34] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:34] | ^ [00:01:34] mail.c:2315:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2315 | mail_sequence (stream,sequence)) && [00:01:34] | ^~~~~~~~ [00:01:34] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:34] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:34] | ^ [00:01:34] mail.c:2392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2392 | if (msg = utf8_badcharset (charset)) { [00:01:34] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2392:11: note: place parentheses around the assignment to silence this warning [00:01:34] 2392 | if (msg = utf8_badcharset (charset)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2392:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2392 | if (msg = utf8_badcharset (charset)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2604:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2604 | else if (!strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) { [00:01:34] | ^~~~~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:34] 83 | unsigned char *lcase (unsigned char *string); [00:01:34] | ^ [00:01:34] mail.c:2604:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2604 | else if (!strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) { [00:01:34] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] /usr/include/string.h:116:26: note: passing argument to parameter here [00:01:34] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:01:34] | ^ [00:01:34] mail.c:2618:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2618:14: note: place parentheses around the assignment to silence this warning [00:01:34] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2618:14: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2656:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:01:34] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2656:13: note: place parentheses around the assignment to silence this warning [00:01:34] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2656:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2726:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2726 | if (!(i = strtoul (section,(char **) §ion,10)) || [00:01:34] | ^~~~~~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2731:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:01:34] | ~~~^~~~~~~~~~~~~~~~ [00:01:34] mail.c:2731:11: note: place parentheses around the assignment to silence this warning [00:01:34] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:2731:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:2858:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:01:34] | ^ [00:01:34] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:34] 105 | size_t strlen(const char *) __pure; [00:01:34] | ^ [00:01:34] mail.c:2858:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:01:34] | ^ [00:01:34] /usr/include/string.h:92:58: note: passing argument to parameter here [00:01:34] 92 | char *(strcpy)(char * __restrict, const char * __restrict); [00:01:34] | ^ [00:01:34] mail.c:2858:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:01:34] | ^~~~~~~~~~~~~~ [00:01:34] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:34] 82 | unsigned char *ucase (unsigned char *string); [00:01:34] | ^ [00:01:34] mail.c:2864:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2864 | if (!(m = strtoul (s,(char **) &s,10))) return NIL; [00:01:34] | ^ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2868:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2868 | if (isdigit (*++s) && (d = strtoul (s,(char **) &s,10)) && [00:01:34] | ^ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2870:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2870 | y = strtoul (s,(char **) &s,10); [00:01:34] | ^ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2880:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2880 | if ((m = strtoul (s+1,(char **) &s,10)) && (*s++ == '-') && [00:01:34] | ^~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2881:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2881 | (d = strtoul (s,(char **) &s,10)) && !*s) break; [00:01:34] | ^ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2886:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2886 | if (strlen (s) < (size_t) 5) return NIL; [00:01:34] | ^ [00:01:34] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:34] 105 | size_t strlen(const char *) __pure; [00:01:34] | ^ [00:01:34] mail.c:2914:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2914 | y = strtoul (s,(char **) &s,10); [00:01:34] | ^ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2938:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2938 | d = strtoul (s+1,(char **) &s,10); [00:01:34] | ^~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2940:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2940 | m = strtoul (++s,(char **) &s,10); [00:01:34] | ^~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:2941:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 2941 | y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0; [00:01:34] | ^~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:3091:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:01:34] | ~~^~~~~~~~~~~~~~ [00:01:34] mail.c:3091:11: note: place parentheses around the assignment to silence this warning [00:01:34] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3091:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3271:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3271 | else if (!(i = strtoul (sequence,(char **) &sequence,10))) { [00:01:34] | ^~~~~~~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:3282:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3282 | else if (!(j = strtoul (sequence,(char **) &sequence,10))) { [00:01:34] | ^~~~~~~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:3312:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:3312:13: note: place parentheses around the assignment to silence this warning [00:01:34] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3312:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3345:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3345 | while (lines = lines->next); [00:01:34] | ~~~~~~^~~~~~~~~~~~~ [00:01:34] mail.c:3345:16: note: place parentheses around the assignment to silence this warning [00:01:34] 3345 | while (lines = lines->next); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3345:16: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3345 | while (lines = lines->next); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3377:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3377 | if (i = t - tmp) /* see if found in header */ [00:01:34] | ~~^~~~~~~~~ [00:01:34] mail.c:3377:11: note: place parentheses around the assignment to silence this warning [00:01:34] 3377 | if (i = t - tmp) /* see if found in header */ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3377:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3377 | if (i = t - tmp) /* see if found in header */ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3379:53: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3379 | if ((hdrs->text.size == i) && !compare_csizedtext (tmp,&hdrs->text)) [00:01:34] | ^~~ [00:01:34] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:01:34] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:01:34] | ^ [00:01:34] mail.c:3523:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3523 | BODY *body = mail_body (stream,msgno,section); [00:01:34] | ^~~~~~~ [00:01:34] mail.c:2716:72: note: passing argument to parameter 'section' here [00:01:34] 2716 | BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) [00:01:34] | ^ [00:01:34] mail.c:3629:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3629 | if (h.data = (unsigned char *) s) { [00:01:34] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:3629:14: note: place parentheses around the assignment to silence this warning [00:01:34] 3629 | if (h.data = (unsigned char *) s) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3629:14: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3629 | if (h.data = (unsigned char *) s) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3680:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:01:34] | ~~~^~~~~~~~~~ [00:01:34] mail.c:3680:12: note: place parentheses around the assignment to silence this warning [00:01:34] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3680:12: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3695:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3695 | else if ((body = mail_body (stream,msgno,section)) && [00:01:34] | ^~~~~~~ [00:01:34] mail.c:2716:72: note: passing argument to parameter 'section' here [00:01:34] 2716 | BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) [00:01:34] | ^ [00:01:34] mail.c:3762:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3762 | if (body = body->nested.msg->body) [00:01:34] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:3762:16: note: place parentheses around the assignment to silence this warning [00:01:34] 3762 | if (body = body->nested.msg->body) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3762:16: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3762 | if (body = body->nested.msg->body) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3779:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3779 | if (st.data = (unsigned char *) [00:01:34] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:01:34] 3780 | rfc822_base64 ((unsigned char *) s,i,&st.size)) { [00:01:34] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:3779:14: note: place parentheses around the assignment to silence this warning [00:01:34] 3779 | if (st.data = (unsigned char *) [00:01:34] | ^ [00:01:34] | ( [00:01:34] 3780 | rfc822_base64 ((unsigned char *) s,i,&st.size)) { [00:01:34] | [00:01:34] | ) [00:01:34] mail.c:3779:14: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3779 | if (st.data = (unsigned char *) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3786:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:01:34] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:3786:14: note: place parentheses around the assignment to silence this warning [00:01:34] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3786:14: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3862:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3862 | if (!compare_csizedtext (stream->user_flags[i],&st->text)) { [00:01:34] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:01:34] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:01:34] | ^ [00:01:34] mail.c:3867:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3867 | } while (st = st->next); [00:01:34] | ~~~^~~~~~~~~~ [00:01:34] mail.c:3867:15: note: place parentheses around the assignment to silence this warning [00:01:34] 3867 | } while (st = st->next); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3867:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3867 | } while (st = st->next); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3896:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:01:34] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ [00:01:34] mail.c:3896:25: note: place parentheses around the assignment to silence this warning [00:01:34] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3896:25: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3897:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:01:34] | ~~~~~~~~~^~~~~~~~ [00:01:34] mail.c:3897:20: note: place parentheses around the assignment to silence this warning [00:01:34] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3897:20: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3898:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:01:34] | ~~~~~~~~~~^~~~~~~~~ [00:01:34] mail.c:3898:21: note: place parentheses around the assignment to silence this warning [00:01:34] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:3898:21: note: use '==' to turn this assignment into an equality comparison [00:01:34] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:3993:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 3993 | switch (*ucase (criterion)) { [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:34] 82 | unsigned char *ucase (unsigned char *string); [00:01:34] | ^ [00:01:34] mail.c:4084:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4084 | mail_parse_date (&elt,(char *) s->text.data) && [00:01:34] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:2840:56: note: passing argument to parameter 's' here [00:01:34] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:01:34] | ^ [00:01:34] mail.c:4133:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4133:11: note: place parentheses around the assignment to silence this warning [00:01:34] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4133:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4340:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4340 | if (env) t = env->date; [00:01:34] | ^ ~~~~~~~~~ [00:01:34] mail.c:4344:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4344:22: note: place parentheses around the assignment to silence this warning [00:01:34] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4344:22: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4356:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4356 | if (!(t && mail_parse_date (&telt,t) && [00:01:34] | ^ [00:01:34] mail.c:2840:56: note: passing argument to parameter 's' here [00:01:34] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:01:34] | ^ [00:01:34] mail.c:4380:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4380:22: note: place parentheses around the assignment to silence this warning [00:01:34] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4380:22: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4388:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4388 | if (v = strchr (v,':')) { [00:01:34] | ~~^~~~~~~~~~~~~~~~ [00:01:34] mail.c:4388:9: note: place parentheses around the assignment to silence this warning [00:01:34] 4388 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4388:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4388 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4414:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4414:22: note: place parentheses around the assignment to silence this warning [00:01:34] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4414:22: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4422:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4422 | if (v = strchr (v,':')) { [00:01:34] | ~~^~~~~~~~~~~~~~~~ [00:01:34] mail.c:4422:9: note: place parentheses around the assignment to silence this warning [00:01:34] 4422 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4422:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4422 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4448:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4448:22: note: place parentheses around the assignment to silence this warning [00:01:34] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4448:22: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4456:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4456 | if (v = strchr (v,':')) { [00:01:34] | ~~^~~~~~~~~~~~~~~~ [00:01:34] mail.c:4456:9: note: place parentheses around the assignment to silence this warning [00:01:34] 4456 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4456:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4456 | if (v = strchr (v,':')) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4483:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4483:22: note: place parentheses around the assignment to silence this warning [00:01:34] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4483:22: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4517:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:01:34] | ~~~~~~~~~^~~~~~~~~~~~ [00:01:34] mail.c:4517:16: note: place parentheses around the assignment to silence this warning [00:01:34] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4517:16: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4659:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4659 | i = compare_string (s1->from,s2->from); [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4659:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4659 | i = compare_string (s1->from,s2->from); [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4662:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4662 | i = compare_string (s1->to,s2->to); [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4662:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4662 | i = compare_string (s1->to,s2->to); [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4665:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4665 | i = compare_string (s1->cc,s2->cc); [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4665:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4665 | i = compare_string (s1->cc,s2->cc); [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4668:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4668 | i = compare_string (s1->subject,s2->subject); [00:01:34] | ^~~~~~~~~~~ [00:01:34] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4668:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4668 | i = compare_string (s1->subject,s2->subject); [00:01:34] | ^~~~~~~~~~~ [00:01:34] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:01:34] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4673 | while (pgm = i ? NIL : pgm->next); [00:01:34] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4673:14: note: place parentheses around the assignment to silence this warning [00:01:34] 4673 | while (pgm = i ? NIL : pgm->next); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4673:14: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4673 | while (pgm = i ? NIL : pgm->next); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4767:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4767 | if (!compare_cstring (type,t->name)) { [00:01:34] | ^~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4767:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4767 | if (!compare_cstring (type,t->name)) { [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4800:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:01:34] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4800:11: note: place parentheses around the assignment to silence this warning [00:01:34] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4800:11: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4811:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4811 | if (compare_cstring (top->sc->subject,s->subject)) { [00:01:34] | ^~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4811:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 4811 | if (compare_cstring (top->sc->subject,s->subject)) { [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:4914:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:01:34] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:4914:10: note: place parentheses around the assignment to silence this warning [00:01:34] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4914:10: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:4962:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:01:34] | ~~~^~~~~~~~~~ [00:01:34] mail.c:4962:28: note: place parentheses around the assignment to silence this warning [00:01:34] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:4962:28: note: use '==' to turn this assignment into an equality comparison [00:01:34] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:5132:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5132 | if (!s->date && ov->date && mail_parse_date (&telt,ov->date)) { [00:01:34] | ^~~~~~~~ [00:01:34] mail.c:2840:56: note: passing argument to parameter 's' here [00:01:34] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:01:34] | ^ [00:01:34] mail.c:5194:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:5194:9: note: place parentheses around the assignment to silence this warning [00:01:34] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:5194:9: note: use '==' to turn this assignment into an equality comparison [00:01:34] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:5198:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:01:34] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:5198:25: note: place parentheses around the assignment to silence this warning [00:01:34] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:5198:25: note: use '==' to turn this assignment into an equality comparison [00:01:34] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:5300:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:01:34] | ~~~~^~~~~~~~~~~~~ [00:01:34] mail.c:5300:13: note: place parentheses around the assignment to silence this warning [00:01:34] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:5300:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:5382:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5382 | else if (!(i = strtoul (sequence,(char **) &sequence,10)) || [00:01:34] | ^~~~~~~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:5398:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5398 | else if (!(j = strtoul (sequence,(char **) &sequence,10)) || [00:01:34] | ^~~~~~~~ [00:01:34] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:34] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:34] | ^ [00:01:34] mail.c:5451:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:01:34] | ~~^~~~~~~~~~~~~~~~ [00:01:34] mail.c:5451:13: note: place parentheses around the assignment to silence this warning [00:01:34] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:5451:13: note: use '==' to turn this assignment into an equality comparison [00:01:34] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:5453:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5453 | if (!compare_cstring (t+1,"SEEN")) f |= fSEEN; [00:01:34] | ^~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5453:28: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5453 | if (!compare_cstring (t+1,"SEEN")) f |= fSEEN; [00:01:34] | ^~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5454:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5454 | else if (!compare_cstring (t+1,"DELETED")) f |= fDELETED; [00:01:34] | ^~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5454:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5454 | else if (!compare_cstring (t+1,"DELETED")) f |= fDELETED; [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5455:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5455 | else if (!compare_cstring (t+1,"FLAGGED")) f |= fFLAGGED; [00:01:34] | ^~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5455:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5455 | else if (!compare_cstring (t+1,"FLAGGED")) f |= fFLAGGED; [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5456:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5456 | else if (!compare_cstring (t+1,"ANSWERED")) f |= fANSWERED; [00:01:34] | ^~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5456:33: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5456 | else if (!compare_cstring (t+1,"ANSWERED")) f |= fANSWERED; [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5457:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5457 | else if (!compare_cstring (t+1,"DRAFT")) f |= fDRAFT; [00:01:34] | ^~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5457:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5457 | else if (!compare_cstring (t+1,"DRAFT")) f |= fDRAFT; [00:01:34] | ^~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5467:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5467 | if (!compare_cstring (t,s)) *uf |= i = 1 << j; [00:01:34] | ^ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5467:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5467 | if (!compare_cstring (t,s)) *uf |= i = 1 << j; [00:01:34] | ^ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5517:27: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5517 | ((!compare_cstring (smb.host,trustdns ? [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5517:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5517 | ((!compare_cstring (smb.host,trustdns ? [00:01:34] | ^~~~~~~~~~ [00:01:34] 5518 | (s = tcp_canonical (nmb.host)) : nmb.host) && [00:01:34] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5523:27: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5523 | (!compare_cstring (omb.host,nmb.host) && [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:5523:36: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 5523 | (!compare_cstring (omb.host,nmb.host) && [00:01:34] | ^~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:6095:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 6095 | if (auth->server && !compare_cstring (auth->name,mechanism)) [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:6095:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 6095 | if (auth->server && !compare_cstring (auth->name,mechanism)) [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:6128:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 6128 | !(auth->flags & AU_DISABLE) && !compare_cstring (auth->name,mechanism)) [00:01:34] | ^~~~~~~~~~ [00:01:34] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:6128:62: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:34] 6128 | !(auth->flags & AU_DISABLE) && !compare_cstring (auth->name,mechanism)) [00:01:34] | ^~~~~~~~~ [00:01:34] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:34] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:34] | ^ [00:01:34] mail.c:6215:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:01:34] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:6215:15: note: place parentheses around the assignment to silence this warning [00:01:34] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:6215:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] mail.c:6237:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:34] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:01:34] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:34] mail.c:6237:15: note: place parentheses around the assignment to silence this warning [00:01:34] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:01:34] | ^ [00:01:34] | ( ) [00:01:34] mail.c:6237:15: note: use '==' to turn this assignment into an equality comparison [00:01:34] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:01:34] | ^ [00:01:34] | == [00:01:34] 213 warnings generated. [00:01:34] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` misc.c [00:01:35] misc.c:272:41: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:01:35] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:01:35] | ~~^~~~~~~~~ [00:01:35] misc.c:272:41: note: remove extraneous parentheses around the comparison to silence this warning [00:01:35] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:01:35] | ~ ^ ~ [00:01:35] misc.c:272:41: note: use '=' to turn this equality comparison into an assignment [00:01:35] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:01:35] | ^~ [00:01:35] | = [00:01:35] misc.c:314:47: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:01:35] | ~~~~^~~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:314:47: note: place parentheses around the assignment to silence this warning [00:01:35] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] misc.c:314:47: note: use '==' to turn this assignment into an equality comparison [00:01:35] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:01:35] | ^ [00:01:35] | == [00:01:35] misc.c:331:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:331:19: note: place parentheses around the assignment to silence this warning [00:01:35] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] misc.c:331:19: note: use '==' to turn this assignment into an equality comparison [00:01:35] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:01:35] | ^ [00:01:35] | == [00:01:35] misc.c:450:39: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:450:39: note: place parentheses around the assignment to silence this warning [00:01:35] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] misc.c:450:39: note: use '==' to turn this assignment into an equality comparison [00:01:35] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:01:35] | ^ [00:01:35] | == [00:01:35] misc.c:469:39: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:469:39: note: place parentheses around the assignment to silence this warning [00:01:35] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] misc.c:469:39: note: use '==' to turn this assignment into an equality comparison [00:01:35] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:01:35] | ^ [00:01:35] | == [00:01:35] misc.c:488:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:35] 488 | for (s = (char *) s2->data,j = s2->size; *s1 && j; ++s1,++s,--j) [00:01:35] | ^ ~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:489:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] misc.c:489:11: note: place parentheses around the assignment to silence this warning [00:01:35] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] misc.c:489:11: note: use '==' to turn this assignment into an equality comparison [00:01:35] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:01:35] | ^ [00:01:35] | == [00:01:35] 7 warnings generated. [00:01:35] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` newsrc.c [00:01:35] newsrc.c:126:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 126 | if (k = elt->private.uid - 1) { [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:35] newsrc.c:126:8: note: place parentheses around the assignment to silence this warning [00:01:35] 126 | if (k = elt->private.uid - 1) { [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] newsrc.c:126:8: note: use '==' to turn this assignment into an equality comparison [00:01:35] 126 | if (k = elt->private.uid - 1) { [00:01:35] | ^ [00:01:35] | == [00:01:35] newsrc.c:167:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:35] 167 | if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); [00:01:35] | ^~~~ [00:01:35] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:35] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:35] | ^ [00:01:35] newsrc.c:167:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:35] 167 | if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); [00:01:35] | ^~~~~~~ [00:01:35] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:35] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:35] | ^ [00:01:35] newsrc.c:170:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:35] 170 | if (pmatch_full (name,pattern,'.')) [00:01:35] | ^~~~ [00:01:35] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:35] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:35] | ^ [00:01:35] newsrc.c:170:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:35] 170 | if (pmatch_full (name,pattern,'.')) [00:01:35] | ^~~~~~~ [00:01:35] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:35] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:35] | ^ [00:01:35] newsrc.c:343:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:01:35] newsrc.c:343:9: note: place parentheses around the assignment to silence this warning [00:01:35] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] newsrc.c:343:9: note: use '==' to turn this assignment into an equality comparison [00:01:35] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:01:35] | ^ [00:01:35] | == [00:01:35] newsrc.c:368:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] newsrc.c:368:13: note: place parentheses around the assignment to silence this warning [00:01:35] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] newsrc.c:368:13: note: use '==' to turn this assignment into an equality comparison [00:01:35] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:01:35] | ^ [00:01:35] | == [00:01:35] newsrc.c:384:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:35] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:01:35] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:35] newsrc.c:384:11: note: place parentheses around the assignment to silence this warning [00:01:35] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:01:35] | ^ [00:01:35] | ( ) [00:01:35] newsrc.c:384:11: note: use '==' to turn this assignment into an equality comparison [00:01:35] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:01:35] | ^ [00:01:35] | == [00:01:35] 8 warnings generated. [00:01:35] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` smanager.c [00:01:36] smanager.c:42:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:36] 42 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:01:36] | ^~~~~~~ [00:01:36] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:36] | ^ [00:01:36] smanager.c:42:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:36] 42 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:01:36] | ^~~~~~~ [00:01:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:36] | ^ [00:01:36] smanager.c:44:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:36] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:01:36] | ~~^~~~~~~~~~~~~~~~ [00:01:36] smanager.c:44:9: note: place parentheses around the assignment to silence this warning [00:01:36] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:01:36] | ^ [00:01:36] | ( ) [00:01:36] smanager.c:44:9: note: use '==' to turn this assignment into an equality comparison [00:01:36] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:01:36] | ^ [00:01:36] | == [00:01:36] smanager.c:46:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:36] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:36] smanager.c:46:13: note: place parentheses around the assignment to silence this warning [00:01:36] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | ( ) [00:01:36] smanager.c:46:13: note: use '==' to turn this assignment into an equality comparison [00:01:36] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | == [00:01:36] smanager.c:75:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:36] 75 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:01:36] | ^~~~~~~ [00:01:36] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:36] | ^ [00:01:36] smanager.c:75:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:36] 75 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:01:36] | ^~~~~~~ [00:01:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:36] | ^ [00:01:36] smanager.c:86:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:36] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:36] smanager.c:86:13: note: place parentheses around the assignment to silence this warning [00:01:36] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | ( ) [00:01:36] smanager.c:86:13: note: use '==' to turn this assignment into an equality comparison [00:01:36] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | == [00:01:36] smanager.c:116:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:36] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:01:36] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:36] smanager.c:116:11: note: place parentheses around the assignment to silence this warning [00:01:36] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:01:36] | ^ [00:01:36] | ( ) [00:01:36] smanager.c:116:11: note: use '==' to turn this assignment into an equality comparison [00:01:36] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:01:36] | ^ [00:01:36] | == [00:01:36] smanager.c:120:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:36] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:01:36] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:36] smanager.c:120:11: note: place parentheses around the assignment to silence this warning [00:01:36] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | ( ) [00:01:36] smanager.c:120:11: note: use '==' to turn this assignment into an equality comparison [00:01:36] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:01:36] | ^ [00:01:36] | == [00:01:36] 9 warnings generated. [00:01:36] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` utf8.c [00:01:43] utf8.c:380:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 380 | if (!compare_cstring (script,utf8_scvalid[i].name)) [00:01:43] | ^~~~~~ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:380:36: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 380 | if (!compare_cstring (script,utf8_scvalid[i].name)) [00:01:43] | ^~~~~~~~~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:397:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 397 | if (!compare_cstring (charset,utf8_csvalid[i].name)) [00:01:43] | ^~~~~~~ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:397:37: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 397 | if (!compare_cstring (charset,utf8_csvalid[i].name)) [00:01:43] | ^~~~~~~~~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:583:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 583 | short iso2022jp = !compare_cstring (charset,"ISO-2022-JP"); [00:01:43] | ^~~~~~~ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:583:47: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 583 | short iso2022jp = !compare_cstring (charset,"ISO-2022-JP"); [00:01:43] | ^~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:610:26: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 610 | !compare_cstring (dcs->name,"ISO-2022-JP"))) ? [00:01:43] | ^~~~~~~~~ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:610:36: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 610 | !compare_cstring (dcs->name,"ISO-2022-JP"))) ? [00:01:43] | ^~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:644:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 644 | return (currmapcs && !compare_cstring (charset,currmapcs->name)) ? currmap : [00:01:43] | ^~~~~~~ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:644:50: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 644 | return (currmapcs && !compare_cstring (charset,currmapcs->name)) ? currmap : [00:01:43] | ^~~~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:659:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:01:43] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:659:16: note: place parentheses around the assignment to silence this warning [00:01:43] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:659:16: note: use '==' to turn this assignment into an equality comparison [00:01:43] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:791:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:01:43] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:791:9: note: place parentheses around the assignment to silence this warning [00:01:43] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:791:9: note: use '==' to turn this assignment into an equality comparison [00:01:43] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:1320:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 1320 | if (!compare_cstring (s,"ISO-2022-JP")) s = "EUC-JP"; [00:01:43] | ^ [00:01:43] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:1320:29: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:43] 1320 | if (!compare_cstring (s,"ISO-2022-JP")) s = "EUC-JP"; [00:01:43] | ^~~~~~~~~~~~~ [00:01:43] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:43] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:43] | ^ [00:01:43] utf8.c:1322:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 1322 | if (cs = utf8_charset (s)) { [00:01:43] | ~~~^~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:1322:12: note: place parentheses around the assignment to silence this warning [00:01:43] 1322 | if (cs = utf8_charset (s)) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:1322:12: note: use '==' to turn this assignment into an equality comparison [00:01:43] 1322 | if (cs = utf8_charset (s)) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:2424:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:01:43] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:2424:11: note: place parentheses around the assignment to silence this warning [00:01:43] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:2424:11: note: use '==' to turn this assignment into an equality comparison [00:01:43] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:2447:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:01:43] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:2447:13: note: place parentheses around the assignment to silence this warning [00:01:43] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:2447:13: note: use '==' to turn this assignment into an equality comparison [00:01:43] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:2477:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:01:43] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:2477:13: note: place parentheses around the assignment to silence this warning [00:01:43] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:2477:13: note: use '==' to turn this assignment into an equality comparison [00:01:43] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:2542:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:01:43] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:43] utf8.c:2542:12: note: place parentheses around the assignment to silence this warning [00:01:43] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:2542:12: note: use '==' to turn this assignment into an equality comparison [00:01:43] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:01:43] | ^ [00:01:43] | == [00:01:43] utf8.c:2562:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:43] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:01:43] | ~~~^~~~ [00:01:43] utf8.c:2562:12: note: place parentheses around the assignment to silence this warning [00:01:43] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:01:43] | ^ [00:01:43] | ( ) [00:01:43] utf8.c:2562:12: note: use '==' to turn this assignment into an equality comparison [00:01:43] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:01:43] | ^ [00:01:43] | == [00:01:43] 20 warnings generated. [00:01:43] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` utf8aux.c [00:01:44] utf8aux.c:47:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:44] 47 | } while (st = st->next); [00:01:44] | ~~~^~~~~~~~~~ [00:01:44] utf8aux.c:47:15: note: place parentheses around the assignment to silence this warning [00:01:44] 47 | } while (st = st->next); [00:01:44] | ^ [00:01:44] | ( ) [00:01:44] utf8aux.c:47:15: note: use '==' to turn this assignment into an equality comparison [00:01:44] 47 | } while (st = st->next); [00:01:44] | ^ [00:01:44] | == [00:01:44] utf8aux.c:136:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:44] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:01:44] | ~~~^~~~~~~~~~~~~~~~~ [00:01:44] utf8aux.c:136:9: note: place parentheses around the assignment to silence this warning [00:01:44] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:01:44] | ^ [00:01:44] | ( ) [00:01:44] utf8aux.c:136:9: note: use '==' to turn this assignment into an equality comparison [00:01:44] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:01:44] | ^ [00:01:44] | == [00:01:44] utf8aux.c:241:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:44] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:01:44] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:44] utf8aux.c:241:19: note: place parentheses around the assignment to silence this warning [00:01:44] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:01:44] | ^ [00:01:44] | ( ) [00:01:44] utf8aux.c:241:19: note: use '==' to turn this assignment into an equality comparison [00:01:44] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:01:44] | ^ [00:01:44] | == [00:01:44] utf8aux.c:415:24: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:44] 415 | if (mail_utf7_valid (src)) return NIL; [00:01:44] | ^~~ [00:01:44] ./mail.h:1630:30: note: passing argument to parameter 'mailbox' here [00:01:44] 1630 | char *mail_utf7_valid (char *mailbox); [00:01:44] | ^ [00:01:44] utf8aux.c:420:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:44] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:01:44] | ^~~ [00:01:44] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:44] 105 | size_t strlen(const char *) __pure; [00:01:44] | ^ [00:01:44] utf8aux.c:420:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:44] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:01:44] | ^~~ [00:01:44] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:01:44] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:01:44] | ^ [00:01:44] utf8aux.c:420:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:44] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:01:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:44] 7 warnings generated. [00:01:44] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` siglocal.c [00:01:44] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` dummy.c [00:01:45] dummy.c:121:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 121 | else if (!compare_cstring (name,"INBOX")) return &dummydriver; [00:01:45] | ^~~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:121:37: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 121 | else if (!compare_cstring (name,"INBOX")) return &dummydriver; [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:159:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:01:45] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:45] dummy.c:159:13: note: place parentheses around the assignment to silence this warning [00:01:45] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:159:13: note: use '==' to turn this assignment into an equality comparison [00:01:45] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:167:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 167 | if (s = strpbrk (test,"%*")) { [00:01:45] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:01:45] dummy.c:167:11: note: place parentheses around the assignment to silence this warning [00:01:45] 167 | if (s = strpbrk (test,"%*")) { [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:167:11: note: use '==' to turn this assignment into an equality comparison [00:01:45] 167 | if (s = strpbrk (test,"%*")) { [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:173:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:01:45] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:45] dummy.c:173:11: note: place parentheses around the assignment to silence this warning [00:01:45] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:173:11: note: use '==' to turn this assignment into an equality comparison [00:01:45] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:182:32: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 182 | if (pmatch ("INBOX",ucase (test))) { [00:01:45] | ^~~~ [00:01:45] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^~~ [00:01:45] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:45] 82 | unsigned char *ucase (unsigned char *string); [00:01:45] | ^ [00:01:45] dummy.c:182:17: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 182 | if (pmatch ("INBOX",ucase (test))) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:221:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 221 | if (!compare_cstring (s,"INBOX") && [00:01:45] | ^ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:221:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 221 | if (!compare_cstring (s,"INBOX") && [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:222:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 222 | pmatch ("INBOX",ucase (strcpy (tmp,test)))) [00:01:45] | ^~~~~~~~~~~~~~~~~ [00:01:45] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^~~ [00:01:45] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:45] 82 | unsigned char *ucase (unsigned char *string); [00:01:45] | ^ [00:01:45] dummy.c:222:12: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 222 | pmatch ("INBOX",ucase (strcpy (tmp,test)))) [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:224:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 224 | else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:224:31: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 224 | else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:01:45] | ^~~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:227:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 227 | if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:227:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 227 | if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); [00:01:45] | ^~~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:231:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 231 | while (s = sm_read (tmpx,&sdb)); [00:01:45] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:01:45] dummy.c:231:12: note: place parentheses around the assignment to silence this warning [00:01:45] 231 | while (s = sm_read (tmpx,&sdb)); [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:231:12: note: use '==' to turn this assignment into an equality comparison [00:01:45] 231 | while (s = sm_read (tmpx,&sdb)); [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:280:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:01:45] | ~~~^~~~~~~~~~~~~~~ [00:01:45] dummy.c:280:10: note: place parentheses around the assignment to silence this warning [00:01:45] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:280:10: note: use '==' to turn this assignment into an equality comparison [00:01:45] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:288:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:288:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:288:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:288:68: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:292:64: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:01:45] | ~~^~~~~~~~~~~~~~ [00:01:45] dummy.c:292:64: note: place parentheses around the assignment to silence this warning [00:01:45] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:292:64: note: use '==' to turn this assignment into an equality comparison [00:01:45] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:302:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 302 | if ((pmatch_full (strcpy (path,tmp),pat,'/') || [00:01:45] | ^~~~~~~~~~~~~~~~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:302:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 302 | if ((pmatch_full (strcpy (path,tmp),pat,'/') || [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:303:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 303 | pmatch_full (strcat (path,"/"),pat,'/') || [00:01:45] | ^~~~~~~~~~~~~~~~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:303:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 303 | pmatch_full (strcat (path,"/"),pat,'/') || [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:304:15: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 304 | dmatch (path,pat,'/')) && [00:01:45] | ^~~~ [00:01:45] ./env.h:30:29: note: passing argument to parameter 's' here [00:01:45] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:304:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 304 | dmatch (path,pat,'/')) && [00:01:45] | ^~~ [00:01:45] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:01:45] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:313:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 313 | if (!pmatch (tmp,"INBOX")) { [00:01:45] | ^~~ [00:01:45] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:313:23: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 313 | if (!pmatch (tmp,"INBOX")) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:45] 78 | pmatch_full (s,pat,NIL) [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:314:25: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 314 | if (pmatch_full (tmp,pat,'/')) { [00:01:45] | ^~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:314:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 314 | if (pmatch_full (tmp,pat,'/')) { [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:319:30: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 319 | else if (pmatch_full (path,pat,'/') && [00:01:45] | ^~~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:319:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 319 | else if (pmatch_full (path,pat,'/') && [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:323:18: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 323 | if (dmatch (path,pat,'/') && [00:01:45] | ^~~~ [00:01:45] ./env.h:30:29: note: passing argument to parameter 's' here [00:01:45] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:323:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 323 | if (dmatch (path,pat,'/') && [00:01:45] | ^~~ [00:01:45] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:01:45] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:329:23: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:329:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:45] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:45] | ^ [00:01:45] dummy.c:329:56: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:01:45] | ^~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:329:60: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:456:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 456 | if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:456:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 456 | if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:483:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:45] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:01:45] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:45] dummy.c:483:9: note: place parentheses around the assignment to silence this warning [00:01:45] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:01:45] | ^ [00:01:45] | ( ) [00:01:45] dummy.c:483:9: note: use '==' to turn this assignment into an equality comparison [00:01:45] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:01:45] | ^ [00:01:45] | == [00:01:45] dummy.c:566:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 566 | if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) [00:01:45] | ^~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:566:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 566 | if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:595:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 595 | if (compare_cstring (stream->mailbox,"INBOX")) [00:01:45] | ^~~~~~~~~~~~~~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:595:42: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 595 | if (compare_cstring (stream->mailbox,"INBOX")) [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:702:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 702 | if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:01:45] | ^~~~~~~~ [00:01:45] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:45] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:45] | ^ [00:01:45] dummy.c:703:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 703 | mail_sequence (stream,sequence)) fatal ("Impossible dummy_copy"); [00:01:45] | ^~~~~~~~ [00:01:45] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:45] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:45] | ^ [00:01:45] dummy.c:724:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 724 | if (!compare_cstring (mailbox,"INBOX")) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:724:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:45] 724 | if (!compare_cstring (mailbox,"INBOX")) { [00:01:45] | ^~~~~~~ [00:01:45] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:45] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:45] | ^ [00:01:45] dummy.c:726:23: warning: unsequenced modification and access to 'ts' [-Wunsequenced] [00:01:45] 726 | if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX")) [00:01:45] | ^ ~~ [00:01:45] dummy.c:801:28: warning: expression result unused [-Wunused-value] [00:01:45] 801 | for (i = 0, s = tmp; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:01:45] | ^~~~ [00:01:45] 53 warnings generated. [00:01:45] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` pseudo.c [00:01:46] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` netmsg.c [00:01:47] netmsg.c:63:45: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [00:01:47] 63 | sprintf (tmp,".%lx.%lx",(unsigned long) time (0),(unsigned long)getpid ()); [00:01:47] | ^ [00:01:47] netmsg.c:64:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:47] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:01:47] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:47] netmsg.c:64:11: note: place parentheses around the assignment to silence this warning [00:01:47] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:01:47] | ^ [00:01:47] | ( ) [00:01:47] netmsg.c:64:11: note: use '==' to turn this assignment into an equality comparison [00:01:47] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:01:47] | ^ [00:01:47] | == [00:01:47] netmsg.c:73:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:47] 73 | while (s = net_getline (stream)) { [00:01:47] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:47] netmsg.c:73:12: note: place parentheses around the assignment to silence this warning [00:01:47] 73 | while (s = net_getline (stream)) { [00:01:47] | ^ [00:01:47] | ( ) [00:01:47] netmsg.c:73:12: note: use '==' to turn this assignment into an equality comparison [00:01:47] 73 | while (s = net_getline (stream)) { [00:01:47] | ^ [00:01:47] | == [00:01:47] 3 warnings generated. [00:01:47] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` flstring.c [00:01:48] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` fdstring.c [00:01:48] fdstring.c:94:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:48] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:01:48] | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:48] fdstring.c:94:18: note: place parentheses around the assignment to silence this warning [00:01:48] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:01:48] | ^ [00:01:48] | ( ) [00:01:48] fdstring.c:94:18: note: use '==' to turn this assignment into an equality comparison [00:01:48] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:01:48] | ^ [00:01:48] | == [00:01:48] 1 warning generated. [00:01:48] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` rfc822.c [00:01:50] rfc822.c:153:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 153 | if (t = d = strchr (tmp,':')) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:153:11: note: place parentheses around the assignment to silence this warning [00:01:50] 153 | if (t = d = strchr (tmp,':')) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:153:11: note: use '==' to turn this assignment into an equality comparison [00:01:50] 153 | if (t = d = strchr (tmp,':')) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:157:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 157 | ucase (tmp); /* coerce to uppercase */ [00:01:50] | ^~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:196:53: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 196 | if (!env->date && !strcmp (tmp+1,"ATE")) env->date = cpystr (d); [00:01:50] | ^ ~~~~~~~~~~ [00:01:50] rfc822.c:202:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ~~^~~~~~ [00:01:50] rfc822.c:202:13: note: place parentheses around the assignment to silence this warning [00:01:50] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:202:13: note: use '==' to turn this assignment into an equality comparison [00:01:50] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:216:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:216:10: note: place parentheses around the assignment to silence this warning [00:01:50] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:216:10: note: use '==' to turn this assignment into an equality comparison [00:01:50] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:227:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ~~^~~~~~ [00:01:50] rfc822.c:227:13: note: place parentheses around the assignment to silence this warning [00:01:50] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:227:13: note: use '==' to turn this assignment into an equality comparison [00:01:50] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:388:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:01:50] | ~~^~~~~~~~~~~~~ [00:01:50] rfc822.c:388:13: note: place parentheses around the assignment to silence this warning [00:01:50] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:388:13: note: use '==' to turn this assignment into an equality comparison [00:01:50] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:398:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:01:50] | ~~^~~~~~~ [00:01:50] rfc822.c:398:8: note: place parentheses around the assignment to silence this warning [00:01:50] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:398:8: note: use '==' to turn this assignment into an equality comparison [00:01:50] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:454:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 454 | if (i = part->body.mime.text.size) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:454:13: note: place parentheses around the assignment to silence this warning [00:01:50] 454 | if (i = part->body.mime.text.size) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:454:13: note: use '==' to turn this assignment into an equality comparison [00:01:50] 454 | if (i = part->body.mime.text.size) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:497:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 497 | rfc822_parse_content_header (&part->body,ucase (s1+8),s); [00:01:50] | ^~~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:497:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 497 | rfc822_parse_content_header (&part->body,ucase (s1+8),s); [00:01:50] | ^~~~~~~~~~~~ [00:01:50] ./rfc822.h:64:52: note: passing argument to parameter 'name' here [00:01:50] 64 | void rfc822_parse_content_header (BODY *body,char *name,char *s); [00:01:50] | ^ [00:01:50] rfc822.c:555:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:555:9: note: place parentheses around the assignment to silence this warning [00:01:50] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:555:9: note: use '==' to turn this assignment into an equality comparison [00:01:50] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:568:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 568 | body->disposition.type = ucase (cpystr (s)); [00:01:50] | ^~~~~~~~~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:568:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 568 | body->disposition.type = ucase (cpystr (s)); [00:01:50] | ^ ~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:582:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 582 | stl->text.data = (unsigned char *) ucase (cpystr (s)); [00:01:50] | ^~~~~~~~~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:609:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 609 | compare_cstring (s,body_types[i]); i++); [00:01:50] | ^ [00:01:50] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:50] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:50] | ^ [00:01:50] rfc822.c:609:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 609 | compare_cstring (s,body_types[i]); i++); [00:01:50] | ^~~~~~~~~~~~~ [00:01:50] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:50] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:50] | ^ [00:01:50] rfc822.c:620:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 620 | body_types[body->type] = ucase (s); [00:01:50] | ^ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:620:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 620 | body_types[body->type] = ucase (s); [00:01:50] | ^ ~~~~~~~~~ [00:01:50] rfc822.c:632:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 632 | if (s) body->subtype = ucase (rfc822_cpy (s)); [00:01:50] | ^~~~~~~~~~~~~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:632:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 632 | if (s) body->subtype = ucase (rfc822_cpy (s)); [00:01:50] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:650:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 650 | compare_cstring (s,body_encodings[i]); i++); [00:01:50] | ^ [00:01:50] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:50] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:50] | ^ [00:01:50] rfc822.c:650:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 650 | compare_cstring (s,body_encodings[i]); i++); [00:01:50] | ^~~~~~~~~~~~~~~~~ [00:01:50] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:50] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:50] | ^ [00:01:50] rfc822.c:661:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 661 | body_encodings[body->encoding] = ucase (s); [00:01:50] | ^ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:661:35: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 661 | body_encodings[body->encoding] = ucase (s); [00:01:50] | ^ ~~~~~~~~~ [00:01:50] rfc822.c:694:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 694 | param->attribute = ucase (cpystr (s)); [00:01:50] | ^~~~~~~~~~ [00:01:50] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:50] 82 | unsigned char *ucase (unsigned char *string); [00:01:50] | ^ [00:01:50] rfc822.c:694:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 694 | param->attribute = ucase (cpystr (s)); [00:01:50] | ^ ~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:745:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:01:50] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:745:18: note: place parentheses around the assignment to silence this warning [00:01:50] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:745:18: note: use '==' to turn this assignment into an equality comparison [00:01:50] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:799:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:01:50] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:799:11: note: place parentheses around the assignment to silence this warning [00:01:50] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:799:11: note: use '==' to turn this assignment into an equality comparison [00:01:50] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:801:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:01:50] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:801:16: note: place parentheses around the assignment to silence this warning [00:01:50] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:801:16: note: use '==' to turn this assignment into an equality comparison [00:01:50] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:847:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:01:50] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:847:13: note: place parentheses around the assignment to silence this warning [00:01:50] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:847:13: note: use '==' to turn this assignment into an equality comparison [00:01:50] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:906:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 906 | else if (end = rfc822_parse_phrase (s)) { [00:01:50] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:906:16: note: place parentheses around the assignment to silence this warning [00:01:50] 906 | else if (end = rfc822_parse_phrase (s)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:906:16: note: use '==' to turn this assignment into an equality comparison [00:01:50] 906 | else if (end = rfc822_parse_phrase (s)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1035:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1035:11: note: place parentheses around the assignment to silence this warning [00:01:50] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1035:11: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1103:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1103:14: note: place parentheses around the assignment to silence this warning [00:01:50] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1103:14: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1113:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:01:50] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1113:18: note: place parentheses around the assignment to silence this warning [00:01:50] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1113:18: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1180:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1180 | while (st = strchr (st,I2C_ESC)) [00:01:50] | ~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1180:14: note: place parentheses around the assignment to silence this warning [00:01:50] 1180 | while (st = strchr (st,I2C_ESC)) [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1180:14: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1180 | while (st = strchr (st,I2C_ESC)) [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1379:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1379:11: note: place parentheses around the assignment to silence this warning [00:01:50] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1379:11: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1470:45: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:50] 1470 | rfc822_output_header_line (buf,"Date",i,env->date) && [00:01:50] | ^~~~~~~~~ [00:01:50] ./rfc822.h:89:11: note: passing argument to parameter 'text' here [00:01:50] 89 | char *text); [00:01:50] | ^ [00:01:50] rfc822.c:1627:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1627:14: note: place parentheses around the assignment to silence this warning [00:01:50] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1627:14: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1745:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1745 | while (part = part->next); /* until done */ [00:01:50] | ~~~~~^~~~~~~~~~~~ [00:01:50] rfc822.c:1745:17: note: place parentheses around the assignment to silence this warning [00:01:50] 1745 | while (part = part->next); /* until done */ [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1745:17: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1745 | while (part = part->next); /* until done */ [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1813:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1813 | while (part = part->next); /* until done */ [00:01:50] | ~~~~~^~~~~~~~~~~~ [00:01:50] rfc822.c:1813:17: note: place parentheses around the assignment to silence this warning [00:01:50] 1813 | while (part = part->next); /* until done */ [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1813:17: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1813 | while (part = part->next); /* until done */ [00:01:50] | ^ [00:01:50] | == [00:01:50] rfc822.c:1969:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:50] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:01:50] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:50] rfc822.c:1969:8: note: place parentheses around the assignment to silence this warning [00:01:50] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:01:50] | ^ [00:01:50] | ( ) [00:01:50] rfc822.c:1969:8: note: use '==' to turn this assignment into an equality comparison [00:01:50] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:01:50] | ^ [00:01:50] | == [00:01:50] 42 warnings generated. [00:01:50] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` nntp.c [00:01:52] nntp.c:351:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:351:14: note: place parentheses around the assignment to silence this warning [00:01:52] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:351:14: note: use '==' to turn this assignment into an equality comparison [00:01:52] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:356:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:01:52] | ~~^~~~~~~~~~~~~~~~ [00:01:52] nntp.c:356:13: note: place parentheses around the assignment to silence this warning [00:01:52] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:356:13: note: use '==' to turn this assignment into an equality comparison [00:01:52] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:360:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 360 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:01:52] | ^~~~ [00:01:52] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:360:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 360 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:01:52] | ^~~~~~~ [00:01:52] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:363:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 363 | if (pmatch_full (name,pattern,'.')) [00:01:52] | ^~~~ [00:01:52] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:363:26: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 363 | if (pmatch_full (name,pattern,'.')) [00:01:52] | ^~~~~~~ [00:01:52] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:395:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:395:9: note: place parentheses around the assignment to silence this warning [00:01:52] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:395:9: note: use '==' to turn this assignment into an equality comparison [00:01:52] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:395:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:01:52] | ^ [00:01:52] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:52] 78 | pmatch_full (s,pat,NIL) [00:01:52] | ^ [00:01:52] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:395:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:01:52] | ^~~ [00:01:52] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:52] 78 | pmatch_full (s,pat,NIL) [00:01:52] | ^~~ [00:01:52] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:52] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:52] | ^ [00:01:52] nntp.c:398:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 398 | while (s = sm_read (tmp,&sdb)); [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:398:12: note: place parentheses around the assignment to silence this warning [00:01:52] 398 | while (s = sm_read (tmp,&sdb)); [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:398:12: note: use '==' to turn this assignment into an equality comparison [00:01:52] 398 | while (s = sm_read (tmp,&sdb)); [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:429:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:01:52] | ~~^~~~~~~~~~~~~~~~ [00:01:52] nntp.c:429:25: note: place parentheses around the assignment to silence this warning [00:01:52] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:429:25: note: use '==' to turn this assignment into an equality comparison [00:01:52] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:555:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 555 | else if (state = newsrc_state (stream,name)) { [00:01:52] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:555:20: note: place parentheses around the assignment to silence this warning [00:01:52] 555 | else if (state = newsrc_state (stream,name)) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:555:20: note: use '==' to turn this assignment into an equality comparison [00:01:52] 555 | else if (state = newsrc_state (stream,name)) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:565:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 565 | newsrc_check_uid (state,k,&status.recent,&status.unseen); [00:01:52] | ^~~~~ [00:01:52] ./newsrc.h:42:39: note: passing argument to parameter 'state' here [00:01:52] 42 | void newsrc_check_uid (unsigned char *state,unsigned long uid, [00:01:52] | ^ [00:01:52] nntp.c:574:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 574 | newsrc_check_uid (state,i++,&status.recent,&status.unseen); [00:01:52] | ^~~~~ [00:01:52] ./newsrc.h:42:39: note: passing argument to parameter 'state' here [00:01:52] 42 | void newsrc_check_uid (unsigned char *state,unsigned long uid, [00:01:52] | ^ [00:01:52] nntp.c:733:12: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 733 | lcase (strcpy (s,(long) mail_parameters (NIL,GET_NEWSRCCANONHOST,NIL) ? [00:01:52] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 734 | net_host (nstream->netstream) : mb.host)); [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:01:52] 83 | unsigned char *lcase (unsigned char *string); [00:01:52] | ^ [00:01:52] nntp.c:852:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 852 | mail_uid_sequence (stream,sequence) : [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:52] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:52] | ^ [00:01:52] nntp.c:853:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 853 | mail_sequence (stream,sequence))) [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:52] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:52] | ^ [00:01:52] nntp.c:895:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 895 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:52] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:52] | ^ [00:01:52] nntp.c:895:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 895 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:52] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:52] | ^ [00:01:52] nntp.c:928:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 928 | for (t = v = s; c = *v++;) [00:01:52] | ~~^~~~~~ [00:01:52] nntp.c:928:22: note: place parentheses around the assignment to silence this warning [00:01:52] 928 | for (t = v = s; c = *v++;) [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:928:22: note: use '==' to turn this assignment into an equality comparison [00:01:52] 928 | for (t = v = s; c = *v++;) [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:998:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 998 | while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ [00:01:52] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:998:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 998 | while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ [00:01:52] | ^ [00:01:52] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:52] 90 | int strcmp(const char *, const char *) __pure; [00:01:52] | ^ [00:01:52] nntp.c:1038:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1038 | if (t = strchr (ov->subject,'\t')) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1038:9: note: place parentheses around the assignment to silence this warning [00:01:52] 1038 | if (t = strchr (ov->subject,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1038:9: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1038 | if (t = strchr (ov->subject,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1041:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1041 | if (ov->date = strchr (t,'\t')) { [00:01:52] | ~~~~~~~~~^~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1041:18: note: place parentheses around the assignment to silence this warning [00:01:52] 1041 | if (ov->date = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1041:18: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1041 | if (ov->date = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1044:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1044 | if (!elt->day) mail_parse_date (elt,ov->date); [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:52] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:52] | ^ [00:01:52] nntp.c:1048:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:01:52] | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1048:26: note: place parentheses around the assignment to silence this warning [00:01:52] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1048:26: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1052:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:01:52] | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1052:21: note: place parentheses around the assignment to silence this warning [00:01:52] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1052:21: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1056:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1056 | if (t = strchr (ov->references,'\t')) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1056:10: note: place parentheses around the assignment to silence this warning [00:01:52] 1056 | if (t = strchr (ov->references,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1056:10: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1056 | if (t = strchr (ov->references,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1061:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1061 | if (t = strchr (t,'\t')) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1061:12: note: place parentheses around the assignment to silence this warning [00:01:52] 1061 | if (t = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1061:12: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1061 | if (t = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1065:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:01:52] | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1065:30: note: place parentheses around the assignment to silence this warning [00:01:52] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1065:30: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1098:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1098:13: note: place parentheses around the assignment to silence this warning [00:01:52] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1098:13: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1150:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:01:52] | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1151 | &LOCAL->txtsize,NIL)) break; [00:01:52] | ~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1150:22: note: place parentheses around the assignment to silence this warning [00:01:52] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:01:52] | ^ [00:01:52] | ( [00:01:52] 1151 | &LOCAL->txtsize,NIL)) break; [00:01:52] | [00:01:52] | ) [00:01:52] nntp.c:1150:22: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1215:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1215 | if (msg = utf8_badcharset (charset)) { [00:01:52] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1215:11: note: place parentheses around the assignment to silence this warning [00:01:52] 1215 | if (msg = utf8_badcharset (charset)) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1215:11: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1215 | if (msg = utf8_badcharset (charset)) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1260:39: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [00:01:52] 1260 | unsigned long now = (unsigned long) time (0); [00:01:52] | ^ [00:01:52] nntp.c:1268:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:01:52] | ~~~~^~~~~~~~~~~~ [00:01:52] nntp.c:1268:13: note: place parentheses around the assignment to silence this warning [00:01:52] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1268:13: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1276:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:01:52] | ~~~~^~~~~~~~~~ [00:01:52] nntp.c:1276:13: note: place parentheses around the assignment to silence this warning [00:01:52] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1276:13: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1313:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1313 | (!mail_parse_date (&delt,ov->date) || [00:01:52] | ^~~~~~~~ [00:01:52] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:52] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:52] | ^ [00:01:52] nntp.c:1512:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:01:52] | ~~^~~~~~ [00:01:52] nntp.c:1512:25: note: place parentheses around the assignment to silence this warning [00:01:52] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1512:25: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1521:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1521 | if (t = strchr (v,'\t')) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1521:8: note: place parentheses around the assignment to silence this warning [00:01:52] 1521 | if (t = strchr (v,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1521:8: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1521 | if (t = strchr (v,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1523:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:01:52] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1523:12: note: place parentheses around the assignment to silence this warning [00:01:52] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1523:12: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1528:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1528 | if (v = strchr (t,'\t')) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1528:10: note: place parentheses around the assignment to silence this warning [00:01:52] 1528 | if (v = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1528:10: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1528 | if (v = strchr (t,'\t')) { [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1530:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1530 | if (mail_parse_date (&telt,t)) r->date = mail_longdate (&telt); [00:01:52] | ^ [00:01:52] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:52] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:52] | ^ [00:01:52] nntp.c:1678:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1678 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1679 | net_open (&mb,dv,port, [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1680 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1681 | "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1678:21: note: place parentheses around the assignment to silence this warning [00:01:52] 1678 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ^ [00:01:52] | ( [00:01:52] 1679 | net_open (&mb,dv,port, [00:01:52] 1680 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:01:52] 1681 | "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { [00:01:52] | [00:01:52] | ) [00:01:52] nntp.c:1678:21: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1678 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1719:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1719 | if (stream->netstream->stream = [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ [00:01:52] 1720 | (*stls) (stream->netstream->stream,mb.host, [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1721 | (mb.tlssslv23 ? NIL : NET_TLSCLIENT) | [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 1722 | (mb.novalidate ? NET_NOVALIDATECERT:NIL))) [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1719:35: note: place parentheses around the assignment to silence this warning [00:01:52] 1719 | if (stream->netstream->stream = [00:01:52] | ^ [00:01:52] | ( [00:01:52] 1720 | (*stls) (stream->netstream->stream,mb.host, [00:01:52] 1721 | (mb.tlssslv23 ? NIL : NET_TLSCLIENT) | [00:01:52] 1722 | (mb.novalidate ? NET_NOVALIDATECERT:NIL))) [00:01:52] | [00:01:52] | ) [00:01:52] nntp.c:1719:35: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1719 | if (stream->netstream->stream = [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1816:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:52] | ~~~~~^~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1816:14: note: place parentheses around the assignment to silence this warning [00:01:52] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1816:14: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:1817:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1817 | if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1817:29: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1817 | if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; [00:01:52] | ^~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1818:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1818 | else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1818:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1818 | else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1819:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1819 | else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1819:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1819 | else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; [00:01:52] | ^~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1820:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1820 | else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1820:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1820 | else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; [00:01:52] | ^~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1821:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1821 | else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1821:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1821 | else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1822:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1822 | else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1822:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1822 | else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; [00:01:52] | ^~~~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1824:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1824 | else if (!compare_cstring (t,"AUTHINFO") && args) { [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1824:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1824 | else if (!compare_cstring (t,"AUTHINFO") && args) { [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1827:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1827 | if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; [00:01:52] | ^~~~ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1827:29: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1827 | if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] nntp.c:1915:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:01:52] | ^~~~~~~~~ [00:01:52] /usr/include/string.h:136:26: note: passing argument to parameter here [00:01:52] 136 | char *strstr(const char *, const char *) __pure; [00:01:52] | ^ [00:01:52] nntp.c:1915:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:1915:9: note: place parentheses around the assignment to silence this warning [00:01:52] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:1915:9: note: use '==' to turn this assignment into an equality comparison [00:01:52] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:01:52] | ^ [00:01:52] | == [00:01:52] nntp.c:2213:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 2213 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] nntp.c:2213:12: note: place parentheses around the assignment to silence this warning [00:01:52] 2213 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] nntp.c:2213:12: note: use '==' to turn this assignment into an equality comparison [00:01:52] 2213 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ^ [00:01:52] | == [00:01:52] 64 warnings generated. [00:01:52] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` smtp.c [00:01:52] smtp.c:162:34: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 162 | else if (!compare_cstring (mb.service,"submit")) { [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:162:45: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 162 | else if (!compare_cstring (mb.service,"submit")) { [00:01:52] | ^~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:168:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 168 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 169 | net_open (&mb,dv,port, [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 170 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] 171 | "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { [00:01:52] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] smtp.c:168:21: note: place parentheses around the assignment to silence this warning [00:01:52] 168 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ^ [00:01:52] | ( [00:01:52] 169 | net_open (&mb,dv,port, [00:01:52] 170 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:01:52] 171 | "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { [00:01:52] | [00:01:52] | ) [00:01:52] smtp.c:168:21: note: use '==' to turn this assignment into an equality comparison [00:01:52] 168 | if (netstream = /* try to open ordinary connection */ [00:01:52] | ^ [00:01:52] | == [00:01:52] smtp.c:180:23: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 180 | s = compare_cstring ("localhost",mb.host) ? [00:01:52] | ^~~~~~~~~~~ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:180:35: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 180 | s = compare_cstring ("localhost",mb.host) ? [00:01:52] | ^~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:693:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 693 | if (!compare_cstring (s,"SIZE")) { [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:693:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 693 | if (!compare_cstring (s,"SIZE")) { [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:697:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 697 | else if (!compare_cstring (s,"DELIVERBY")) { [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:697:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 697 | else if (!compare_cstring (s,"DELIVERBY")) { [00:01:52] | ^~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:701:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 701 | else if (!compare_cstring (s,"ATRN")) { [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:701:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 701 | else if (!compare_cstring (s,"ATRN")) { [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:705:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 705 | else if (!compare_cstring (s,"AUTH")) [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:705:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 705 | else if (!compare_cstring (s,"AUTH")) [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:711:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 711 | else if (!compare_cstring (s,"SIZE")) ESMTP.size.ok = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:711:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 711 | else if (!compare_cstring (s,"SIZE")) ESMTP.size.ok = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:712:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 712 | else if (!compare_cstring (s,"8BITMIME")) ESMTP.eightbit.ok = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:712:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 712 | else if (!compare_cstring (s,"8BITMIME")) ESMTP.eightbit.ok = T; [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:713:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 713 | else if (!compare_cstring (s,"DSN")) ESMTP.dsn.ok = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:713:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 713 | else if (!compare_cstring (s,"DSN")) ESMTP.dsn.ok = T; [00:01:52] | ^~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:714:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 714 | else if (!compare_cstring (s,"ATRN")) ESMTP.atrn.ok = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:714:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 714 | else if (!compare_cstring (s,"ATRN")) ESMTP.atrn.ok = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:715:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 715 | else if (!compare_cstring (s,"SEND")) ESMTP.service.send = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:715:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 715 | else if (!compare_cstring (s,"SEND")) ESMTP.service.send = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:716:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 716 | else if (!compare_cstring (s,"SOML")) ESMTP.service.soml = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:716:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 716 | else if (!compare_cstring (s,"SOML")) ESMTP.service.soml = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:717:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 717 | else if (!compare_cstring (s,"SAML")) ESMTP.service.saml = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:717:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 717 | else if (!compare_cstring (s,"SAML")) ESMTP.service.saml = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:718:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 718 | else if (!compare_cstring (s,"EXPN")) ESMTP.service.expn = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:718:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 718 | else if (!compare_cstring (s,"EXPN")) ESMTP.service.expn = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:719:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 719 | else if (!compare_cstring (s,"HELP")) ESMTP.service.help = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:719:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 719 | else if (!compare_cstring (s,"HELP")) ESMTP.service.help = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:720:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 720 | else if (!compare_cstring (s,"TURN")) ESMTP.service.turn = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:720:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 720 | else if (!compare_cstring (s,"TURN")) ESMTP.service.turn = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:721:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 721 | else if (!compare_cstring (s,"ETRN")) ESMTP.service.etrn = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:721:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 721 | else if (!compare_cstring (s,"ETRN")) ESMTP.service.etrn = T; [00:01:52] | ^~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:722:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 722 | else if (!compare_cstring (s,"STARTTLS")) ESMTP.service.starttls = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:722:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 722 | else if (!compare_cstring (s,"STARTTLS")) ESMTP.service.starttls = T; [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:723:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 723 | else if (!compare_cstring (s,"RELAY")) ESMTP.service.relay = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:723:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 723 | else if (!compare_cstring (s,"RELAY")) ESMTP.service.relay = T; [00:01:52] | ^~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:724:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 724 | else if (!compare_cstring (s,"PIPELINING")) ESMTP.service.pipe = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:724:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 724 | else if (!compare_cstring (s,"PIPELINING")) ESMTP.service.pipe = T; [00:01:52] | ^~~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:725:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 725 | else if (!compare_cstring (s,"ENHANCEDSTATUSCODES")) [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:725:34: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 725 | else if (!compare_cstring (s,"ENHANCEDSTATUSCODES")) [00:01:52] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:727:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 727 | else if (!compare_cstring (s,"BINARYMIME")) ESMTP.service.bmime = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:727:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 727 | else if (!compare_cstring (s,"BINARYMIME")) ESMTP.service.bmime = T; [00:01:52] | ^~~~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:728:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 728 | else if (!compare_cstring (s,"CHUNKING")) ESMTP.service.chunk = T; [00:01:52] | ^ [00:01:52] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:728:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:52] 728 | else if (!compare_cstring (s,"CHUNKING")) ESMTP.service.chunk = T; [00:01:52] | ^~~~~~~~~~ [00:01:52] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:52] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:52] | ^ [00:01:52] smtp.c:786:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:52] 786 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:52] smtp.c:786:12: note: place parentheses around the assignment to silence this warning [00:01:52] 786 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ^ [00:01:52] | ( ) [00:01:52] smtp.c:786:12: note: use '==' to turn this assignment into an equality comparison [00:01:52] 786 | while (t = strstr (s,"\015\012.")) { [00:01:52] | ^ [00:01:52] | == [00:01:52] 48 warnings generated. [00:01:52] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` imap4r1.c [00:01:56] imap4r1.c:503:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:503:9: note: place parentheses around the assignment to silence this warning [00:01:56] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:503:9: note: use '==' to turn this assignment into an equality comparison [00:01:56] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:503:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:01:56] | ^ [00:01:56] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:56] 78 | pmatch_full (s,pat,NIL) [00:01:56] | ^ [00:01:56] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:56] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:56] | ^ [00:01:56] imap4r1.c:503:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:01:56] | ^~~ [00:01:56] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:56] 78 | pmatch_full (s,pat,NIL) [00:01:56] | ^~~ [00:01:56] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:56] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:56] | ^ [00:01:56] imap4r1.c:506:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 506 | while (s = sm_read (tmp,&sdb)); [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:506:12: note: place parentheses around the assignment to silence this warning [00:01:56] 506 | while (s = sm_read (tmp,&sdb)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:506:12: note: use '==' to turn this assignment into an equality comparison [00:01:56] 506 | while (s = sm_read (tmp,&sdb)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:563:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 563 | if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:563:33: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 563 | if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; [00:01:56] | ^~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:565:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 565 | else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:565:38: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 565 | else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; [00:01:56] | ^~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:577:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 577 | strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:578:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 578 | !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:701:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 701 | mm_log (reply->text,ret ? NIL : ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:848:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:848:20: note: place parentheses around the assignment to silence this warning [00:01:56] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:848:20: note: use '==' to turn this assignment into an equality comparison [00:01:56] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:869:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 869 | if (!reply || strcmp (reply->tag,"*") || [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:870:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 870 | (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:870:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 870 | (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:871:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 871 | if (reply) mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:876:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 876 | if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:984:36: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 984 | stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:984:47: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 984 | stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:994:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 994 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1040:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1040 | !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:1044:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1044 | if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:1044:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1044 | if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:1080:37: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1080 | if (compare_cstring (reply->tag,tag)) { [00:01:56] | ^~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:1082:70: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1082 | while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) [00:01:56] | ^~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:1097:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1097 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1147:39: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1147 | else if (compare_cstring (reply->tag,tag)) [00:01:56] | ^~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:1148:67: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1148 | while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) [00:01:56] | ^~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:1157:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1157 | lsterr = cpystr (reply->text); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:01:56] 84 | char *cpystr (const char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:1209:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1209 | mm_log (reply->text,WARN); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1239:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1239 | !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:1244:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1244 | strlen (reply->text),len))) { [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:56] 105 | size_t strlen(const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:1301:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1301 | mm_log (reply->text,WARN); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1316:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:1316:13: note: place parentheses around the assignment to silence this warning [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:1316:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1316:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ~~^~~~~ [00:01:56] imap4r1.c:1316:45: note: place parentheses around the assignment to silence this warning [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:1316:45: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1341:40: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1341 | if (!imap_OK (stream,reply)) mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1362:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1362 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1415:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1415 | ov.date = env->date; [00:01:56] | ^ ~~~~~~~~~ [00:01:56] imap4r1.c:1463:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1463 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1498:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 1499 | min (set->last,stream->nmsgs)) { [00:01:56] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:1498:10: note: place parentheses around the assignment to silence this warning [00:01:56] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:01:56] | ^ [00:01:56] | ( [00:01:56] 1499 | min (set->last,stream->nmsgs)) { [00:01:56] | [00:01:56] | ) [00:01:56] imap4r1.c:1498:10: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1521:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1521 | if (k = (k > i) ? k - i : 0) [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:1521:9: note: place parentheses around the assignment to silence this warning [00:01:56] 1521 | if (k = (k > i) ? k - i : 0) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:1521:9: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1521 | if (k = (k > i) ? k - i : 0) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1590:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1590 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1592:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1592 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1699:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1699 | else if (t = strstr (section,".HEADER")) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:1699:16: note: place parentheses around the assignment to silence this warning [00:01:56] 1699 | else if (t = strstr (section,".HEADER")) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:1699:16: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1699 | else if (t = strstr (section,".HEADER")) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1822:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1822 | mm_log (reply->text,WARN); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1832:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1832 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1841:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1841 | mm_log (reply->text,WARN); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1845:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1845 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1883:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:1883:11: note: place parentheses around the assignment to silence this warning [00:01:56] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:1883:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:1898:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1898 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1934:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1934 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:1975:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 1975 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2043:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2043 | !strcmp (reply->key,"BAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2047:50: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:01:56] | ~~^~~~~~~~~~~~ [00:01:56] imap4r1.c:2047:50: note: place parentheses around the assignment to silence this warning [00:01:56] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2047:50: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2062:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2062 | if (!strcmp (reply->key,"BAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2068:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2068 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2104:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2104 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2167:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2167 | if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2174:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2174 | if (!strcmp (reply->key,"BAD")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2183:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2183 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2270:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2270 | if (!compare_cstring (thr->name,type)) [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2270:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2270 | if (!compare_cstring (thr->name,type)) [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2330:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2330 | if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2337:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2337 | if (!strcmp (reply->key,"BAD")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:2345:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2345 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2369:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2369 | mm_log (reply->text,imap_OK (stream,reply) ? (long) NIL : ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2394:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2394 | else if (mail_sequence (stream,sequence)) { [00:01:56] | ^~~~~~~~ [00:01:56] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:56] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:56] | ^ [00:01:56] imap4r1.c:2422:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2422 | if (reply) mm_log (reply->text,ret ? (long) NIL : ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2460:65: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2460 | else if (ir && pc && LOCAL->referral && mail_sequence (stream,sequence) && [00:01:56] | ^~~~~~~~ [00:01:56] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:56] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:56] | ^ [00:01:56] imap4r1.c:2464:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2464 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2517:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2517 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2580:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2580 | mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2610:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2610 | if (!mail_parse_date (&elt,date)) { [00:01:56] | ^~~~ [00:01:56] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:56] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:2614:44: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2614 | LOCAL->reply.tag = LOCAL->reply.line = cpystr ("*"); [00:01:56] | ^ ~~~~~~~~~~~~ [00:01:56] imap4r1.c:2615:24: warning: assigning to 'unsigned char *' from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2615 | LOCAL->reply.key = "BAD"; [00:01:56] | ^ ~~~~~ [00:01:56] imap4r1.c:2616:25: warning: assigning to 'unsigned char *' from 'char[19]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2616 | LOCAL->reply.text = "Bad date in append"; [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2649:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:01:56] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2649:15: note: place parentheses around the assignment to silence this warning [00:01:56] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2649:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2704:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2704:13: note: place parentheses around the assignment to silence this warning [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2704:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2704:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ~~^~~~~ [00:01:56] imap4r1.c:2704:45: note: place parentheses around the assignment to silence this warning [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2704:45: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2812:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2812 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2836:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2836 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2858:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2858 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2881:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2881 | else mm_log (reply->text,ERROR); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:56] 1605 | void mm_log (char *string,long errflg); [00:01:56] | ^ [00:01:56] imap4r1.c:2918:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2918 | (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2918:46: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2918 | (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2919:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2919 | compare_cstring (cmd,"STORE") && [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2919:25: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2919 | compare_cstring (cmd,"STORE") && [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2920:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2920 | compare_cstring (cmd,"SEARCH")) ? [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2920:25: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 2920 | compare_cstring (cmd,"SEARCH")) ? [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:2926:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ~~~~~~~^~~~~~ [00:01:56] imap4r1.c:2926:14: note: place parentheses around the assignment to silence this warning [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2926:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2926:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ~~~~^~~~~~~~~~~ [00:01:56] imap4r1.c:2926:33: note: place parentheses around the assignment to silence this warning [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2926:33: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2926 | if (arglst = args) while (arg = *arglst++) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2946:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2946:17: note: place parentheses around the assignment to silence this warning [00:01:56] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2946:17: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2950:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2950:17: note: place parentheses around the assignment to silence this warning [00:01:56] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2950:17: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2958:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 2959 | CMDBASE+MAXCOMMAND)) return reply; [00:01:56] | ~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2958:12: note: place parentheses around the assignment to silence this warning [00:01:56] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:01:56] | ^ [00:01:56] | ( [00:01:56] 2959 | CMDBASE+MAXCOMMAND)) return reply; [00:01:56] | [00:01:56] | ) [00:01:56] imap4r1.c:2958:12: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2962:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2962 | while (list = list->next); [00:01:56] | ~~~~~^~~~~~~~~~~~ [00:01:56] imap4r1.c:2962:19: note: place parentheses around the assignment to silence this warning [00:01:56] 2962 | while (list = list->next); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:2962:19: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2962 | while (list = list->next); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:2966:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 2967 | CMDBASE+MAXCOMMAND)) [00:01:56] | ~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:2966:17: note: place parentheses around the assignment to silence this warning [00:01:56] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:01:56] | ^ [00:01:56] | ( [00:01:56] 2967 | CMDBASE+MAXCOMMAND)) [00:01:56] | [00:01:56] | ) [00:01:56] imap4r1.c:2966:17: note: use '==' to turn this assignment into an equality comparison [00:01:56] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3052:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3052:17: note: place parentheses around the assignment to silence this warning [00:01:56] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3052:17: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3073:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3073 | if (!map->date || mail_parse_date (&elt,map->date)) { [00:01:56] | ^~~~~~~~~ [00:01:56] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:56] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3074:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3074 | if (t = map->flags) { /* flags given? */ [00:01:56] | ~~^~~~~~~~~~~~ [00:01:56] imap4r1.c:3074:10: note: place parentheses around the assignment to silence this warning [00:01:56] 3074 | if (t = map->flags) { /* flags given? */ [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3074:10: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3074 | if (t = map->flags) { /* flags given? */ [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3086:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 3087 | CMDBASE+MAXCOMMAND)) return reply; [00:01:56] | ~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3086:16: note: place parentheses around the assignment to silence this warning [00:01:56] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:01:56] | ^ [00:01:56] | ( [00:01:56] 3087 | CMDBASE+MAXCOMMAND)) return reply; [00:01:56] | [00:01:56] | ) [00:01:56] imap4r1.c:3086:16: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3090:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3090:14: note: place parentheses around the assignment to silence this warning [00:01:56] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3090:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3120:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3120 | while (list = list->next); [00:01:56] | ~~~~~^~~~~~~~~~~~ [00:01:56] imap4r1.c:3120:19: note: place parentheses around the assignment to silence this warning [00:01:56] 3120 | while (list = list->next); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3120:19: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3120 | while (list = list->next); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3199:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3199 | if (strcmp (reply->tag,"+")) {/* prompt for more data? */ [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3354:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3354 | if (hdr = pgm->header) do { [00:01:56] | ~~~~^~~~~~~~~~~~~ [00:01:56] imap4r1.c:3354:11: note: place parentheses around the assignment to silence this warning [00:01:56] 3354 | if (hdr = pgm->header) do { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3354:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3354 | if (hdr = pgm->header) do { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3356:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3356:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3356:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3359:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3359:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3359:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3361:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3361 | } while (hdr = hdr->next); [00:01:56] | ~~~~^~~~~~~~~~~ [00:01:56] imap4r1.c:3361:16: note: place parentheses around the assignment to silence this warning [00:01:56] 3361 | } while (hdr = hdr->next); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3361:16: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3361 | } while (hdr = hdr->next); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3364:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3364:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3364:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3367:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3367:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3367:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3373:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3373:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3373:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3451:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3451:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3451:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3453:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3453:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3453:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3554:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:01:56] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3554:15: note: place parentheses around the assignment to silence this warning [00:01:56] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3554:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3556:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3556 | if (!strcmp (reply->tag,"+")) return reply; [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3558:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3558 | else if (!strcmp (reply->tag,"*")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3563:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3563 | if (tag && !compare_cstring (tag,reply->tag)) return reply; [00:01:56] | ^~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3589:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3589 | if (!(LOCAL->reply.line = text)) { [00:01:56] | ^ ~~~~ [00:01:56] imap4r1.c:3595:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3595 | if (stream->debug) mm_dlog (LOCAL->reply.line); [00:01:56] | ^~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:01:56] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:01:56] | ^ [00:01:56] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:01:56] 1606 | void mm_dlog (char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3596:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3596 | if (!(LOCAL->reply.tag = strtok_r (LOCAL->reply.line," ",&r))) { [00:01:56] | ^~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:01:56] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:01:56] | ^ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3596:26: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3596 | if (!(LOCAL->reply.tag = strtok_r (LOCAL->reply.line," ",&r))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3602:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3602 | if (strcmp (LOCAL->reply.tag,"+")) { [00:01:56] | ^~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:01:56] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3604:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3604 | if (!(LOCAL->reply.key = strtok_r (NIL," ",&r))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3614:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3614 | if (!(LOCAL->reply.text = strtok_r (NIL,"\n",&r))) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3615:54: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3615 | LOCAL->reply.text = LOCAL->reply.key + strlen (LOCAL->reply.key); [00:01:56] | ^~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:01:56] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:01:56] | ^ [00:01:56] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:56] 105 | size_t strlen(const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3618:22: warning: assigning to 'unsigned char *' from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3618 | LOCAL->reply.key = "BAD"; /* so it barfs if not expecting continuation */ [00:01:56] | ^ ~~~~~ [00:01:56] imap4r1.c:3619:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3619 | if (!(LOCAL->reply.text = strtok_r (NIL,"\n",&r))) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3620:25: warning: assigning to 'unsigned char *' from 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3620 | LOCAL->reply.text = ""; [00:01:56] | ^ ~~ [00:01:56] imap4r1.c:3640:40: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3640 | LOCAL->reply.tag = LOCAL->reply.line = cpystr (tag ? tag : "*"); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3641:20: warning: assigning to 'unsigned char *' from 'char[3]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3641 | LOCAL->reply.key = "NO"; [00:01:56] | ^ ~~~~ [00:01:56] imap4r1.c:3642:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3642 | LOCAL->reply.text = text; [00:01:56] | ^ ~~~~ [00:01:56] imap4r1.c:3657:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3657 | if (!strcmp (reply->key,"OK")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3658:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3658 | imap_parse_response (stream,reply->text,NIL,NIL); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:3662:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3662 | else if (!strcmp (reply->key,"NO")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3663:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3663 | imap_parse_response (stream,reply->text,WARN,NIL); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:3665:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3665 | if (!strcmp (reply->key,"BAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3666:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3666 | imap_parse_response (stream,reply->text,ERROR,NIL); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:3690:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3690 | msgno = strtoul (reply->key,(char **) &s,10); [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3704:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3704 | s = ucase (strtok_r (reply->text," ",&r)); [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3704:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3704 | s = ucase (strtok_r (reply->text," ",&r)); [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3705:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3705 | t = strtok_r (NIL,"\n",&r); /* and locate the text after it */ [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3708:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3708 | if (!strcmp (s,"EXISTS") && (msgno >= stream->nmsgs)) [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3710:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3710 | else if (!strcmp (s,"RECENT") && (msgno <= stream->nmsgs)) [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3712:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3712 | else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3720:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3720 | else if (t && (!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3720:52: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3720 | else if (t && (!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3731:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3731 | while ((prop = (strtok_r (t," )",&r))) && (t = strtok_r (NIL,"\n",&r))) { [00:01:56] | ^ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3731:52: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3731 | while ((prop = (strtok_r (t," )",&r))) && (t = strtok_r (NIL,"\n",&r))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3735:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3735 | if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); [00:01:56] | ^~~~ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3735:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3735 | if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); [00:01:56] | ^~~~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3743:27: warning: passing 'char[27]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3743 | mail_parse_date (elt,"01-Jan-1970 00:00:00 +0000"); [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:56] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3749:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3749 | LOCAL->lastuid.uid = elt->private.uid = strtoul (t,(char **) &t,10); [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3790:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3790 | if (!(s = strchr (md.what,']'))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3792:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3792 | for (s = md.what; *s && (isdigit (*s) || (*s == '.')); s++); [00:01:56] | ^ ~~~~~~~ [00:01:56] imap4r1.c:3794:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3794 | if (strncmp (s,"HEADER.FIELDS",13) && [00:01:56] | ^ [00:01:56] /usr/include/string.h:116:26: note: passing argument to parameter here [00:01:56] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3795:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3795 | (!s[13] || strcmp (s+13,".NOT"))) [00:01:56] | ^~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3805:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:01:56] | ^~~~~ [00:01:56] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:56] 85 | char *strchr(const char *, int) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3805:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3805:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3805:19: note: place parentheses around the assignment to silence this warning [00:01:56] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3805:19: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3810:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3810 | md.first = strtoul (s+1,(char **) &s,10) + 1; [00:01:56] | ^~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3853:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3853 | elt->rfc822_size = strtoul (t,(char **) &t,10); [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3889:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3889 | else if (strcmp (s,"COPY")) { [00:01:56] | ^ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3896:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3896 | else if (!strcmp (reply->key,"FLAGS") && reply->text && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3898:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3898 | (s = strtok_r (reply->text+1," )",&r))) [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3898:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3898 | (s = strtok_r (reply->text+1," )",&r))) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3901:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3901 | compare_cstring (s,stream->user_flags[i]); i++); [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3907:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3907 | else if (!stream->user_flags[i]) stream->user_flags[i++] = cpystr (s); [00:01:56] | ^ [00:01:56] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:01:56] 84 | char *cpystr (const char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:3909:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3909 | while (s = strtok_r (NIL," )",&r)); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3909:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3909 | while (s = strtok_r (NIL," )",&r)); [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3909:14: note: place parentheses around the assignment to silence this warning [00:01:56] 3909 | while (s = strtok_r (NIL," )",&r)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3909:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3909 | while (s = strtok_r (NIL," )",&r)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3910:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3910 | else if (!strcmp (reply->key,"SEARCH")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3912:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3912 | if (reply->text && (t = strtok_r (reply->text," ",&r))) do [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3912:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3912 | if (reply->text && (t = strtok_r (reply->text," ",&r))) do [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3913:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3913 | if (i = strtoul (t,NIL,10)) { [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3913:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3913 | if (i = strtoul (t,NIL,10)) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3913:13: note: place parentheses around the assignment to silence this warning [00:01:56] 3913 | if (i = strtoul (t,NIL,10)) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3913:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3913 | if (i = strtoul (t,NIL,10)) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3922:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3922:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3922:18: note: place parentheses around the assignment to silence this warning [00:01:56] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3922:18: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3924:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3924 | else if (!strcmp (reply->key,"SORT")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3932:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3932 | if (reply->text && (t = strtok_r (reply->text," ",&r))) { [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:3932:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3932 | if (reply->text && (t = strtok_r (reply->text," ",&r))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3933:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3933 | do if ((i = atol (t)) && (LOCAL->filter ? [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:89:24: note: passing argument to parameter here [00:01:56] 89 | long atol(const char *); [00:01:56] | ^ [00:01:56] imap4r1.c:3936:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3936 | while ((t = strtok_r (NIL," ",&r)) && (LOCAL->sortsize < stream->nmsgs)); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3942:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3942 | else if (!strcmp (reply->key,"THREAD")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3946:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 3946 | if (s = reply->text) { [00:01:56] | ~~^~~~~~~~~~~~~ [00:01:56] imap4r1.c:3946:11: note: place parentheses around the assignment to silence this warning [00:01:56] 3946 | if (s = reply->text) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:3946:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 3946 | if (s = reply->text) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:3957:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3957 | else if (!strcmp (reply->key,"STATUS") && reply->text) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3961:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3961 | (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && [00:01:56] | ^~~ [00:01:56] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:56] 85 | char *strchr(const char *, int) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3961:43: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3961 | (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && [00:01:56] | ^ ~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3967:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3967 | while (*txt && (s = strchr (txt,' '))) { [00:01:56] | ^~~ [00:01:56] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:56] 85 | char *strchr(const char *, int) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:3967:25: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3967 | while (*txt && (s = strchr (txt,' '))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:3970:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3970 | i = strtoul (s,(char **) &s,10); [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:3971:28: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3971 | if (!compare_cstring (txt,"MESSAGES")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3975:33: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3975 | else if (!compare_cstring (txt,"RECENT")) { [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3979:33: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3979 | else if (!compare_cstring (txt,"UNSEEN")) { [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3983:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3983 | else if (!compare_cstring (txt,"UIDNEXT")) { [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3987:33: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3987 | else if (!compare_cstring (txt,"UIDVALIDITY")) { [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:3996:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 3996 | strcpy (strncpy (LOCAL->tmp,stream->mailbox,i) + i,t); [00:01:56] | ^ [00:01:56] /usr/include/string.h:92:58: note: passing argument to parameter here [00:01:56] 92 | char *(strcpy)(char * __restrict, const char * __restrict); [00:01:56] | ^ [00:01:56] imap4r1.c:4004:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4004 | else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4004:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4004 | else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4006:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4006 | (s = strchr (reply->text,')')) && (s[1] == ' ')) { [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:56] 85 | char *strchr(const char *, int) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4006:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4006 | (s = strchr (reply->text,')')) && (s[1] == ' ')) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4010:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] /usr/include/string.h:139:22: note: passing argument to parameter here [00:01:56] 139 | char *strtok_r(char *, const char *, char **); [00:01:56] | ^ [00:01:56] imap4r1.c:4010:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4010:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4010:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4010:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4011:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4011 | if (!compare_cstring (t,"\\NoInferiors")) i |= LATT_NOINFERIORS; [00:01:56] | ^~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4012:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4012 | else if (!compare_cstring (t,"\\NoSelect")) i |= LATT_NOSELECT; [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4013:36: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4013 | else if (!compare_cstring (t,"\\Marked")) i |= LATT_MARKED; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4014:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4014 | else if (!compare_cstring (t,"\\Unmarked")) i |= LATT_UNMARKED; [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4015:36: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4015 | else if (!compare_cstring (t,"\\HasChildren")) i |= LATT_HASCHILDREN; [00:01:56] | ^~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4016:36: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4016 | else if (!compare_cstring (t,"\\HasNoChildren")) i |= LATT_HASNOCHILDREN; [00:01:56] | ^~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4019:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4019 | while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4019:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4019 | while (t = strtok_r (NIL," ",&r)); [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4019:14: note: place parentheses around the assignment to silence this warning [00:01:56] 4019 | while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4019:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4019 | while (t = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4030:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4030:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4030:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4033:13: warning: assigning to 'unsigned char *' from 'char[16384]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4033 | sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); [00:01:56] | ^ ~~~~~~~~~~ [00:01:56] imap4r1.c:4033:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4033 | sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); [00:01:56] | ^~~~~~~~~~~~~~ [00:01:56] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:56] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:56] | ^ [00:01:56] imap4r1.c:4036:59: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4036 | if (reply->key[1] == 'S') mm_lsub (stream,delimiter,s,i); [00:01:56] | ^ [00:01:56] ./mail.h:1603:54: note: passing argument to parameter 'name' here [00:01:56] 1603 | void mm_lsub (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:01:56] | ^ [00:01:56] imap4r1.c:4037:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4037 | else mm_list (stream,delimiter,s,i); [00:01:56] | ^ [00:01:56] ./mail.h:1602:54: note: passing argument to parameter 'name' here [00:01:56] 1602 | void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:01:56] | ^ [00:01:56] imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4041 | else if (!strcmp (reply->key,"NAMESPACE")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4048:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4048 | if (s = reply->text) { /* parse namespace results */ [00:01:56] | ~~^~~~~~~~~~~~~ [00:01:56] imap4r1.c:4048:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4048 | if (s = reply->text) { /* parse namespace results */ [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4048:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4048 | if (s = reply->text) { /* parse namespace results */ [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4064:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4064 | else if (!strcmp (reply->key,"ACL") && (s = reply->text) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4070:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4070 | do if ((ac->identifier = imap_parse_astring (stream,&s,reply,NIL)) && [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4072:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4072 | ac->rights = imap_parse_astring (stream,&s,reply,NIL); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4081:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4081 | else if (ar) (*ar) (stream,t,al); [00:01:56] | ^ [00:01:56] imap4r1.c:4085:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4085 | else if (ar) (*ar) (stream,t,NIL); [00:01:56] | ^ [00:01:56] imap4r1.c:4089:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4089 | else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4093:35: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4093 | if (s && (*s++ == ' ') && (id = imap_parse_astring (stream,&s,reply,NIL))){ [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4095:7: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4095 | (r = imap_parse_astring (stream,&s,reply,NIL))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4109:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4109 | else if (lr) (*lr) (stream,t,id,r,rl); [00:01:56] | ^ [00:01:56] imap4r1.c:4114:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4114 | else if (lr) (*lr) (stream,t,id,r,NIL); [00:01:56] | ^ [00:01:56] imap4r1.c:4132:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4132 | else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4136:34: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4136 | if (s && (*s++ == ' ') && (r = imap_parse_astring (stream,&s,reply,NIL))) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4142:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4142 | else if (mr) (*mr) (stream,t,r); [00:01:56] | ^ [00:01:56] imap4r1.c:4154:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4154 | else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4165:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4165 | if ((qc->name = imap_parse_astring (stream,&s,reply,NIL)) && s && [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4167:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4167 | if (isdigit (*s)) qc->usage = strtoul (s,(char **) &s,10); [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:4168:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4168 | else if (t = strchr (s,' ')) t = s; [00:01:56] | ^ [00:01:56] /usr/include/string.h:85:26: note: passing argument to parameter here [00:01:56] 85 | char *strchr(const char *, int) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4168:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4168 | else if (t = strchr (s,' ')) t = s; [00:01:56] | ^ ~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4168:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4168 | else if (t = strchr (s,' ')) t = s; [00:01:56] | ~~^~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4168:15: note: place parentheses around the assignment to silence this warning [00:01:56] 4168 | else if (t = strchr (s,' ')) t = s; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4168:15: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4168 | else if (t = strchr (s,' ')) t = s; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4170:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4170 | if (isdigit (*s)) qc->limit = strtoul (s,(char **) &s,10); [00:01:56] | ^ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:4171:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4171 | else if (t = strpbrk (s," )")) t = s; [00:01:56] | ^ [00:01:56] /usr/include/string.h:127:27: note: passing argument to parameter here [00:01:56] 127 | char *strpbrk(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4171:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4171 | else if (t = strpbrk (s," )")) t = s; [00:01:56] | ^ ~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4171:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4171 | else if (t = strpbrk (s," )")) t = s; [00:01:56] | ~~^~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4171:17: note: place parentheses around the assignment to silence this warning [00:01:56] 4171 | else if (t = strpbrk (s," )")) t = s; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4171:17: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4171 | else if (t = strpbrk (s," )")) t = s; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4176:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4176 | if (qt) (*qt) (stream,t,ql); [00:01:56] | ^ [00:01:56] imap4r1.c:4195:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4195 | else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4210:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4210 | else if (qr) (*qr) (stream,t,rl); [00:01:56] | ^ [00:01:56] imap4r1.c:4221:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4221 | else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4221:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4221 | else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4222:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4222 | imap_parse_response (stream,reply->text,NIL,T); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:4223:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4223 | else if (!strcmp (reply->key,"NO")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4224:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4224 | imap_parse_response (stream,reply->text,WARN,T); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:4225:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4225 | else if (!strcmp (reply->key,"BAD")) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4226:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4226 | imap_parse_response (stream,reply->text,ERROR,T); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:4227:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4227 | else if (!strcmp (reply->key,"BYE")) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4229:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4229 | imap_parse_response (stream,reply->text,BYE,T); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:01:56] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:01:56] | ^ [00:01:56] imap4r1.c:4231:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4231 | else if (!strcmp (reply->key,"CAPABILITY") && reply->text) [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4232:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4232 | imap_parse_capabilities (stream,reply->text); [00:01:56] | ^~~~~~~~~~~ [00:01:56] imap4r1.c:262:56: note: passing argument to parameter 't' here [00:01:56] 262 | void imap_parse_capabilities (MAILSTREAM *stream,char *t); [00:01:56] | ^ [00:01:56] imap4r1.c:4233:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4233 | else if (!strcmp (reply->key,"MAILBOX") && reply->text) { [00:01:56] | ^~~~~~~~~~ [00:01:56] /usr/include/string.h:90:25: note: passing argument to parameter here [00:01:56] 90 | int strcmp(const char *, const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4235:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4235 | ((strlen (LOCAL->prefix) + strlen (reply->text)) < IMAPTMPLEN)) [00:01:56] | ^~~~~~~~~~~ [00:01:56] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:56] 105 | size_t strlen(const char *) __pure; [00:01:56] | ^ [00:01:56] imap4r1.c:4236:18: warning: assigning to 'unsigned char *' from 'char[16384]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4236 | sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); [00:01:56] | ^ ~~~~~~~~~~ [00:01:56] imap4r1.c:4236:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4236 | sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); [00:01:56] | ^~~~~~~~~~~~~~ [00:01:56] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:56] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:56] | ^ [00:01:56] imap4r1.c:4238:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4238 | mm_list (stream,NIL,t,NIL); [00:01:56] | ^ [00:01:56] ./mail.h:1602:54: note: passing argument to parameter 'name' here [00:01:56] 1602 | void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:01:56] | ^ [00:01:56] imap4r1.c:4268:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4268:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4268:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4271:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4271 | if (!compare_cstring (t,"CAPABILITY")) imap_parse_capabilities(stream,s); [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4271:31: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4271 | if (!compare_cstring (t,"CAPABILITY")) imap_parse_capabilities(stream,s); [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4272:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4272 | else if (!compare_cstring (t,"PERMANENTFLAGS") && (*s == '(') && [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4272:36: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4272 | else if (!compare_cstring (t,"PERMANENTFLAGS") && (*s == '(') && [00:01:56] | ^~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4278:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4278:8: note: place parentheses around the assignment to silence this warning [00:01:56] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4278:8: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4280:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4280 | if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4280:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4280 | if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4281:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4281 | else if (!compare_cstring (s,"\\Deleted")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4281:35: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4281 | else if (!compare_cstring (s,"\\Deleted")) [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4283:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4283 | else if (!compare_cstring (s,"\\Flagged")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4283:35: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4283 | else if (!compare_cstring (s,"\\Flagged")) [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4285:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4285 | else if (!compare_cstring (s,"\\Answered")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4285:35: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4285 | else if (!compare_cstring (s,"\\Answered")) [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4287:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4287 | else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4287:35: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4287 | else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4292:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4292 | while (s = strtok_r (NIL," ",&r)); [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4292:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4292 | while (s = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4292:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4292 | while (s = strtok_r (NIL," ",&r)); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4295:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4295 | else if (!compare_cstring (t,"UIDVALIDITY") && (j = strtoul (s,NIL,10))){ [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4295:36: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4295 | else if (!compare_cstring (t,"UIDVALIDITY") && (j = strtoul (s,NIL,10))){ [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4302:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:01:56] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4302:14: note: place parentheses around the assignment to silence this warning [00:01:56] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4302:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4306:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4306 | else if (!compare_cstring (t,"UIDNEXT")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4306:36: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4306 | else if (!compare_cstring (t,"UIDNEXT")) [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4309:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4309 | !compare_cstring (t,"COPYUID") && [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4309:29: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4309 | !compare_cstring (t,"COPYUID") && [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4315:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4315 | else if (j && !compare_cstring (t,"APPENDUID") && [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4315:41: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4315 | else if (j && !compare_cstring (t,"APPENDUID") && [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4322:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4322 | if (!compare_cstring (t,"REFERRAL")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4322:26: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4322 | if (!compare_cstring (t,"REFERRAL")) [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4329:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4329 | if (!compare_cstring (t,"UIDNOTSTICKY")) { [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4329:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4329 | if (!compare_cstring (t,"UIDNOTSTICKY")) { [00:01:56] | ^~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4333:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4333 | else if (!compare_cstring (t,"READ-ONLY")) stream->rdonly = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4333:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4333 | else if (!compare_cstring (t,"READ-ONLY")) stream->rdonly = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4334:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4334 | else if (!compare_cstring (t,"READ-WRITE")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4334:36: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4334 | else if (!compare_cstring (t,"READ-WRITE")) [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4336:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4336 | else if (!compare_cstring (t,"PARSE") && !errflg) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4336:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4336 | else if (!compare_cstring (t,"PARSE") && !errflg) [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4378:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4378 | nam->name = imap_parse_string (stream,txtptr,reply,NIL,NIL,NIL); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4403:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4403 | if (!(par->attribute = imap_parse_string (stream,txtptr,reply,NIL, [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 4404 | NIL,NIL))) { [00:01:56] | ~~~~~~~~ [00:01:56] imap4r1.c:4415:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4415 | if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL, [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 4416 | NIL,LONGT))) { [00:01:56] | ~~~~~~~~~~ [00:01:56] imap4r1.c:4488:29: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4488 | else if (isdigit (*(s = *txtptr)) && [00:01:56] | ^ ~~~~~~~ [00:01:56] /usr/include/ctype.h:90:32: note: expanded from macro 'isdigit' [00:01:56] 90 | #define isdigit(c) __sbistype((c), _CTYPE_D) [00:01:56] | ^ [00:01:56] imap4r1.c:4490:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4490 | strtoul (*txtptr,(char **) txtptr,10))) { [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:4575:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4575 | (*env)->subject = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4582:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4582 | (*env)->in_reply_to = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 4583 | LONGT); [00:01:56] | ~~~~~~ [00:01:56] imap4r1.c:4584:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4584 | (*env)->message_id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4681:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4681 | adr->personal = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4682:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4682 | adr->adl = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4683:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4683 | adr->mailbox = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4684:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4684 | adr->host = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4781:19: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4781 | while (*(flag = ++*txtptr) == ' '); [00:01:56] | ^ ~~~~~~~~~ [00:01:56] imap4r1.c:4789:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4789 | if (!compare_cstring (flag,"\\Seen")) elt->seen = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4789:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4789 | if (!compare_cstring (flag,"\\Seen")) elt->seen = T; [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4790:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4790 | else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4790:39: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4790 | else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4791:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4791 | else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4791:39: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4791 | else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4792:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4792 | else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4792:39: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4792 | else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; [00:01:56] | ^~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4793:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4793 | else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4793:39: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4793 | else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4794:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4794 | else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4794:39: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4794 | else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4822:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4822 | if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4822:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4822 | if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:4853:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:01:56] | ~~^~~~~~~~~~~~~ [00:01:56] imap4r1.c:4853:11: note: place parentheses around the assignment to silence this warning [00:01:56] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4853:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4855:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4855 | ret = strncpy ((char *) fs_get (i + 1),s,i); [00:01:56] | ^ [00:01:56] /usr/include/string.h:117:59: note: passing argument to parameter here [00:01:56] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:01:56] | ^ [00:01:56] imap4r1.c:4855:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4855 | ret = strncpy ((char *) fs_get (i + 1),s,i); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4896:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4896 | if (c) st = ++*txtptr; /* remember start of string */ [00:01:56] | ^ ~~~~~~~~~ [00:01:56] imap4r1.c:4951:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4951 | else if ((i = strtoul (*txtptr,(char **) txtptr,10)) > MAXSERVERLIT) { [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:4973:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4973:29: note: place parentheses around the assignment to silence this warning [00:01:56] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4973:29: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4981:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:01:56] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4981:28: note: place parentheses around the assignment to silence this warning [00:01:56] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:4981:28: note: use '==' to turn this assignment into an equality comparison [00:01:56] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:4983:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4983 | if (!(reply->line = net_getline (LOCAL->netstream))) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:4984:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4984 | reply->line = cpystr (""); [00:01:56] | ^ ~~~~~~~~~~~ [00:01:56] imap4r1.c:4985:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 4985 | if (stream->debug) mm_dlog (reply->line); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:01:56] 1606 | void mm_dlog (char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5053:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5053 | if (!(b = mail_body (stream,msgno,seg))) { [00:01:56] | ^~~ [00:01:56] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:01:56] 1693 | unsigned char *section); [00:01:56] | ^ [00:01:56] imap4r1.c:5131:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5131:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5131:25: note: place parentheses around the assignment to silence this warning [00:01:56] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5131:25: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5132:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5132 | ucase (body->subtype); [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5150:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5150 | body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5171:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5171:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5171:13: note: place parentheses around the assignment to silence this warning [00:01:56] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5171:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5172:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5172 | ucase (s); /* application always gets uppercase form */ [00:01:56] | ^ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5184:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5184:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5184:25: note: place parentheses around the assignment to silence this warning [00:01:56] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5184:25: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5185:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5185 | ucase (body->subtype); /* parse subtype */ [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5192:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5192 | body->id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5193:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5193 | body->description = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 5194 | LONGT); [00:01:56] | ~~~~~~ [00:01:56] imap4r1.c:5195:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5195:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5195:13: note: place parentheses around the assignment to silence this warning [00:01:56] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5195:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5196:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5196 | ucase (s); /* application always gets uppercase form */ [00:01:56] | ^ [00:01:56] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:01:56] 82 | unsigned char *ucase (unsigned char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5212:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5212 | body->size.bytes = strtoul (*txtptr,(char **) txtptr,10); [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:5233:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5233 | body->size.lines = strtoul (*txtptr,(char **) txtptr,10); [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:5240:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5240 | body->md5 = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5253:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5253 | body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5300:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5300 | if(!(par->attribute=imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:01:56] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 5301 | LONGT))) { [00:01:56] | ~~~~~~ [00:01:56] imap4r1.c:5306:22: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5306 | if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT))){ [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5332:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5332 | ((*(s = *txtptr) == 'I') || (*s == 'i')) && [00:01:56] | ^ ~~~~~~~ [00:01:56] imap4r1.c:5356:28: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5356 | body->disposition.type = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] 5357 | LONGT); [00:01:56] | ~~~~~~ [00:01:56] imap4r1.c:5399:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5399:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5399:14: note: place parentheses around the assignment to silence this warning [00:01:56] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5399:14: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5468:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:5468:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:01:56] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5468:11: note: place parentheses around the assignment to silence this warning [00:01:56] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5468:11: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5473:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5473 | if (!(reply->line = net_getline (LOCAL->netstream))) [00:01:56] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5474:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5474 | reply->line = cpystr (""); [00:01:56] | ^ ~~~~~~~~~~~ [00:01:56] imap4r1.c:5475:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5475 | if (stream->debug) mm_dlog (reply->line); [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:01:56] 1606 | void mm_dlog (char *string); [00:01:56] | ^ [00:01:56] imap4r1.c:5480:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5480 | strtoul (*txtptr,(char **) txtptr,10); [00:01:56] | ^~~~~~~ [00:01:56] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:01:56] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:01:56] | ^ [00:01:56] imap4r1.c:5504:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5504:13: note: place parentheses around the assignment to silence this warning [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5504:13: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5504:46: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ~~~^~~~~ [00:01:56] imap4r1.c:5504:46: note: place parentheses around the assignment to silence this warning [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5504:46: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5514:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5514 | if (!compare_cstring (t,"IMAP4")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5514:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5514 | if (!compare_cstring (t,"IMAP4")) [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5516:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5516 | else if (!compare_cstring (t,"IMAP4rev1")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5516:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5516 | else if (!compare_cstring (t,"IMAP4rev1")) [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5518:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5518 | else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5518:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5518 | else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5519:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5519 | else if (!compare_cstring (t,"IMAP2bis")) [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5519:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5519 | else if (!compare_cstring (t,"IMAP2bis")) [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5521:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5521 | else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5521:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5521 | else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; [00:01:56] | ^~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5522:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5522 | else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5522:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5522 | else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; [00:01:56] | ^~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5523:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5523 | else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5523:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5523 | else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5524:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5524 | else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5524:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5524 | else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; [00:01:56] | ^~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5525:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5525 | else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5525:34: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5525 | else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; [00:01:56] | ^~~~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5526:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5526 | else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5526:34: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5526 | else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; [00:01:56] | ^~~~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5527:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5527 | else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5527:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5527 | else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5528:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5528 | else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5528:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5528 | else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5529:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5529 | else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5529:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5529 | else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5530:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5530 | else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5530:34: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5530 | else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; [00:01:56] | ^~~~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5531:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5531 | else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5531:34: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5531 | else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; [00:01:56] | ^~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5532:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5532 | else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5532:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5532 | else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5533:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5533 | else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5533:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5533 | else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; [00:01:56] | ^~~~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5534:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5534 | else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5534:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5534 | else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5535:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5535 | else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5535:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5535 | else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5536:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5536 | else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5536:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5536 | else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5537:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5537 | else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5537:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5537 | else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; [00:01:56] | ^~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5538:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5538 | else if (!compare_cstring (t,"URLAUTH")) LOCAL->cap.urlauth = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5538:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5538 | else if (!compare_cstring (t,"URLAUTH")) LOCAL->cap.urlauth = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5539:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5539 | else if (!compare_cstring (t,"CATENATE")) LOCAL->cap.catenate = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5539:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5539 | else if (!compare_cstring (t,"CATENATE")) LOCAL->cap.catenate = T; [00:01:56] | ^~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5540:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5540 | else if (!compare_cstring (t,"CONDSTORE")) LOCAL->cap.condstore = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5540:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5540 | else if (!compare_cstring (t,"CONDSTORE")) LOCAL->cap.condstore = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5541:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5541 | else if (!compare_cstring (t,"ESEARCH")) LOCAL->cap.esearch = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5541:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5541 | else if (!compare_cstring (t,"ESEARCH")) LOCAL->cap.esearch = T; [00:01:56] | ^~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5547:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5547 | else if (s = strchr (t,'=')) { [00:01:56] | ~~^~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5547:16: note: place parentheses around the assignment to silence this warning [00:01:56] 5547 | else if (s = strchr (t,'=')) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5547:16: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5547 | else if (s = strchr (t,'=')) { [00:01:56] | ^ [00:01:56] | == [00:01:56] imap4r1.c:5549:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5549 | if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5549:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5549 | if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { [00:01:56] | ^~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5556:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5556 | else if (!compare_cstring (t,"AUTH")) { [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5556:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5556 | else if (!compare_cstring (t,"AUTH")) { [00:01:56] | ^~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5559:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5559 | else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; [00:01:56] | ^ [00:01:56] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5559:31: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:56] 5559 | else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; [00:01:56] | ^~~~~~~~~~~ [00:01:56] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:56] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:56] | ^ [00:01:56] imap4r1.c:5636:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:56] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:01:56] | ~~^~~~~~~~~~~~~~~~~~ [00:01:56] imap4r1.c:5636:24: note: place parentheses around the assignment to silence this warning [00:01:56] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:01:56] | ^ [00:01:56] | ( ) [00:01:56] imap4r1.c:5636:24: note: use '==' to turn this assignment into an equality comparison [00:01:56] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:01:56] | ^ [00:01:56] | == [00:01:56] 423 warnings generated. [00:01:56] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` pop3.c [00:01:57] pop3.c:177:22: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 177 | !compare_cstring (mb.mailbox,"INBOX")) ? &pop3driver : NIL; [00:01:57] | ^~~~~~~~~~ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:177:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 177 | !compare_cstring (mb.mailbox,"INBOX")) ? &pop3driver : NIL; [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:229:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 229 | (pop3_valid (ref) && pmatch ("INBOX",pat)) : [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^ [00:01:57] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:229:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 229 | (pop3_valid (ref) && pmatch ("INBOX",pat)) : [00:01:57] | ^~~ [00:01:57] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^~~ [00:01:57] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:230:60: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 230 | (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^ [00:01:57] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:230:68: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 230 | (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) [00:01:57] | ^~~ [00:01:57] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^~~ [00:01:57] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:245:37: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 245 | if (pop3_valid (ref) && pmatch ("INBOX",pat)) { [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^ [00:01:57] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:245:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 245 | if (pop3_valid (ref) && pmatch ("INBOX",pat)) { [00:01:57] | ^~~ [00:01:57] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^~~ [00:01:57] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:250:64: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 250 | else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^ [00:01:57] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:250:72: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 250 | else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { [00:01:57] | ^~~ [00:01:57] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^~~ [00:01:57] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:276:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:01:57] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:57] pop3.c:276:9: note: place parentheses around the assignment to silence this warning [00:01:57] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:276:9: note: use '==' to turn this assignment into an equality comparison [00:01:57] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:276:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:01:57] | ^ [00:01:57] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^ [00:01:57] ./env.h:29:34: note: passing argument to parameter 's' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:276:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:01:57] | ^~~ [00:01:57] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:01:57] 78 | pmatch_full (s,pat,NIL) [00:01:57] | ^~~ [00:01:57] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:01:57] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:01:57] | ^ [00:01:57] pop3.c:279:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 279 | while (s = sm_read (tmp,&sdb)); [00:01:57] | ~~^~~~~~~~~~~~~~~~~~~~ [00:01:57] pop3.c:279:12: note: place parentheses around the assignment to silence this warning [00:01:57] 279 | while (s = sm_read (tmp,&sdb)); [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:279:12: note: use '==' to turn this assignment into an equality comparison [00:01:57] 279 | while (s = sm_read (tmp,&sdb)); [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:427:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:01:57] | ~~~~~~~~~~~~~^~~~~~~~~~ [00:01:57] pop3.c:427:24: note: place parentheses around the assignment to silence this warning [00:01:57] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:427:24: note: use '==' to turn this assignment into an equality comparison [00:01:57] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:497:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:57] | ~~~~~^~~~~~~~~~~~~~~~ [00:01:57] pop3.c:497:14: note: place parentheses around the assignment to silence this warning [00:01:57] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:497:14: note: use '==' to turn this assignment into an equality comparison [00:01:57] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:498:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 498 | if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:498:29: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 498 | if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:499:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 499 | else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:499:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 499 | else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; [00:01:57] | ^~~~~~~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:500:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 500 | else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:500:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 500 | else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; [00:01:57] | ^~~~~~~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:501:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 501 | else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:501:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 501 | else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; [00:01:57] | ^~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:502:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 502 | else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:502:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 502 | else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:503:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 503 | else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:503:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 503 | else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:504:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 504 | else if (!compare_cstring (t,"IMPLEMENTATION") && args) [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:504:34: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 504 | else if (!compare_cstring (t,"IMPLEMENTATION") && args) [00:01:57] | ^~~~~~~~~~~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:506:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 506 | else if (!compare_cstring (t,"EXPIRE") && args) { [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:506:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 506 | else if (!compare_cstring (t,"EXPIRE") && args) { [00:01:57] | ^~~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:508:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ~~^~~~~~~~~~~~~~~~~~ [00:01:57] pop3.c:508:13: note: place parentheses around the assignment to silence this warning [00:01:57] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:508:13: note: use '==' to turn this assignment into an equality comparison [00:01:57] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:514:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 514 | (!compare_cstring (args,"NEVER")) ? 65535 : [00:01:57] | ^~~~ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:514:26: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 514 | (!compare_cstring (args,"NEVER")) ? 65535 : [00:01:57] | ^~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:515:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 515 | ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:515:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 515 | ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:517:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 517 | else if (!compare_cstring (t,"LOGIN-DELAY") && args) { [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:517:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 517 | else if (!compare_cstring (t,"LOGIN-DELAY") && args) { [00:01:57] | ^~~~~~~~~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:519:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ~~^~~~~~~~~~~~~~~~~~ [00:01:57] pop3.c:519:13: note: place parentheses around the assignment to silence this warning [00:01:57] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:519:13: note: use '==' to turn this assignment into an equality comparison [00:01:57] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:525:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 525 | LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:525:56: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 525 | LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:528:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 528 | else if (!compare_cstring (t,"SASL") && args) [00:01:57] | ^ [00:01:57] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:528:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 528 | else if (!compare_cstring (t,"SASL") && args) [00:01:57] | ^~~~~~ [00:01:57] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:57] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:57] | ^ [00:01:57] pop3.c:782:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 782 | mail_uid_sequence (stream,sequence) : [00:01:57] | ^~~~~~~~ [00:01:57] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:57] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:57] | ^ [00:01:57] pop3.c:783:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 783 | mail_sequence (stream,sequence))) [00:01:57] | ^~~~~~~~ [00:01:57] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:57] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:57] | ^ [00:01:57] pop3.c:841:48: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:01:57] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:57] pop3.c:841:48: note: place parentheses around the assignment to silence this warning [00:01:57] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:01:57] | ^ [00:01:57] | ( ) [00:01:57] pop3.c:841:48: note: use '==' to turn this assignment into an equality comparison [00:01:57] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:01:57] | ^ [00:01:57] | == [00:01:57] pop3.c:946:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 946 | mail_uid_sequence (stream,sequence) : [00:01:57] | ^~~~~~~~ [00:01:57] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:57] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:57] | ^ [00:01:57] pop3.c:947:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:57] 947 | mail_sequence (stream,sequence)) : [00:01:57] | ^~~~~~~~ [00:01:57] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:57] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:57] | ^ [00:01:57] pop3.c:945:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:57] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:01:57] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:57] 946 | mail_uid_sequence (stream,sequence) : [00:01:57] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:57] 947 | mail_sequence (stream,sequence)) : [00:01:57] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:57] 948 | LONGT) { /* build selected sequence if needed */ [00:01:57] | ~~~~~ [00:01:57] pop3.c:945:11: note: place parentheses around the assignment to silence this warning [00:01:57] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:01:57] | ^ [00:01:57] | ( [00:01:57] 946 | mail_uid_sequence (stream,sequence) : [00:01:57] 947 | mail_sequence (stream,sequence)) : [00:01:57] 948 | LONGT) { /* build selected sequence if needed */ [00:01:57] | [00:01:57] | ) [00:01:57] pop3.c:945:11: note: use '==' to turn this assignment into an equality comparison [00:01:57] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:01:57] | ^ [00:01:57] | == [00:01:57] 50 warnings generated. [00:01:57] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` unix.c [00:01:59] unix.c:418:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 418 | if (s = strrchr (s,'/')) { [00:01:59] | ~~^~~~~~~~~~~~~~~~~ [00:01:59] unix.c:418:8: note: place parentheses around the assignment to silence this warning [00:01:59] 418 | if (s = strrchr (s,'/')) { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:418:8: note: use '==' to turn this assignment into an equality comparison [00:01:59] 418 | if (s = strrchr (s,'/')) { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:468:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 468 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:01:59] | ^~~~~~~~~~~~~~~ [00:01:59] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:468:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 468 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:480:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 480 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:626:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 626 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 627 | elt->private.msg.header.text.size) + 1); [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:640:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 640 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:653:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 653 | *length = mail_filter (LOCAL->buf,*length,unix_hlines,FT_NOT); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1706:34: note: passing argument to parameter 'text' here [00:01:59] 1706 | unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, [00:01:59] | ^ [00:01:59] unix.c:703:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 703 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 704 | elt->private.msg.text.text.size) + 1); [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:731:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 731 | d.chunk = tmp; /* initial buffer chunk */ [00:01:59] | ^ ~~~ [00:01:59] unix.c:734:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 734 | for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (c = SNX (&bs)) { [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:787:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 787 | sprintf (LOCAL->buf,"Mailbox stat failed, aborted: %s", [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:789:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 789 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:846:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 846 | mail_uid_sequence (stream,sequence) : [00:01:59] | ^~~~~~~~ [00:01:59] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:59] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:59] | ^ [00:01:59] unix.c:847:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:01:59] | ^~~~~~~~ [00:01:59] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:59] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:59] | ^ [00:01:59] unix.c:845:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:01:59] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 846 | mail_uid_sequence (stream,sequence) : [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 848 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] 849 | unix_parse (stream,&lock,LOCK_EX)) { [00:01:59] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:845:11: note: place parentheses around the assignment to silence this warning [00:01:59] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:01:59] | ^ [00:01:59] | ( [00:01:59] 846 | mail_uid_sequence (stream,sequence) : [00:01:59] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:01:59] 848 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:01:59] 849 | unix_parse (stream,&lock,LOCK_EX)) { [00:01:59] | [00:01:59] | ) [00:01:59] unix.c:845:11: note: use '==' to turn this assignment into an equality comparison [00:01:59] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:860:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 860 | if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); [00:01:59] | ^ ~~~~~~~~~~ [00:01:59] unix.c:902:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 902 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:01:59] | ^~~~~~~~ [00:01:59] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:01:59] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:59] | ^ [00:01:59] unix.c:903:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 903 | mail_sequence (stream,sequence))) return NIL; [00:01:59] | ^~~~~~~~ [00:01:59] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:01:59] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:01:59] | ^ [00:01:59] unix.c:909:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 909 | if (compare_cstring (mailbox,"INBOX")) { [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:909:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 909 | if (compare_cstring (mailbox,"INBOX")) { [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:916:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 916 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:917:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 917 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:921:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 921 | sprintf (LOCAL->buf,"Invalid UNIX-format mailbox name: %.80s",mailbox); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:922:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 922 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:926:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 926 | sprintf (LOCAL->buf,"Not a UNIX-format mailbox: %.80s",mailbox); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:927:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 927 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:936:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 936 | sprintf (LOCAL->buf,"Unable to write-open mailbox for COPYUID: %.80s", [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:938:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 938 | MM_LOG (LOCAL->buf,WARN); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:947:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 947 | sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:948:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 948 | MM_LOG (LOCAL->buf,ERROR);/* log the error */ [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:957:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 957 | if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:01:59] 86 | long safe_write (int fd,char *buf,long nbytes); [00:01:59] | ^ [00:01:59] unix.c:965:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 965 | unix_xstatus (stream,LOCAL->buf,elt,++(tstream->uid_last),LONGT) : [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:131:54: note: passing argument to parameter 'status' here [00:01:59] 131 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:01:59] | ^ [00:01:59] unix.c:966:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 966 | unix_xstatus (stream,LOCAL->buf,elt,NIL,NIL); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:131:54: note: passing argument to parameter 'status' here [00:01:59] 131 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:01:59] | ^ [00:01:59] unix.c:967:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 967 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:01:59] 86 | long safe_write (int fd,char *buf,long nbytes); [00:01:59] | ^ [00:01:59] unix.c:981:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 981 | sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1007:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1007 | if (!ret) MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1051:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1051 | if (compare_cstring (mailbox,"INBOX")) { [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1051:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1051 | if (compare_cstring (mailbox,"INBOX")) { [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1093:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1093 | if (!mail_parse_date (&elt,date)) { [00:01:59] | ^~~~ [00:01:59] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:01:59] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:01:59] | ^ [00:01:59] unix.c:1196:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1196 | if ((s = stream->user_flags[find_rightmost_bit (&uf)]) && [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1257:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:01:59] | ~~^~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1257:23: note: place parentheses around the assignment to silence this warning [00:01:59] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:1257:23: note: use '==' to turn this assignment into an equality comparison [00:01:59] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:1260:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:01:59] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:01:59] | ~~^~~~~~~ [00:01:59] unix.c:1260:14: note: remove extraneous parentheses around the comparison to silence this warning [00:01:59] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:01:59] | ~ ^ ~ [00:01:59] unix.c:1260:14: note: use '=' to turn this equality comparison into an assignment [00:01:59] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:01:59] | ^~ [00:01:59] | = [00:01:59] unix.c:1462:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1462 | sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1463:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1463 | MM_LOG (tmp,ERROR); [00:01:59] | ^~~ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1472:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1472 | sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1474:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1474 | MM_LOG (tmp,ERROR); /* this is pretty bad */ [00:01:59] | ^~~ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1483:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:01:59] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1483:14: note: place parentheses around the assignment to silence this warning [00:01:59] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:1483:14: note: use '==' to turn this assignment into an equality comparison [00:01:59] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:1486:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1486 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:01:59] | ^ ~~~~~~~~~~ [00:01:59] unix.c:1495:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1495 | s = unix_mbxline (stream,&bs,&i); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1499:11: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1499 | sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1501:10: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1501 | MM_LOG (tmp,ERROR); [00:01:59] | ^~~ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1550:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1550 | sprintf (tmp,"Unable to parse internal date: %s",(char *) date); [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1551:12: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1551 | MM_LOG (tmp,WARN); [00:01:59] | ^~~ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1555:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1555 | s = t = unix_mbxline (stream,&bs,&i); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1572:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:01:59] | ^ [00:01:59] /usr/include/string.h:127:27: note: passing argument to parameter here [00:01:59] 127 | char *strpbrk(const char *, const char *) __pure; [00:01:59] | ^ [00:01:59] unix.c:1572:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1572:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:01:59] | ^ [00:01:59] /usr/include/string.h:105:28: note: passing argument to parameter here [00:01:59] 105 | size_t strlen(const char *) __pure; [00:01:59] | ^ [00:01:59] unix.c:1578:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1578 | if (!compare_csizedtext (stream->user_flags[j],&uf)) { [00:01:59] | ^~~~~~~~~~~~~~~~~~~~~ [00:01:59] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:01:59] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:01:59] | ^ [00:01:59] unix.c:1626:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1626 | u = strpbrk (s," \n\r"); [00:01:59] | ^ [00:01:59] /usr/include/string.h:127:27: note: passing argument to parameter here [00:01:59] 127 | char *strpbrk(const char *, const char *) __pure; [00:01:59] | ^ [00:01:59] unix.c:1626:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1626 | u = strpbrk (s," \n\r"); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1633:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1633 | strncpy (stream->user_flags[j],s,k); [00:01:59] | ^ [00:01:59] /usr/include/string.h:117:59: note: passing argument to parameter here [00:01:59] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:01:59] | ^ [00:01:59] unix.c:1661:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1661 | sprintf (tmp,"Message %lu UID %lu already has UID %lu", [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1666:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1666 | sprintf (tmp,"Message %lu UID %lu less than %lu", [00:01:59] | ^~~ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:1686:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1686 | MM_LOG (tmp,WARN); [00:01:59] | ^~~ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:1742:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1742 | if (!compare_cstring (tmp,"STATUS") || [00:01:59] | ^~~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1743:27: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1743 | !compare_cstring (tmp,"X-STATUS") || [00:01:59] | ^~~~~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1744:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1744 | !compare_cstring (tmp,"X-KEYWORDS") || [00:01:59] | ^~~~~~~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1745:27: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1745 | !compare_cstring (tmp,"X-UID") || [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1746:27: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1746 | !compare_cstring (tmp,"X-IMAP") || [00:01:59] | ^~~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1747:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1747 | !compare_cstring (tmp,"X-IMAPBASE")) { [00:01:59] | ^~~~~~~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:1770:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1770:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:01:59] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:1770:14: note: place parentheses around the assignment to silence this warning [00:01:59] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:1770:14: note: use '==' to turn this assignment into an equality comparison [00:01:59] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:1796:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 1796 | s = unix_mbxline (stream,&bs,&i); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2015:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:01:59] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2015:44: note: place parentheses around the assignment to silence this warning [00:01:59] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:2015:44: note: use '==' to turn this assignment into an equality comparison [00:01:59] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:2037:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 2037 | if (n = elt->user_flags) do { [00:01:59] | ~~^~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2037:11: note: place parentheses around the assignment to silence this warning [00:01:59] 2037 | if (n = elt->user_flags) do { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:2037:11: note: use '==' to turn this assignment into an equality comparison [00:01:59] 2037 | if (n = elt->user_flags) do { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:2082:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2082 | unsigned long size = LOCAL->pseudo ? unix_pseudo (stream,LOCAL->buf) : 0; [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:01:59] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:01:59] | ^ [00:01:59] unix.c:2090:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2090 | unix_xstatus (stream,LOCAL->buf,elt,NIL,flag) + [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1989:54: note: passing argument to parameter 'status' here [00:01:59] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:01:59] | ^ [00:01:59] unix.c:2098:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2098 | size = unix_pseudo (stream,LOCAL->buf); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:01:59] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:01:59] | ^ [00:01:59] unix.c:2101:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 2101 | if (ret = unix_extend (stream,size)) { [00:01:59] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2101:11: note: place parentheses around the assignment to silence this warning [00:01:59] 2101 | if (ret = unix_extend (stream,size)) { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:2101:11: note: use '==' to turn this assignment into an equality comparison [00:01:59] 2101 | if (ret = unix_extend (stream,size)) { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:2118:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2118 | unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:01:59] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:01:59] | ^ [00:01:59] unix.c:2118:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2118 | unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:136:36: note: passing argument to parameter 's' here [00:01:59] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:01:59] | ^ [00:01:59] unix.c:2135:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2135 | unix_xstatus (stream,LOCAL->buf,elt,NIL,flag)))) { [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1989:54: note: passing argument to parameter 'status' here [00:01:59] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:01:59] | ^ [00:01:59] unix.c:2149:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2149 | unix_write (&f,LOCAL->buf,elt->private.special.text.size); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:136:36: note: passing argument to parameter 's' here [00:01:59] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:01:59] | ^ [00:01:59] unix.c:2170:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2170 | j = unix_xstatus (stream,LOCAL->buf,elt,NIL,flag)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:1989:54: note: passing argument to parameter 'status' here [00:01:59] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:01:59] | ^ [00:01:59] unix.c:2169:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2169 | unix_write (&f,LOCAL->buf, [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] unix.c:136:36: note: passing argument to parameter 's' here [00:01:59] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:01:59] | ^ [00:01:59] unix.c:2255:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2255 | sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2256:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2256 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:2277:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2277 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); [00:01:59] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2282:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2282 | if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:01:59] 86 | long safe_write (int fd,char *buf,long nbytes); [00:01:59] | ^ [00:01:59] unix.c:2288:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2288 | sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2289:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2289 | if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:2311:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:01:59] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2311:11: note: place parentheses around the assignment to silence this warning [00:01:59] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:2311:11: note: use '==' to turn this assignment into an equality comparison [00:01:59] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:2327:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:01:59] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:01:59] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:01:59] unix.c:2327:11: note: place parentheses around the assignment to silence this warning [00:01:59] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:01:59] | ^ [00:01:59] | ( ) [00:01:59] unix.c:2327:11: note: use '==' to turn this assignment into an equality comparison [00:01:59] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:01:59] | ^ [00:01:59] | == [00:01:59] unix.c:2461:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2461 | if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && [00:01:59] | ^~~~ [00:01:59] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:2461:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2461 | if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:2476:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2476 | if (!compare_cstring (mailbox,"INBOX")) return unix_create (NIL,"mbox"); [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:2476:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2476 | if (!compare_cstring (mailbox,"INBOX")) return unix_create (NIL,"mbox"); [00:01:59] | ^~~~~~~ [00:01:59] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:01:59] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:01:59] | ^ [00:01:59] unix.c:2604:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2604 | sprintf (LOCAL->buf,"Mail drop %s is not in standard Unix format", [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2606:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2606 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:2618:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2618 | sprintf (LOCAL->buf,"New mail move failed: %s",strerror (errno)); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2619:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2619 | MM_LOG (LOCAL->buf,WARN); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:2625:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2625 | sprintf (LOCAL->buf,"Mail drop %s lock failure, old=%lu now=%lu", [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2627:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2627 | MM_LOG (LOCAL->buf,ERROR); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] unix.c:2643:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2643 | sprintf (LOCAL->buf,"Moved %lu bytes of new mail to %s from %s", [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:01:59] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:01:59] | ^ [00:01:59] unix.c:2648:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:01:59] 2648 | else MM_LOG (LOCAL->buf,WARN); [00:01:59] | ^~~~~~~~~~ [00:01:59] unix.c:81:15: note: expanded from macro 'LOCAL' [00:01:59] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:01:59] | ^ [00:01:59] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:01:59] 1605 | void mm_log (char *string,long errflg); [00:01:59] | ^ [00:01:59] 105 warnings generated. [00:01:59] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mbx.c [00:02:00] mbx.c:307:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 307 | else if (((error = errno) == ENOENT) && !compare_cstring (name,"INBOX")) [00:02:00] | ^~~~ [00:02:00] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:307:66: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 307 | else if (((error = errno) == ENOENT) && !compare_cstring (name,"INBOX")) [00:02:00] | ^~~~~~~ [00:02:00] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:480:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 480 | if (s = strrchr (tmp,'/')) { [00:02:00] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:480:11: note: place parentheses around the assignment to silence this warning [00:02:00] 480 | if (s = strrchr (tmp,'/')) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:480:11: note: use '==' to turn this assignment into an equality comparison [00:02:00] 480 | if (s = strrchr (tmp,'/')) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:506:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 506 | if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); [00:02:00] | ^~~ [00:02:00] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:506:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 506 | if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); [00:02:00] | ^~~~~~~ [00:02:00] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:587:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 587 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:00] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:590:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 590 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:00] | ^~~~~~~~~~~~~~~ [00:02:00] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:590:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 590 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:00] | ^~~~~~~ [00:02:00] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:677:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 677 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:00] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:678:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 678 | mail_sequence (stream,sequence))) [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:00] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:706:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 706 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); [00:02:00] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:709:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 709 | read (LOCAL->fd,s = LOCAL->buf,*length); [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:746:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 746 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:825:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 825 | else if (ret = mbx_parse (stream)) { [00:02:00] | ~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:825:20: note: place parentheses around the assignment to silence this warning [00:02:00] 825 | else if (ret = mbx_parse (stream)) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:825:20: note: use '==' to turn this assignment into an equality comparison [00:02:00] 825 | else if (ret = mbx_parse (stream)) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:829:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:00] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:829:12: note: place parentheses around the assignment to silence this warning [00:02:00] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:829:12: note: use '==' to turn this assignment into an equality comparison [00:02:00] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:856:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 856 | sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",i); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:857:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 857 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:889:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 889 | mail_uid_sequence (stream,sequence) : [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:00] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:890:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:00] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:888:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:00] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] 889 | mail_uid_sequence (stream,sequence) : [00:02:00] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:00] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:888:11: note: place parentheses around the assignment to silence this warning [00:02:00] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:00] | ^ [00:02:00] | ( [00:02:00] 889 | mail_uid_sequence (stream,sequence) : [00:02:00] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:00] | [00:02:00] | ) [00:02:00] mbx.c:888:11: note: use '==' to turn this assignment into an equality comparison [00:02:00] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:895:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:00] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:895:19: note: place parentheses around the assignment to silence this warning [00:02:00] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:895:19: note: use '==' to turn this assignment into an equality comparison [00:02:00] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:896:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 896 | sprintf (LOCAL->buf,"Expunged %lu messages",nexp); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:897:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 897 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:900:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 900 | sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",reclaimed); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:901:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 901 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:938:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 938 | if (j = hdrlen + txtlen) { [00:02:00] | ~~^~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:938:8: note: place parentheses around the assignment to silence this warning [00:02:00] 938 | if (j = hdrlen + txtlen) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:938:8: note: use '==' to turn this assignment into an equality comparison [00:02:00] 938 | if (j = hdrlen + txtlen) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:940:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 940 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:00] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:00] | ^ [00:02:00] mbx.c:941:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 941 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:00] 105 | size_t strlen(const char *) __pure; [00:02:00] | ^ [00:02:00] mbx.c:941:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 941 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:00] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:947:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 947 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:00] 105 | size_t strlen(const char *) __pure; [00:02:00] | ^ [00:02:00] mbx.c:947:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 947 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:963:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 963 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:964:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 964 | MM_LOG (LOCAL->buf,WARN); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:999:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 999 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:00] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:1000:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1000 | mail_sequence (stream,sequence))) return NIL; [00:02:00] | ^~~~~~~~ [00:02:00] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:00] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:00] | ^ [00:02:00] mbx.c:1009:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1009 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1010:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1010 | MM_LOG (LOCAL->buf,ERROR); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:1014:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1014 | sprintf (LOCAL->buf,"Invalid MBX-format mailbox name: %.80s",mailbox); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1015:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1015 | MM_LOG (LOCAL->buf,ERROR); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:1019:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1019 | sprintf (LOCAL->buf,"Not a MBX-format mailbox: %.80s",mailbox); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1020:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1020 | MM_LOG (LOCAL->buf,ERROR); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:1032:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1032 | mail_date(LOCAL->buf,elt);/* build target header */ [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:00] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:00] | ^ [00:02:00] mbx.c:1035:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:00] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1035:8: note: place parentheses around the assignment to silence this warning [00:02:00] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1035:8: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:1037:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1037 | if (!compare_cstring (s,t) && (k |= 1 << m)) break; [00:02:00] | ^ [00:02:00] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:1037:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1037 | if (!compare_cstring (s,t) && (k |= 1 << m)) break; [00:02:00] | ^ [00:02:00] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:1038:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1038 | sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-%08lx\015\012", [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:00] 105 | size_t strlen(const char *) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1038:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1038 | sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-%08lx\015\012", [00:02:00] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1044:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:00] 105 | size_t strlen(const char *) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1044:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1044:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:00] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1044:15: note: place parentheses around the assignment to silence this warning [00:02:00] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1044:15: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:1047:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1047 | ret = write (fd,LOCAL->buf,j) >= 0; [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1058:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1058 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1059:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1059 | MM_LOG (LOCAL->buf,ERROR); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:00] 1605 | void mm_log (char *string,long errflg); [00:02:00] | ^ [00:02:00] mbx.c:1065:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1065 | sprintf (LOCAL->buf,"%08lx",dstream->uid_last); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1066:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1066 | write (fd,LOCAL->buf,8); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1123:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1123 | if (compare_cstring (mailbox,"INBOX")) { [00:02:00] | ^~~~~~~ [00:02:00] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:1123:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1123 | if (compare_cstring (mailbox,"INBOX")) { [00:02:00] | ^~~~~~~ [00:02:00] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:00] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:00] | ^ [00:02:00] mbx.c:1165:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1165 | if (!mail_parse_date (&elt,date)) { [00:02:00] | ^~~~ [00:02:00] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:00] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:00] | ^ [00:02:00] mbx.c:1274:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1274 | stream->uid_validity = strtoul (LOCAL->buf + 7,NIL,16); [00:02:00] | ^~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1277:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1277 | i = strtoul (LOCAL->buf + 15,NIL,16); [00:02:00] | ^~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1281:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1281 | (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); [00:02:00] | ^ [00:02:00] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:00] 85 | char *strchr(const char *, int) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1281:31: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1281 | (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); [00:02:00] | ^ ~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1284:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1284 | if (!stream->user_flags[i] && (strlen (s) <= MAXUSERFLAG)) [00:02:00] | ^ [00:02:00] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:00] 105 | size_t strlen(const char *) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1285:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1285 | stream->user_flags[i] = cpystr (s); [00:02:00] | ^ [00:02:00] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:00] 84 | char *cpystr (const char *string); [00:02:00] | ^ [00:02:00] mbx.c:1295:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1295 | strtoul (LOCAL->buf + HDRSIZE - 8,NIL,16) : 0; [00:02:00] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1312:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1312 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:00] 85 | char *strchr(const char *, int) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1312:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1312 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:00] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1321:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:00] 85 | char *strchr(const char *, int) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1321:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:00] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1321:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:00] | ^~~ [00:02:00] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:00] 85 | char *strchr(const char *, int) __pure; [00:02:00] | ^ [00:02:00] mbx.c:1321:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:00] | ^ ~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1351:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1351 | if (!(j = strtoul (s,(char **) &x,10)) && (!(x && *x))) { [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1369:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1369 | if ((m = strtoul (t+13,NIL,16)) && [00:02:00] | ^~~~ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1385:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1385 | if ((k = strtoul (t+8,NIL,16)) & fEXPUNGED) { [00:02:00] | ^~~ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1419:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1419 | elt->user_flags = strtoul (t,NIL,16); [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1501:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1501 | sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag read!", [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1503:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1503 | fatal (LOCAL->buf); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1510:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1510 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1511:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1511 | fatal (LOCAL->buf); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1515:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1515 | sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", [00:02:00] | ^~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1518:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1518 | fatal (LOCAL->buf+50); [00:02:00] | ^~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1522:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1522 | i = strtoul (LOCAL->buf+9,NIL,16); [00:02:00] | ^~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1531:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1531 | elt->user_flags = strtoul (LOCAL->buf+1,NIL,16); [00:02:00] | ^~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1547:9: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1547 | char *s = LOCAL->buf; [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:1558:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1558 | sprintf (LOCAL->buf + HDRSIZE - 10,"%08lx\015\012",LOCAL->lastpid); [00:02:00] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1562:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1562 | if (write (LOCAL->fd,LOCAL->buf + CYGKLUDGEOFFSET, [00:02:00] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1585:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1585 | sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag update!", [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1587:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1587 | fatal (LOCAL->buf); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1594:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1594 | sprintf (LOCAL->buf,"Unable to read old status: %s",strerror (errno)); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1595:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1595 | fatal (LOCAL->buf); [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1599:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1599 | sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", [00:02:00] | ^~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1602:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1602 | fatal (LOCAL->buf+50); [00:02:00] | ^~~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:00] 32 | void fatal (char *string); [00:02:00] | ^ [00:02:00] mbx.c:1607:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1607 | fEXPUNGED : (strtoul (LOCAL->buf+9,NIL,16)) & fEXPUNGED) + [00:02:00] | ^~~~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:00] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:00] | ^ [00:02:00] mbx.c:1605:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1605 | sprintf (LOCAL->buf,"%08lx%04x-%08lx",elt->user_flags,(unsigned) [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:00] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:00] | ^ [00:02:00] mbx.c:1615:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1615 | if (write (LOCAL->fd,LOCAL->buf,21) > 0) break; [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1644:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:00] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1644:13: note: place parentheses around the assignment to silence this warning [00:02:00] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1644:13: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:1663:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1663 | if (hdr) *hdr = LOCAL->buf; [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:1670:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1670 | if (hdr) *hdr = LOCAL->buf; [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:1680:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1680 | if (hdr) *hdr = LOCAL->buf; /* possibly return header too */ [00:02:00] | ^ ~~~~~~~~~~ [00:02:00] mbx.c:1736:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:00] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1736:13: note: place parentheses around the assignment to silence this warning [00:02:00] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1736:13: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:1761:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:00] 1761 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:00] | ^~~~~~~~~~ [00:02:00] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:00] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:00] | ^ [00:02:00] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:00] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:00] | ^ [00:02:00] mbx.c:1776:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:00] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1776:11: note: place parentheses around the assignment to silence this warning [00:02:00] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1776:11: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:00] | ^ [00:02:00] | == [00:02:00] mbx.c:1795:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:00] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:00] | ~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:00] mbx.c:1795:15: note: place parentheses around the assignment to silence this warning [00:02:00] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:00] | ^ [00:02:00] | ( ) [00:02:00] mbx.c:1795:15: note: use '==' to turn this assignment into an equality comparison [00:02:00] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:00] | ^ [00:02:00] | == [00:02:00] 103 warnings generated. [00:02:00] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mmdf.c [00:02:02] mmdf.c:557:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 557 | if (s = strrchr (s,'/')) { [00:02:02] | ~~^~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:557:8: note: place parentheses around the assignment to silence this warning [00:02:02] 557 | if (s = strrchr (s,'/')) { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:557:8: note: use '==' to turn this assignment into an equality comparison [00:02:02] 557 | if (s = strrchr (s,'/')) { [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:607:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 607 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:02] | ^~~~~~~~~~~~~~~ [00:02:02] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:607:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 607 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:619:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 619 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:765:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 765 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 766 | elt->private.msg.header.text.size) + 1); [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:779:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 779 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:792:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 792 | *length = mail_filter (LOCAL->buf,*length,mmdf_hlines,FT_NOT); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1706:34: note: passing argument to parameter 'text' here [00:02:02] 1706 | unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, [00:02:02] | ^ [00:02:02] mmdf.c:842:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 842 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 843 | elt->private.msg.text.text.size) + 1); [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:870:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 870 | d.chunk = tmp; /* initial buffer chunk */ [00:02:02] | ^ ~~~ [00:02:02] mmdf.c:873:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 873 | for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (c = SNX (&bs)) { [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:926:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 926 | sprintf (LOCAL->buf,"Mailbox stat failed, aborted: %s", [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:928:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 928 | MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:985:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 985 | mail_uid_sequence (stream,sequence) : [00:02:02] | ^~~~~~~~ [00:02:02] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:02] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:02] | ^ [00:02:02] mmdf.c:986:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:02] | ^~~~~~~~ [00:02:02] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:02] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:02] | ^ [00:02:02] mmdf.c:984:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:02] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 985 | mail_uid_sequence (stream,sequence) : [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 987 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] 988 | mmdf_parse (stream,&lock,LOCK_EX)) { [00:02:02] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:984:11: note: place parentheses around the assignment to silence this warning [00:02:02] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:02] | ^ [00:02:02] | ( [00:02:02] 985 | mail_uid_sequence (stream,sequence) : [00:02:02] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:02] 987 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:02] 988 | mmdf_parse (stream,&lock,LOCK_EX)) { [00:02:02] | [00:02:02] | ) [00:02:02] mmdf.c:984:11: note: use '==' to turn this assignment into an equality comparison [00:02:02] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:999:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 999 | if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); [00:02:02] | ^ ~~~~~~~~~~ [00:02:02] mmdf.c:1038:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1038 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:02] | ^~~~~~~~ [00:02:02] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:02] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:02] | ^ [00:02:02] mmdf.c:1039:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1039 | mail_sequence (stream,sequence))) return NIL; [00:02:02] | ^~~~~~~~ [00:02:02] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:02] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:02] | ^ [00:02:02] mmdf.c:1044:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1044 | if (compare_cstring (mailbox,"INBOX")) { [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1044:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1044 | if (compare_cstring (mailbox,"INBOX")) { [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1051:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1051 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1052:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1052 | MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1056:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1056 | sprintf (LOCAL->buf,"Invalid MMDF-format mailbox name: %.80s",mailbox); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1057:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1057 | MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1061:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1061 | sprintf (LOCAL->buf,"Not a MMDF-format mailbox: %.80s",mailbox); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1062:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1062 | MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1071:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1071 | sprintf (LOCAL->buf,"Unable to write-open mailbox for COPYUID: %.80s", [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1073:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1073 | MM_LOG (LOCAL->buf,WARN); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1082:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1082 | sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1083:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1083 | MM_LOG (LOCAL->buf,ERROR); /* log the error */ [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1092:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1092 | if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:02] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:02] | ^ [00:02:02] mmdf.c:1100:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1100 | mmdf_xstatus (stream,LOCAL->buf,elt,++(tstream->uid_last),LONGT) : [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:287:54: note: passing argument to parameter 'status' here [00:02:02] 287 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:02] | ^ [00:02:02] mmdf.c:1101:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1101 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,NIL); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:287:54: note: passing argument to parameter 'status' here [00:02:02] 287 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:02] | ^ [00:02:02] mmdf.c:1102:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1102 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:02] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:02] | ^ [00:02:02] mmdf.c:1117:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1117 | sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1143:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1143 | if (!ret) MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1188:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1188 | if (compare_cstring (mailbox,"INBOX")) { [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1188:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1188 | if (compare_cstring (mailbox,"INBOX")) { [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1230:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1230 | if (!mail_parse_date (&elt,date)) { [00:02:02] | ^~~~ [00:02:02] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:02] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:02] | ^ [00:02:02] mmdf.c:1332:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1332 | if ((s = stream->user_flags[find_rightmost_bit (&uf)]) && [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1394:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1394:23: note: place parentheses around the assignment to silence this warning [00:02:02] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:1394:23: note: use '==' to turn this assignment into an equality comparison [00:02:02] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:1397:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:02] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:02] | ~~^~~~~~~ [00:02:02] mmdf.c:1397:14: note: remove extraneous parentheses around the comparison to silence this warning [00:02:02] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:02] | ~ ^ ~ [00:02:02] mmdf.c:1397:14: note: use '=' to turn this equality comparison into an assignment [00:02:02] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:02] | ^~ [00:02:02] | = [00:02:02] mmdf.c:1591:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1591 | sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1592:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1592 | MM_LOG (tmp,ERROR); [00:02:02] | ^~~ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1601:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1601 | sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1603:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1603 | MM_LOG (tmp,ERROR); /* this is pretty bad */ [00:02:02] | ^~~ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1612:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1612:14: note: place parentheses around the assignment to silence this warning [00:02:02] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:1612:14: note: use '==' to turn this assignment into an equality comparison [00:02:02] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:1615:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1615 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:02] | ^ ~~~~~~~~~~ [00:02:02] mmdf.c:1624:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1624 | s = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1628:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1628 | sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1634:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1634 | s = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1639:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1639 | MM_LOG (tmp,ERROR); [00:02:02] | ^~~ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1656:4: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1656 | s = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1692:15: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1692 | sprintf (tmp,"Unable to parse internal date: %s",(char *) date); [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1693:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1693 | MM_LOG (tmp,WARN); [00:02:02] | ^~~ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1710:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1710 | if (t) s = t = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1736:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:02] | ^ [00:02:02] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:02] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:02] | ^ [00:02:02] mmdf.c:1736:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1736:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:02] | ^ [00:02:02] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:02] 105 | size_t strlen(const char *) __pure; [00:02:02] | ^ [00:02:02] mmdf.c:1742:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1742 | if (!compare_csizedtext (stream->user_flags[j],&uf)) { [00:02:02] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:02] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:02:02] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1790:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1790 | u = strpbrk (s," \n\r"); [00:02:02] | ^ [00:02:02] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:02] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:02] | ^ [00:02:02] mmdf.c:1790:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1790 | u = strpbrk (s," \n\r"); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1797:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1797 | strncpy (stream->user_flags[j],s,k); [00:02:02] | ^ [00:02:02] /usr/include/string.h:117:59: note: passing argument to parameter here [00:02:02] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:02:02] | ^ [00:02:02] mmdf.c:1825:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1825 | sprintf (tmp,"Message %lu UID %lu already has UID %lu", [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1830:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1830 | sprintf (tmp,"Message %lu UID %lu less than %lu", [00:02:02] | ^~~ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:1850:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1850 | MM_LOG (tmp,WARN); [00:02:02] | ^~~ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:1906:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1906 | if (!compare_cstring (tmp,"STATUS") || [00:02:02] | ^~~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1907:27: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1907 | !compare_cstring (tmp,"X-STATUS") || [00:02:02] | ^~~~~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1908:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1908 | !compare_cstring (tmp,"X-KEYWORDS") || [00:02:02] | ^~~~~~~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1909:27: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1909 | !compare_cstring (tmp,"X-UID") || [00:02:02] | ^~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1910:27: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1910 | !compare_cstring (tmp,"X-IMAP") || [00:02:02] | ^~~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1911:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1911 | !compare_cstring (tmp,"X-IMAPBASE")) { [00:02:02] | ^~~~~~~~~~~~ [00:02:02] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:02] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:02] | ^ [00:02:02] mmdf.c:1934:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1934:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1934:14: note: place parentheses around the assignment to silence this warning [00:02:02] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:1934:14: note: use '==' to turn this assignment into an equality comparison [00:02:02] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:1958:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1958 | s = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:1983:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 1983 | s = mmdf_mbxline (stream,&bs,&i); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2178:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2178:44: note: place parentheses around the assignment to silence this warning [00:02:02] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:2178:44: note: use '==' to turn this assignment into an equality comparison [00:02:02] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:2200:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 2200 | if (n = elt->user_flags) do { [00:02:02] | ~~^~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2200:11: note: place parentheses around the assignment to silence this warning [00:02:02] 2200 | if (n = elt->user_flags) do { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:2200:11: note: use '==' to turn this assignment into an equality comparison [00:02:02] 2200 | if (n = elt->user_flags) do { [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:2245:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2245 | unsigned long size = LOCAL->pseudo ? mmdf_pseudo (stream,LOCAL->buf) : 0; [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:02] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:02] | ^ [00:02:02] mmdf.c:2253:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2253 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag) + [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:02] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:02] | ^ [00:02:02] mmdf.c:2261:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2261 | size = mmdf_pseudo (stream,LOCAL->buf); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:02] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:02] | ^ [00:02:02] mmdf.c:2264:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:02] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2264:11: note: place parentheses around the assignment to silence this warning [00:02:02] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:2264:11: note: use '==' to turn this assignment into an equality comparison [00:02:02] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:2281:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2281 | mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:02] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:02] | ^ [00:02:02] mmdf.c:2281:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2281 | mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:02] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:02] | ^ [00:02:02] mmdf.c:2298:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2298 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag)))) { [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:02] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:02] | ^ [00:02:02] mmdf.c:2312:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2312 | mmdf_write (&f,LOCAL->buf,elt->private.special.text.size); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:02] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:02] | ^ [00:02:02] mmdf.c:2333:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2333 | j = mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:02] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:02] | ^ [00:02:02] mmdf.c:2332:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2332 | mmdf_write (&f,LOCAL->buf, [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:02] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:02] | ^ [00:02:02] mmdf.c:2401:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2401 | sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:2402:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2402 | MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:2423:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2423 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); [00:02:02] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2428:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2428 | if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:02] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:02] | ^ [00:02:02] mmdf.c:2434:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2434 | sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:02] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:02] | ^ [00:02:02] mmdf.c:2435:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:02] 2435 | if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); [00:02:02] | ^~~~~~~~~~ [00:02:02] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:02] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:02] | ^ [00:02:02] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:02] 1605 | void mm_log (char *string,long errflg); [00:02:02] | ^ [00:02:02] mmdf.c:2457:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2457:11: note: place parentheses around the assignment to silence this warning [00:02:02] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:2457:11: note: use '==' to turn this assignment into an equality comparison [00:02:02] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:02] | ^ [00:02:02] | == [00:02:02] mmdf.c:2473:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:02] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:02] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:02] mmdf.c:2473:11: note: place parentheses around the assignment to silence this warning [00:02:02] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:02] | ^ [00:02:02] | ( ) [00:02:02] mmdf.c:2473:11: note: use '==' to turn this assignment into an equality comparison [00:02:02] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:02] | ^ [00:02:02] | == [00:02:02] 96 warnings generated. [00:02:02] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` tenex.c [00:02:03] tenex.c:211:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 211 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:03] | ^~~~ [00:02:03] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:211:56: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 211 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:03] | ^~~~~~~ [00:02:03] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:324:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:03] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:03] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:324:11: note: place parentheses around the assignment to silence this warning [00:02:03] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:03] | ^ [00:02:03] | ( ) [00:02:03] tenex.c:324:11: note: use '==' to turn this assignment into an equality comparison [00:02:03] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:03] | ^ [00:02:03] | == [00:02:03] tenex.c:350:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 350 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:03] | ^~~ [00:02:03] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:350:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 350 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:03] | ^~~~~~~ [00:02:03] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:427:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 427 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:433:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 433 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:03] | ^~~~~~~~~~~~~~~ [00:02:03] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:433:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 433 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:03] | ^~~~~~~ [00:02:03] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:500:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 500 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:03] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:501:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 501 | mail_sequence (stream,sequence))) [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:03] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:511:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 511 | LOCAL->buf = (char *) fs_get (LOCAL->buflen + 1); [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:538:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 538 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:03] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:539:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 539 | mail_sequence (stream,sequence))) [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:03] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:564:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 564 | LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:574:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 574 | *length = strcrlfcpy (&LOCAL->buf,&LOCAL->buflen,s,i); [00:02:03] | ^ [00:02:03] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:03] 33 | unsigned char *src,unsigned long srcl); [00:02:03] | ^ [00:02:03] tenex.c:609:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 609 | LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:632:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 632 | strcrlfcpy (&LOCAL->text.data,&LOCAL->text.size,s,i); [00:02:03] | ^ [00:02:03] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:03] 33 | unsigned char *src,unsigned long srcl); [00:02:03] | ^ [00:02:03] tenex.c:772:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:03] 772 | if (j = hdrlen + txtlen) { [00:02:03] | ~~^~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:772:8: note: place parentheses around the assignment to silence this warning [00:02:03] 772 | if (j = hdrlen + txtlen) { [00:02:03] | ^ [00:02:03] | ( ) [00:02:03] tenex.c:772:8: note: use '==' to turn this assignment into an equality comparison [00:02:03] 772 | if (j = hdrlen + txtlen) { [00:02:03] | ^ [00:02:03] | == [00:02:03] tenex.c:774:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 774 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:03] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:03] | ^ [00:02:03] tenex.c:775:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 775 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:03] 105 | size_t strlen(const char *) __pure; [00:02:03] | ^ [00:02:03] tenex.c:775:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 775 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:03] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:781:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 781 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:03] 105 | size_t strlen(const char *) __pure; [00:02:03] | ^ [00:02:03] tenex.c:781:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 781 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:03] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:03] | ^ [00:02:03] tenex.c:797:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 797 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:798:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 798 | MM_LOG (LOCAL->buf,WARN); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:833:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 833 | mail_uid_sequence (stream,sequence) : [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:03] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:834:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 834 | mail_sequence (stream,sequence)) : LONGT) && [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:03] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:895:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 895 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:03] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:03] | ^ [00:02:03] tenex.c:911:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 911 | sprintf (LOCAL->buf, [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:914:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 914 | MM_LOG (LOCAL->buf,WARN); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:918:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 918 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:920:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 920 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:961:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 961 | if (!tenex_isvalid (mailbox,LOCAL->buf)) switch (errno) { [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] tenex.c:176:37: note: passing argument to parameter 'tmp' here [00:02:03] 176 | int tenex_isvalid (char *name,char *tmp) [00:02:03] | ^ [00:02:03] tenex.c:968:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 968 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:969:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 969 | MM_LOG (LOCAL->buf,ERROR); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:973:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 973 | sprintf (LOCAL->buf,"Invalid Tenex-format mailbox name: %.80s",mailbox); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:974:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 974 | MM_LOG (LOCAL->buf,ERROR); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:978:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 978 | sprintf (LOCAL->buf,"Not a Tenex-format mailbox: %.80s",mailbox); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:979:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 979 | MM_LOG (LOCAL->buf,ERROR); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:982:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 982 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:03] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:983:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 983 | mail_sequence (stream,sequence))) return NIL; [00:02:03] | ^~~~~~~~ [00:02:03] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:03] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:03] | ^ [00:02:03] tenex.c:986:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 986 | sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:987:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 987 | MM_LOG (LOCAL->buf,ERROR); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:1009:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1009 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:03] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:03] | ^ [00:02:03] tenex.c:1014:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1014 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:1015:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1015 | MM_LOG (LOCAL->buf,ERROR); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:03] 1605 | void mm_log (char *string,long errflg); [00:02:03] | ^ [00:02:03] tenex.c:1072:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1072 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:03] | ^~~~~~~ [00:02:03] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:1072:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1072 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:03] | ^~~~~~~ [00:02:03] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:03] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:03] | ^ [00:02:03] tenex.c:1122:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1122 | if (!mail_parse_date (&elt,date)) { [00:02:03] | ^~~~ [00:02:03] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:03] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:03] | ^ [00:02:03] tenex.c:1244:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1244 | if (!(s = strchr (LOCAL->buf,'\012'))) { [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:03] 85 | char *strchr(const char *, int) __pure; [00:02:03] | ^ [00:02:03] tenex.c:1244:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1244 | if (!(s = strchr (LOCAL->buf,'\012'))) { [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:1253:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:03] 85 | char *strchr(const char *, int) __pure; [00:02:03] | ^ [00:02:03] tenex.c:1253:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:03] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:1253:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:03] | ^~~ [00:02:03] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:03] 85 | char *strchr(const char *, int) __pure; [00:02:03] | ^ [00:02:03] tenex.c:1253:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:03] | ^ ~~~~~~~~~~~~~~~~ [00:02:03] tenex.c:1276:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1276 | (elt->private.msg.full.text.size = strtoul (s,(char **) &s,10)) && [00:02:03] | ^ [00:02:03] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:03] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:03] | ^ [00:02:03] tenex.c:1300:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1300 | j = strtoul (t,NIL,8); /* get user flags value */ [00:02:03] | ^ [00:02:03] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:03] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:03] | ^ [00:02:03] tenex.c:1378:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1378 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:1379:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1379 | fatal (LOCAL->buf); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:03] 32 | void fatal (char *string); [00:02:03] | ^ [00:02:03] tenex.c:1387:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1387 | j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:03] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:03] | ^ [00:02:03] tenex.c:1413:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1413 | sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:03] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:03] | ^ [00:02:03] tenex.c:1421:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1421 | write (LOCAL->fd,LOCAL->buf,12); [00:02:03] | ^~~~~~~~~~ [00:02:03] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:03] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:03] | ^ [00:02:03] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:03] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:03] | ^ [00:02:03] tenex.c:1456:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:03] 1456 | read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); [00:02:03] | ^ ~~~~~~~~~~ [00:02:03] 63 warnings generated. [00:02:03] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mtx.c [00:02:04] mtx.c:204:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 204 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:04] | ^~~~ [00:02:04] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:204:56: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 204 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:04] | ^~~~~~~ [00:02:04] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:317:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:04] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:317:11: note: place parentheses around the assignment to silence this warning [00:02:04] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] mtx.c:317:11: note: use '==' to turn this assignment into an equality comparison [00:02:04] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:04] | ^ [00:02:04] | == [00:02:04] mtx.c:343:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 343 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:04] | ^~~ [00:02:04] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:343:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 343 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:04] | ^~~~~~~ [00:02:04] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:421:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 421 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:04] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:424:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 424 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:04] | ^~~~~~~~~~~~~~~ [00:02:04] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:424:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 424 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:04] | ^~~~~~~ [00:02:04] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:487:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 487 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:04] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:488:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 488 | mail_sequence (stream,sequence))) [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:04] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:511:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 511 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); [00:02:04] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:546:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 546 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:04] | ^ ~~~~~~~~~~ [00:02:04] mtx.c:683:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 683 | if (j = hdrlen + txtlen) { [00:02:04] | ~~^~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:683:8: note: place parentheses around the assignment to silence this warning [00:02:04] 683 | if (j = hdrlen + txtlen) { [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] mtx.c:683:8: note: use '==' to turn this assignment into an equality comparison [00:02:04] 683 | if (j = hdrlen + txtlen) { [00:02:04] | ^ [00:02:04] | == [00:02:04] mtx.c:685:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 685 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:04] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:04] | ^ [00:02:04] mtx.c:686:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 686 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:04] 105 | size_t strlen(const char *) __pure; [00:02:04] | ^ [00:02:04] mtx.c:686:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 686 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:04] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:692:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 692 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:04] 105 | size_t strlen(const char *) __pure; [00:02:04] | ^ [00:02:04] mtx.c:692:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 692 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:04] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:04] | ^ [00:02:04] mtx.c:708:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 708 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:709:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 709 | MM_LOG (LOCAL->buf,WARN); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:744:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 744 | mail_uid_sequence (stream,sequence) : [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:04] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:745:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 745 | mail_sequence (stream,sequence)) : LONGT) && [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:04] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:806:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 806 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:04] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:04] | ^ [00:02:04] mtx.c:821:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 821 | sprintf (LOCAL->buf, [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:824:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 824 | MM_LOG (LOCAL->buf,WARN); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:828:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 828 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:830:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 830 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:871:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 871 | if (!mtx_isvalid (mailbox,LOCAL->buf)) switch (errno) { [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] mtx.c:169:35: note: passing argument to parameter 'tmp' here [00:02:04] 169 | int mtx_isvalid (char *name,char *tmp) [00:02:04] | ^ [00:02:04] mtx.c:878:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 878 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:879:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 879 | MM_LOG (LOCAL->buf,ERROR); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:883:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 883 | sprintf (LOCAL->buf,"Invalid MTX-format mailbox name: %.80s",mailbox); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:884:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 884 | MM_LOG (LOCAL->buf,ERROR); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:888:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 888 | sprintf (LOCAL->buf,"Not a MTX-format mailbox: %.80s",mailbox); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:889:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 889 | MM_LOG (LOCAL->buf,ERROR); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:892:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 892 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:04] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:893:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 893 | mail_sequence (stream,sequence))) return NIL; [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:04] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] mtx.c:896:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 896 | sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:897:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 897 | MM_LOG (LOCAL->buf,ERROR); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:919:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 919 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:04] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:04] | ^ [00:02:04] mtx.c:924:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 924 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:925:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 925 | MM_LOG (LOCAL->buf,ERROR); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:04] 1605 | void mm_log (char *string,long errflg); [00:02:04] | ^ [00:02:04] mtx.c:982:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 982 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:04] | ^~~~~~~ [00:02:04] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:982:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 982 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:04] | ^~~~~~~ [00:02:04] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:04] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:04] | ^ [00:02:04] mtx.c:1032:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1032 | if (!mail_parse_date (&elt,date)) { [00:02:04] | ^~~~ [00:02:04] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:04] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:04] | ^ [00:02:04] mtx.c:1132:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1132 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:04] 85 | char *strchr(const char *, int) __pure; [00:02:04] | ^ [00:02:04] mtx.c:1132:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1132 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:04] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:1141:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:04] 85 | char *strchr(const char *, int) __pure; [00:02:04] | ^ [00:02:04] mtx.c:1141:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:04] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:1141:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:04] | ^~~ [00:02:04] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:04] 85 | char *strchr(const char *, int) __pure; [00:02:04] | ^ [00:02:04] mtx.c:1141:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:04] | ^ ~~~~~~~~~~~~~~~~ [00:02:04] mtx.c:1164:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1164 | (elt->rfc822_size = strtoul (s,(char **) &s,10)) && (!(s && *s)) && [00:02:04] | ^ [00:02:04] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:04] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:04] | ^ [00:02:04] mtx.c:1188:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1188 | j = strtoul (t,NIL,8); /* get user flags value */ [00:02:04] | ^ [00:02:04] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:04] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:04] | ^ [00:02:04] mtx.c:1266:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1266 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:1267:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1267 | fatal (LOCAL->buf); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:04] 32 | void fatal (char *string); [00:02:04] | ^ [00:02:04] mtx.c:1275:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1275 | j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:04] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:04] | ^ [00:02:04] mtx.c:1301:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1301 | sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] mtx.c:1309:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 1309 | write (LOCAL->fd,LOCAL->buf,12); [00:02:04] | ^~~~~~~~~~ [00:02:04] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:04] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:04] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:04] | ^ [00:02:04] 57 warnings generated. [00:02:04] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` news.c [00:02:04] news.c:218:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:04] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:04] news.c:218:13: note: place parentheses around the assignment to silence this warning [00:02:04] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:218:13: note: use '==' to turn this assignment into an equality comparison [00:02:04] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:234:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:04] news.c:234:11: note: place parentheses around the assignment to silence this warning [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:234:11: note: use '==' to turn this assignment into an equality comparison [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:234:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ~~^~~~~~~~~~~~~~~~ [00:02:04] news.c:234:44: note: place parentheses around the assignment to silence this warning [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:234:44: note: use '==' to turn this assignment into an equality comparison [00:02:04] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:237:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 237 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:04] | ^~~~ [00:02:04] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:04] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:04] | ^ [00:02:04] news.c:237:29: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 237 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:04] | ^~~~~~~ [00:02:04] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:04] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:04] | ^ [00:02:04] news.c:240:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 240 | if (pmatch_full (name,pattern,'.')) [00:02:04] | ^~~~ [00:02:04] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:04] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:04] | ^ [00:02:04] news.c:240:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 240 | if (pmatch_full (name,pattern,'.')) [00:02:04] | ^~~~~~~ [00:02:04] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:04] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:04] | ^ [00:02:04] news.c:243:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:04] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:04] news.c:243:16: note: place parentheses around the assignment to silence this warning [00:02:04] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:243:16: note: use '==' to turn this assignment into an equality comparison [00:02:04] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:286:34: warning: expression result unused [-Wunused-value] [00:02:04] 286 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:02:04] | ^~~~ [00:02:04] news.c:368:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:04] | ~~^~~~~~~~~~~~~~~~ [00:02:04] news.c:368:12: note: place parentheses around the assignment to silence this warning [00:02:04] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:368:12: note: use '==' to turn this assignment into an equality comparison [00:02:04] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:408:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:04] 408 | char *s = name->d_name; [00:02:04] | ^ ~~~~~~~~~~~~ [00:02:04] news.c:409:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:04] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:04] | ~~^~~~~~ [00:02:04] news.c:409:12: note: place parentheses around the assignment to silence this warning [00:02:04] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:04] | ^ [00:02:04] | ( ) [00:02:04] news.c:409:12: note: use '==' to turn this assignment into an equality comparison [00:02:04] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:04] | ^ [00:02:04] | == [00:02:04] news.c:455:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 455 | mail_uid_sequence (stream,sequence) : [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:04] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] news.c:456:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 456 | mail_sequence (stream,sequence))) [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:04] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] news.c:473:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 473 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:04] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] news.c:473:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 473 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:04] | ^~~~~~~~ [00:02:04] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:04] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:04] | ^ [00:02:04] news.c:494:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 494 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:04] | ^~~~~~~~~~ [00:02:04] news.c:61:15: note: expanded from macro 'LOCAL' [00:02:04] 61 | #define LOCAL ((NEWSLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:04] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:04] | ^ [00:02:04] news.c:499:20: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 499 | ((fd = open (LOCAL->buf,O_RDONLY,NIL)) >= 0)) { [00:02:04] | ^~~~~~~~~~ [00:02:04] news.c:61:15: note: expanded from macro 'LOCAL' [00:02:04] 61 | #define LOCAL ((NEWSLOCAL *) stream->local) [00:02:04] | ^ [00:02:04] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:04] 406 | int open(const char *, int, ...); [00:02:04] | ^ [00:02:04] news.c:503:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:04] 503 | d.chunk = LOCAL->buf; [00:02:04] | ^ ~~~~~~~~~~ [00:02:04] news.c:568:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:04] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ~~~~~~~~~~^~~~~~~~~ [00:02:04] news.c:568:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:04] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ~ ^ ~ [00:02:04] news.c:568:21: note: use '=' to turn this equality comparison into an assignment [00:02:04] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ^~ [00:02:04] | = [00:02:04] news.c:588:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:04] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ~~~~~~~~~~^~~~~~~~~ [00:02:04] news.c:588:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:04] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ~ ^ ~ [00:02:04] news.c:588:21: note: use '=' to turn this equality comparison into an assignment [00:02:04] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:04] | ^~ [00:02:04] | = [00:02:04] 21 warnings generated. [00:02:04] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` phile.c [00:02:05] phile.c:292:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:05] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:05] | ~~^~~~~~~~~~~~~~~~ [00:02:05] phile.c:292:9: note: place parentheses around the assignment to silence this warning [00:02:05] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:05] | ^ [00:02:05] | ( ) [00:02:05] phile.c:292:9: note: use '==' to turn this assignment into an equality comparison [00:02:05] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:05] | ^ [00:02:05] | == [00:02:05] phile.c:305:20: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:05] 305 | LOCAL->env->date = cpystr (tmp); [00:02:05] | ^ ~~~~~~~~~~~~ [00:02:05] phile.c:309:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:05] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:05] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:05] phile.c:309:10: note: place parentheses around the assignment to silence this warning [00:02:05] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:05] | ^ [00:02:05] | ( ) [00:02:05] phile.c:309:10: note: use '==' to turn this assignment into an equality comparison [00:02:05] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:05] | ^ [00:02:05] | == [00:02:05] phile.c:321:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:05] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:05] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:05] phile.c:321:9: note: place parentheses around the assignment to silence this warning [00:02:05] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:05] | ^ [00:02:05] | ( ) [00:02:05] phile.c:321:9: note: use '==' to turn this assignment into an equality comparison [00:02:05] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:05] | ^ [00:02:05] | == [00:02:05] phile.c:327:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:05] 327 | buf->size = strcrlfcpy (&buf->data,&m,s,buf->size); [00:02:05] | ^ [00:02:05] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:05] 33 | unsigned char *src,unsigned long srcl); [00:02:05] | ^ [00:02:05] 5 warnings generated. [00:02:05] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mh.c [00:02:06] mh.c:190:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 190 | if ((mh_allow_inbox && !compare_cstring (name,"INBOX")) || [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:190:49: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 190 | if ((mh_allow_inbox && !compare_cstring (name,"INBOX")) || [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:191:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 191 | !compare_cstring (name,MHINBOX) || [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:191:30: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 191 | !compare_cstring (name,MHINBOX) || [00:02:06] | ^~~~~~~ [00:02:06] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:06] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:06] | ^~~~~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:195:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 195 | ret = (synonly && compare_cstring (name,"INBOX")) ? [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:195:47: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 195 | ret = (synonly && compare_cstring (name,"INBOX")) ? [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:254:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 254 | if (v = strpbrk (s," \t")) { [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:254:8: note: place parentheses around the assignment to silence this warning [00:02:06] 254 | if (v = strpbrk (s," \t")) { [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:254:8: note: use '==' to turn this assignment into an equality comparison [00:02:06] 254 | if (v = strpbrk (s," \t")) { [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:256:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 256 | if (!compare_cstring (s,"Path:")) { [00:02:06] | ^ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:256:28: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 256 | if (!compare_cstring (s,"Path:")) { [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:327:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ~~^~~~~~ [00:02:06] mh.c:327:14: note: place parentheses around the assignment to silence this warning [00:02:06] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:327:14: note: use '==' to turn this assignment into an equality comparison [00:02:06] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:346:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:346:13: note: place parentheses around the assignment to silence this warning [00:02:06] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:346:13: note: use '==' to turn this assignment into an equality comparison [00:02:06] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:359:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 359 | if (s = strpbrk (test,"%*")) { [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:359:13: note: place parentheses around the assignment to silence this warning [00:02:06] 359 | if (s = strpbrk (test,"%*")) { [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:359:13: note: use '==' to turn this assignment into an equality comparison [00:02:06] 359 | if (s = strpbrk (test,"%*")) { [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:366:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 366 | if (s = strrchr (file,'/')) { [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:366:13: note: place parentheses around the assignment to silence this warning [00:02:06] 366 | if (s = strrchr (file,'/')) { [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:366:13: note: use '==' to turn this assignment into an equality comparison [00:02:06] 366 | if (s = strrchr (file,'/')) { [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:374:27: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 374 | if (!compare_cstring (test,MHINBOX)) [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:374:32: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 374 | if (!compare_cstring (test,MHINBOX)) [00:02:06] | ^~~~~~~ [00:02:06] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:06] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:06] | ^~~~~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:403:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 403 | do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:06] | ^ [00:02:06] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:06] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:403:27: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 403 | do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:06] | ^~~~ [00:02:06] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:06] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:404:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:404:14: note: place parentheses around the assignment to silence this warning [00:02:06] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:404:14: note: use '==' to turn this assignment into an equality comparison [00:02:06] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:428:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:06] | ~~~^~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:428:10: note: place parentheses around the assignment to silence this warning [00:02:06] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:428:10: note: use '==' to turn this assignment into an equality comparison [00:02:06] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:429:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:06] | ~~^~~~~~~~~~~~~~ [00:02:06] mh.c:429:14: note: place parentheses around the assignment to silence this warning [00:02:06] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:429:14: note: use '==' to turn this assignment into an equality comparison [00:02:06] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:435:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 435 | if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); [00:02:06] | ^~~~ [00:02:06] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:06] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:435:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 435 | if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); [00:02:06] | ^~~ [00:02:06] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:06] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:437:16: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 437 | if (dmatch (name,pat,'/') && [00:02:06] | ^~~~ [00:02:06] ./env.h:30:29: note: passing argument to parameter 's' here [00:02:06] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:437:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 437 | if (dmatch (name,pat,'/') && [00:02:06] | ^~~ [00:02:06] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:02:06] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:06] | ^ [00:02:06] mh.c:513:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:06] | ~~~~~^~~~~~~~~~~~~~~ [00:02:06] mh.c:513:12: note: place parentheses around the assignment to silence this warning [00:02:06] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:513:12: note: use '==' to turn this assignment into an equality comparison [00:02:06] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:516:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:06] | ~~^~~~~~~~~~~~~~~~ [00:02:06] mh.c:516:14: note: place parentheses around the assignment to silence this warning [00:02:06] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:516:14: note: use '==' to turn this assignment into an equality comparison [00:02:06] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:553:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:06] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:553:11: note: place parentheses around the assignment to silence this warning [00:02:06] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:553:11: note: use '==' to turn this assignment into an equality comparison [00:02:06] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:587:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 587 | (!compare_cstring (stream->mailbox,MHINBOX) || [00:02:06] | ^~~~~~~~~~~~~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:587:40: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 587 | (!compare_cstring (stream->mailbox,MHINBOX) || [00:02:06] | ^~~~~~~ [00:02:06] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:06] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:06] | ^~~~~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:592:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 592 | !compare_cstring (stream->mailbox,"INBOX")) ? T : NIL; [00:02:06] | ^~~~~~~~~~~~~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:592:40: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 592 | !compare_cstring (stream->mailbox,"INBOX")) ? T : NIL; [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:638:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 638 | mail_uid_sequence (stream,sequence) : [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:06] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:639:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 639 | mail_sequence (stream,sequence))) [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:06] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:662:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 662 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:667:20: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 667 | ((fd = open (LOCAL->buf,O_RDONLY,NIL)) >= 0)) { [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:06] 406 | int open(const char *, int, ...); [00:02:06] | ^ [00:02:06] mh.c:671:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 671 | d.chunk = LOCAL->buf; [00:02:06] | ^ ~~~~~~~~~~ [00:02:06] mh.c:737:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:06] 737 | if ((CHR (&bs) == '\012')) { [00:02:06] | ~~~~~~~~~~^~~~~~~~~ [00:02:06] mh.c:737:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:06] 737 | if ((CHR (&bs) == '\012')) { [00:02:06] | ~ ^ ~ [00:02:06] mh.c:737:21: note: use '=' to turn this equality comparison into an assignment [00:02:06] 737 | if ((CHR (&bs) == '\012')) { [00:02:06] | ^~ [00:02:06] | = [00:02:06] mh.c:763:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:06] 763 | if ((CHR (&bs) == '\012')) { [00:02:06] | ~~~~~~~~~~^~~~~~~~~ [00:02:06] mh.c:763:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:06] 763 | if ((CHR (&bs) == '\012')) { [00:02:06] | ~ ^ ~ [00:02:06] mh.c:763:21: note: use '=' to turn this equality comparison into an assignment [00:02:06] 763 | if ((CHR (&bs) == '\012')) { [00:02:06] | ^~ [00:02:06] | = [00:02:06] mh.c:886:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ~~^~~~~~~~~~~~~~~~ [00:02:06] mh.c:886:11: note: place parentheses around the assignment to silence this warning [00:02:06] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:886:11: note: use '==' to turn this assignment into an equality comparison [00:02:06] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:899:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 899 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,++old); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:902:19: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 902 | if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:06] 406 | int open(const char *, int, ...); [00:02:06] | ^ [00:02:06] mh.c:926:16: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 926 | mh_setdate (LOCAL->buf,elt); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] mh.c:107:24: note: passing argument to parameter 'file' here [00:02:06] 107 | void mh_setdate (char *file,MESSAGECACHE *elt); [00:02:06] | ^ [00:02:06] mh.c:934:14: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 934 | unlink (LOCAL->buf);/* flush this file */ [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:06] 376 | int unlink(const char *); [00:02:06] | ^ [00:02:06] mh.c:981:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 981 | mail_uid_sequence (stream,sequence) : [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:06] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:982:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:06] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:980:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:06] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:06] 981 | mail_uid_sequence (stream,sequence) : [00:02:06] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:06] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:06] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:06] mh.c:980:11: note: place parentheses around the assignment to silence this warning [00:02:06] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:06] | ^ [00:02:06] | ( [00:02:06] 981 | mail_uid_sequence (stream,sequence) : [00:02:06] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:06] | [00:02:06] | ) [00:02:06] mh.c:980:11: note: use '==' to turn this assignment into an equality comparison [00:02:06] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:987:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 987 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:988:14: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 988 | if (unlink (LOCAL->buf)) {/* try to delete the message */ [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:06] 376 | int unlink(const char *); [00:02:06] | ^ [00:02:06] mh.c:989:13: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 989 | sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:991:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 991 | mm_log (LOCAL->buf,(long) NIL); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:06] 1605 | void mm_log (char *string,long errflg); [00:02:06] | ^ [00:02:06] mh.c:1009:16: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1009 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:1010:15: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1010 | mm_log (LOCAL->buf,(long) NIL); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:06] 1605 | void mm_log (char *string,long errflg); [00:02:06] | ^ [00:02:06] mh.c:1041:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1041 | if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:06] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:1042:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1042 | mail_sequence (stream,sequence)) [00:02:06] | ^~~~~~~~ [00:02:06] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:06] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:06] | ^ [00:02:06] mh.c:1045:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1045 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:06] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:06] | ^ [00:02:06] mh.c:1046:18: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1046 | if ((fd = open (LOCAL->buf,O_RDONLY,NIL)) < 0) return NIL; [00:02:06] | ^~~~~~~~~~ [00:02:06] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:06] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:06] | ^ [00:02:06] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:06] 406 | int open(const char *, int, ...); [00:02:06] | ^ [00:02:06] mh.c:1058:10: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1058 | d.chunk = LOCAL->buf; [00:02:06] | ^ ~~~~~~~~~~ [00:02:06] mh.c:1106:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1106 | if (!((!compare_cstring (mailbox,MHINBOX) || [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1106:38: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1106 | if (!((!compare_cstring (mailbox,MHINBOX) || [00:02:06] | ^~~~~~~ [00:02:06] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:06] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:06] | ^~~~~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1107:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1107 | !compare_cstring (mailbox,"INBOX")) && [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1107:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1107 | !compare_cstring (mailbox,"INBOX")) && [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1135:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ~~^~~~~~~~~~~~~~~~ [00:02:06] mh.c:1135:9: note: place parentheses around the assignment to silence this warning [00:02:06] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:1135:9: note: use '==' to turn this assignment into an equality comparison [00:02:06] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:1146:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1146 | if (!mail_parse_date (&elt,date)) { [00:02:06] | ^~~~ [00:02:06] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:06] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:06] | ^ [00:02:06] mh.c:1197:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:06] 1197 | char *s = name->d_name; [00:02:06] | ^ ~~~~~~~~~~~~ [00:02:06] mh.c:1198:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:06] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ~~^~~~~~ [00:02:06] mh.c:1198:12: note: place parentheses around the assignment to silence this warning [00:02:06] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ^ [00:02:06] | ( ) [00:02:06] mh.c:1198:12: note: use '==' to turn this assignment into an equality comparison [00:02:06] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:06] | ^ [00:02:06] | == [00:02:06] mh.c:1227:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1227:30: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:06] | ^~~~~~~ [00:02:06] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:06] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:06] | ^~~~~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1227:60: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:06] | ^~~~ [00:02:06] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1227:65: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:06] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:06] | ^~~~~~~ [00:02:06] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:06] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:06] | ^ [00:02:06] mh.c:1260:34: warning: expression result unused [-Wunused-value] [00:02:06] 1260 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:02:06] | ^~~~ [00:02:06] 70 warnings generated. [00:02:06] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mx.c [00:02:08] mx.c:186:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 186 | else if (!compare_cstring (name,"INBOX")) errno = NIL; [00:02:08] | ^~~~ [00:02:08] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:186:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 186 | else if (!compare_cstring (name,"INBOX")) errno = NIL; [00:02:08] | ^~~~~~~ [00:02:08] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:241:31: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] [00:02:08] 241 | if (strcmp (name,MXINDEXNAME+1)) [00:02:08] | ~~~~~~~~~~~^~ [00:02:08] mx.c:241:31: note: use array indexing to silence this warning [00:02:08] 241 | if (strcmp (name,MXINDEXNAME+1)) [00:02:08] | ^ [00:02:08] | & [ ] [00:02:08] mx.c:242:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:08] | ~~^~~~~~~~~ [00:02:08] mx.c:242:14: note: place parentheses around the assignment to silence this warning [00:02:08] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:242:14: note: use '==' to turn this assignment into an equality comparison [00:02:08] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:289:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ~~^~~~~~~~~~~~~~~~ [00:02:08] mx.c:289:9: note: place parentheses around the assignment to silence this warning [00:02:08] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:289:9: note: use '==' to turn this assignment into an equality comparison [00:02:08] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:395:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:08] | ~~~~~^~~~~~~~~~~~~~~ [00:02:08] mx.c:395:14: note: place parentheses around the assignment to silence this warning [00:02:08] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:395:14: note: use '==' to turn this assignment into an equality comparison [00:02:08] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:398:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:08] | ~~^~~~~~~~~~~~~~~~ [00:02:08] mx.c:398:16: note: place parentheses around the assignment to silence this warning [00:02:08] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:398:16: note: use '==' to turn this assignment into an equality comparison [00:02:08] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:439:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 439 | if (compare_cstring (old,"INBOX")) { [00:02:08] | ^~~ [00:02:08] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:439:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 439 | if (compare_cstring (old,"INBOX")) { [00:02:08] | ^~~~~~~ [00:02:08] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:441:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:08] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:441:13: note: place parentheses around the assignment to silence this warning [00:02:08] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:441:13: note: use '==' to turn this assignment into an equality comparison [00:02:08] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:469:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ~~^~~~~~~~~~~~~~~~ [00:02:08] mx.c:469:13: note: place parentheses around the assignment to silence this warning [00:02:08] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:469:13: note: use '==' to turn this assignment into an equality comparison [00:02:08] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:470:70: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] [00:02:08] 470 | if (lasterror || mx_rename_work (tmp,srcl,tmp1,dstl,MXINDEXNAME+1)) [00:02:08] | ~~~~~~~~~~~^~ [00:02:08] mx.c:470:70: note: use array indexing to silence this warning [00:02:08] 470 | if (lasterror || mx_rename_work (tmp,srcl,tmp1,dstl,MXINDEXNAME+1)) [00:02:08] | ^ [00:02:08] | & [ ] [00:02:08] mx.c:518:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 518 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:08] | ^~~~~~~~~~~~~~~ [00:02:08] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:518:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 518 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:08] | ^~~~~~~ [00:02:08] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:524:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 524 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:08] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:573:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 573 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:08] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:574:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 574 | mail_sequence (stream,sequence))) [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:08] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:591:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 591 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,elt->private.uid); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:593:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 593 | if (!elt->rfc822_size && !stat (LOCAL->buf,&sbuf)) { [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/sys/stat.h:396:33: note: passing argument to parameter here [00:02:08] 396 | int stat(const char * __restrict, struct stat * __restrict); [00:02:08] | ^ [00:02:08] mx.c:633:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 633 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = elt->rfc822_size) + 1); [00:02:08] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:648:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 648 | cpytxt (&elt->private.msg.header.text,LOCAL->buf,i); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:02:08] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:02:08] | ^ [00:02:08] mx.c:649:41: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 649 | cpytxt (&elt->private.msg.text.text,LOCAL->buf+i,elt->rfc822_size - i); [00:02:08] | ^~~~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:02:08] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:02:08] | ^ [00:02:08] mx.c:752:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:08] | ~~^~~~~~~~~~~~~~~~ [00:02:08] mx.c:752:11: note: place parentheses around the assignment to silence this warning [00:02:08] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:752:11: note: use '==' to turn this assignment into an equality comparison [00:02:08] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:767:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 767 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,++old); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:770:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 770 | if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:08] 406 | int open(const char *, int, ...); [00:02:08] | ^ [00:02:08] mx.c:794:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 794 | mx_setdate (LOCAL->buf,elt); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] mx.c:106:24: note: passing argument to parameter 'file' here [00:02:08] 106 | void mx_setdate (char *file,MESSAGECACHE *elt); [00:02:08] | ^ [00:02:08] mx.c:801:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 801 | unlink (LOCAL->buf);/* flush this file */ [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:08] 376 | int unlink(const char *); [00:02:08] | ^ [00:02:08] mx.c:804:8: warning: data argument not used by format string [-Wformat-extra-args] [00:02:08] 803 | sprintf (tmp,"Message copy to MX mailbox failed: %.80s", [00:02:08] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] 804 | s,strerror (errno)); [00:02:08] | ^ [00:02:08] mx.c:848:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 848 | mail_uid_sequence (stream,sequence) : [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:08] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:849:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:08] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:847:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:08] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] 848 | mail_uid_sequence (stream,sequence) : [00:02:08] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:08] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] 850 | mx_lockindex (stream)) { /* lock the index */ [00:02:08] | ~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:847:11: note: place parentheses around the assignment to silence this warning [00:02:08] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:08] | ^ [00:02:08] | ( [00:02:08] 848 | mail_uid_sequence (stream,sequence) : [00:02:08] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:08] 850 | mx_lockindex (stream)) { /* lock the index */ [00:02:08] | [00:02:08] | ) [00:02:08] mx.c:847:11: note: use '==' to turn this assignment into an equality comparison [00:02:08] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:855:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 855 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,elt->private.uid); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:856:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 856 | if (unlink (LOCAL->buf)) {/* try to delete the message */ [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:08] 376 | int unlink(const char *); [00:02:08] | ^ [00:02:08] mx.c:857:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 857 | sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:859:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 859 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:08] 1605 | void mm_log (char *string,long errflg); [00:02:08] | ^ [00:02:08] mx.c:875:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 875 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:876:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 876 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:08] 1605 | void mm_log (char *string,long errflg); [00:02:08] | ^ [00:02:08] mx.c:913:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 913 | sprintf (LOCAL->buf,"Not a MX-format mailbox: %.80s",mailbox); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:08] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:08] | ^ [00:02:08] mx.c:914:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 914 | MM_LOG (LOCAL->buf,ERROR); [00:02:08] | ^~~~~~~~~~ [00:02:08] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:08] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:08] | ^ [00:02:08] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:08] 1605 | void mm_log (char *string,long errflg); [00:02:08] | ^ [00:02:08] mx.c:921:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 921 | if (!(ret = ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:08] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:922:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 922 | mail_sequence (stream,sequence)))); [00:02:08] | ^~~~~~~~ [00:02:08] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:08] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:08] | ^ [00:02:08] mx.c:939:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:08] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] 940 | >= 0)) { [00:02:08] | ~~~~~ [00:02:08] mx.c:939:10: note: place parentheses around the assignment to silence this warning [00:02:08] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:08] | ^ [00:02:08] | ( [00:02:08] 940 | >= 0)) { [00:02:08] | [00:02:08] | ) [00:02:08] mx.c:939:10: note: use '==' to turn this assignment into an equality comparison [00:02:08] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:944:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 944 | d.chunk = LOCAL->buf; [00:02:08] | ^ ~~~~~~~~~~ [00:02:08] mx.c:949:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 949 | if (j = elt->user_flags) do [00:02:08] | ~~^~~~~~~~~~~~~~~~~ [00:02:08] mx.c:949:10: note: place parentheses around the assignment to silence this warning [00:02:08] 949 | if (j = elt->user_flags) do [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:949:10: note: use '==' to turn this assignment into an equality comparison [00:02:08] 949 | if (j = elt->user_flags) do [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:950:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:08] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:950:12: note: place parentheses around the assignment to silence this warning [00:02:08] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:950:12: note: use '==' to turn this assignment into an equality comparison [00:02:08] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:960:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:08] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:960:12: note: place parentheses around the assignment to silence this warning [00:02:08] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:960:12: note: use '==' to turn this assignment into an equality comparison [00:02:08] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:1003:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 1003 | if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); [00:02:08] | ^~~~~~~ [00:02:08] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:1003:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 1003 | if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); [00:02:08] | ^~~~~~~ [00:02:08] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:08] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:08] | ^ [00:02:08] mx.c:1038:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:08] 1038 | else if (date && !(ret = mail_parse_date (&elt,date))) { [00:02:08] | ^~~~ [00:02:08] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:08] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:08] | ^ [00:02:08] mx.c:1116:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:08] 1116 | char *s = name->d_name; [00:02:08] | ^ ~~~~~~~~~~~~ [00:02:08] mx.c:1117:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:08] | ~~^~~~~~ [00:02:08] mx.c:1117:12: note: place parentheses around the assignment to silence this warning [00:02:08] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:1117:12: note: use '==' to turn this assignment into an equality comparison [00:02:08] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:08] | ^ [00:02:08] | == [00:02:08] mx.c:1188:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:08] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:08] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:08] mx.c:1188:13: note: place parentheses around the assignment to silence this warning [00:02:08] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:08] | ^ [00:02:08] | ( ) [00:02:08] mx.c:1188:13: note: use '==' to turn this assignment into an equality comparison [00:02:08] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:08] | ^ [00:02:08] | == [00:02:08] 52 warnings generated. [00:02:08] `cat CCTYPE` `cat SHLIBFLAGS` -c `cat CFLAGS` mix.c [00:02:10] mix.c:334:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ~~^~~~~~~~~~~~~~~~ [00:02:10] mix.c:334:9: note: place parentheses around the assignment to silence this warning [00:02:10] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:334:9: note: use '==' to turn this assignment into an equality comparison [00:02:10] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:478:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:10] | ~~~~~^~~~~~~~~~~~~~~ [00:02:10] mix.c:478:14: note: place parentheses around the assignment to silence this warning [00:02:10] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:478:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:481:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~ [00:02:10] mix.c:481:16: note: place parentheses around the assignment to silence this warning [00:02:10] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:481:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:527:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 527 | if (compare_cstring (old,"INBOX")) { [00:02:10] | ^~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:527:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 527 | if (compare_cstring (old,"INBOX")) { [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:529:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 529 | if (s = strrchr (tmp1,'/')) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:529:13: note: place parentheses around the assignment to silence this warning [00:02:10] 529 | if (s = strrchr (tmp1,'/')) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:529:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 529 | if (s = strrchr (tmp1,'/')) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:567:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ~~^~~~~~~~~~~~~~~~ [00:02:10] mix.c:567:13: note: place parentheses around the assignment to silence this warning [00:02:10] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:567:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:590:26: warning: passing 'const char[256]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:10] 590 | return mix_dirfmttest (name->d_name); [00:02:10] | ^~~~~~~~~~~~ [00:02:10] mix.c:285:28: note: passing argument to parameter 'name' here [00:02:10] 285 | long mix_dirfmttest (char *name) [00:02:10] | ^ [00:02:10] mix.c:606:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 606 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:606:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 606 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:608:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 608 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:611:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 611 | mix_dir (LOCAL->buf,stream->mailbox); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:163:22: note: passing argument to parameter 'dst' here [00:02:10] 163 | char *mix_dir (char *dst,char *name); [00:02:10] | ^ [00:02:10] mix.c:613:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 613 | stream->mailbox = cpystr (LOCAL->buf); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:10] 84 | char *cpystr (const char *string); [00:02:10] | ^ [00:02:10] mix.c:616:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 616 | ((LOCAL->mfd = open (mix_file (LOCAL->buf,stream->mailbox,MIXMETA), [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:10] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:10] | ^ [00:02:10] mix.c:619:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 619 | ((LOCAL->mfd = open (mix_file (LOCAL->buf,stream->mailbox,MIXMETA), [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:10] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:10] | ^ [00:02:10] mix.c:627:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 627 | LOCAL->index = cpystr (mix_file (LOCAL->buf,stream->mailbox,MIXINDEX)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:10] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:10] | ^ [00:02:10] mix.c:628:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 628 | LOCAL->status = cpystr (mix_file (LOCAL->buf,stream->mailbox,MIXSTATUS)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:10] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:10] | ^ [00:02:10] mix.c:629:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 629 | LOCAL->sortcache = cpystr (mix_file (LOCAL->buf,stream->mailbox, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:10] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:10] | ^ [00:02:10] mix.c:634:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:10] | ~~~~~~~^~~~~~~~~~~~~~~~ [00:02:10] mix.c:634:16: note: place parentheses around the assignment to silence this warning [00:02:10] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:634:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:718:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 718 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:730:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 730 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = j) + 1); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:735:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 735 | !strncmp (LOCAL->buf,MSGTOK,MSGTSZ) && [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:10] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:10] | ^ [00:02:10] mix.c:752:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:10] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:10] | ^ [00:02:10] mix.c:752:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:752:11: note: place parentheses around the assignment to silence this warning [00:02:10] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:752:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:781:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 781 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:805:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 805 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:830:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 830 | if (((flags & ST_UID) ? mail_uid_sequence (stream,sequence) : [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:10] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:831:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 831 | mail_sequence (stream,sequence)) && [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:10] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:963:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:10] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:963:16: note: place parentheses around the assignment to silence this warning [00:02:10] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:963:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:973:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 973 | sprintf (LOCAL->buf,"Can't copy new mail at message: %lu",i - 1); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:974:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 974 | MM_LOG (LOCAL->buf,WARN); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:988:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 989 | (LOCAL->internal ? NIL : LONGT))) { [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:988:13: note: place parentheses around the assignment to silence this warning [00:02:10] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ^ [00:02:10] | ( [00:02:10] 989 | (LOCAL->internal ? NIL : LONGT))) { [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:988:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1033:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1033 | mail_uid_sequence (stream,sequence) : [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:10] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:1034:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1034 | mail_sequence (stream,sequence))) || stream->rdonly); [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:10] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:1036:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1037 | LOCAL->internal ? NIL : LONGT)) { [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1036:18: note: place parentheses around the assignment to silence this warning [00:02:10] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ^ [00:02:10] | ( [00:02:10] 1037 | LOCAL->internal ? NIL : LONGT)) { [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:1036:18: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1085:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1085 | sprintf (LOCAL->buf,"Can't locate mix message file %.08lx", [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1087:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1087 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1096:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1096 | else if (mix_file_data (LOCAL->buf,stream->mailbox,cur->fileno) && [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:1098:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1098 | truncate (LOCAL->buf,0) : unlink (LOCAL->buf))) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:456:27: note: passing argument to parameter here [00:02:10] 456 | int truncate(const char *, __off_t); [00:02:10] | ^ [00:02:10] mix.c:1098:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1098 | truncate (LOCAL->buf,0) : unlink (LOCAL->buf))) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:10] 376 | int unlink(const char *); [00:02:10] | ^ [00:02:10] mix.c:1099:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1099 | sprintf (LOCAL->buf, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1102:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1102 | MM_LOG (LOCAL->buf,WARN); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1114:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ~~^~~~~~~~~~~~~~~~ [00:02:10] mix.c:1114:13: note: place parentheses around the assignment to silence this warning [00:02:10] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1114:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1123:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1123:15: note: place parentheses around the assignment to silence this warning [00:02:10] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1123:15: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1135:26: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1135 | if (nexp) sprintf (s = LOCAL->buf,"Expunged %lu messages",nexp); [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:1137:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1137 | sprintf (s=LOCAL->buf,"Reclaimed %lu bytes of expunged space",reclaimed); [00:02:10] | ^~~~~~~~~~~ [00:02:10] mix.c:1157:23: warning: passing 'const char[256]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:10] 1157 | if (mix_dirfmttest (name->d_name)) { [00:02:10] | ^~~~~~~~~~~~ [00:02:10] mix.c:285:28: note: passing argument to parameter 'name' here [00:02:10] 285 | long mix_dirfmttest (char *name) [00:02:10] | ^ [00:02:10] mix.c:1158:18: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:10] 1158 | for (c = *(s = name->d_name + sizeof (MIXNAME) - 1); c && isxdigit (c); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1174:9: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:10] 1174 | char *n1 = (*d1)->d_name + sizeof (MIXNAME) - 1; [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1175:9: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:10] 1175 | char *n2 = (*d2)->d_name + sizeof (MIXNAME) - 1; [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1227:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1227 | mix_file_data (LOCAL->buf,stream->mailbox,burp->fileno); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:1231:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1231 | if (stat (LOCAL->buf,&sbuf)) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/sys/stat.h:396:33: note: passing argument to parameter here [00:02:10] 396 | int stat(const char * __restrict, struct stat * __restrict); [00:02:10] | ^ [00:02:10] mix.c:1232:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1232 | sprintf (LOCAL->buf,staterr,burp->name,strerror (errno)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1233:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1233 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1236:54: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1236 | else if (mix_burp_check (&burp->set,sbuf.st_size,LOCAL->buf)) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:145:55: note: passing argument to parameter 'file' here [00:02:10] 145 | long mix_burp_check (SEARCHSET *set,size_t size,char *file); [00:02:10] | ^ [00:02:10] mix.c:1240:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:456:27: note: passing argument to parameter here [00:02:10] 456 | int truncate(const char *, __off_t); [00:02:10] | ^ [00:02:10] mix.c:1240:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1240:20: note: place parentheses around the assignment to silence this warning [00:02:10] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1240:20: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1243:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1243 | sprintf (LOCAL->buf,truncerr,burp->name,strerror (errno)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1244:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1244 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1249:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1249 | else if (((fd = open (LOCAL->buf,O_RDWR,NIL)) < 0) || [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:10] 406 | int open(const char *, int, ...); [00:02:10] | ^ [00:02:10] mix.c:1251:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1251 | sprintf (LOCAL->buf,"Error opening mix message file %.80s: %.80s", [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1253:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1253 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1257:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1257 | sprintf (LOCAL->buf,staterr,burp->name,strerror (errno)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1258:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1258 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1263:52: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1263 | else if (mix_burp_check (&burp->set,sbuf.st_size,LOCAL->buf)) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:145:55: note: passing argument to parameter 'file' here [00:02:10] 145 | long mix_burp_check (SEARCHSET *set,size_t size,char *file); [00:02:10] | ^ [00:02:10] mix.c:1268:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1268 | strncmp (LOCAL->buf,MSGTOK,MSGTSZ)) { [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:10] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:10] | ^ [00:02:10] mix.c:1269:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1269 | sprintf (LOCAL->buf,"Bad message token in mix message file at %lu", [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1271:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1271 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1311:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1311 | sprintf (LOCAL->buf,truncerr,burp->name,strerror (errno)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1312:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1312 | MM_LOG (LOCAL->buf,WARN); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:1344:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1344 | } while (set = set->next); [00:02:10] | ~~~~^~~~~~~~~~~ [00:02:10] mix.c:1344:16: note: place parentheses around the assignment to silence this warning [00:02:10] 1344 | } while (set = set->next); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1344:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1344 | } while (set = set->next); [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1361:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1361 | long ret = mix_isvalid (mailbox,LOCAL->buf); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:234:36: note: passing argument to parameter 'meta' here [00:02:10] 234 | long mix_isvalid (char *name,char *meta) [00:02:10] | ^ [00:02:10] mix.c:1379:68: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1379 | else if (!(ret = ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:10] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:1380:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1380 | mail_sequence (stream,sequence)))); [00:02:10] | ^~~~~~~~ [00:02:10] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:10] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:10] | ^ [00:02:10] mix.c:1382:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1383 | !astream->rdonly && [00:02:10] | ~~~~~~~~~~~~~~~~~~~ [00:02:10] 1384 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1385 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1386 | LONGT : NIL) { [00:02:10] | ~~~~~~~~~~~ [00:02:10] mix.c:1382:16: note: place parentheses around the assignment to silence this warning [00:02:10] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ^ [00:02:10] | ( [00:02:10] 1383 | !astream->rdonly && [00:02:10] 1384 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:10] 1385 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:10] 1386 | LONGT : NIL) { [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:1382:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1397:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1397 | sprintf (local->buf,MSRFMT,MSGTOK,(unsigned long) 0,0,0,0,0,0,0,'+',0,0, [00:02:10] | ^~~~~~~~~~ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1399:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1399 | hdrsize = strlen (local->buf); [00:02:10] | ^~~~~~~~~~ [00:02:10] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:10] 105 | size_t strlen(const char *) __pure; [00:02:10] | ^ [00:02:10] mix.c:1408:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:10] | ^~~~~ [00:02:10] mix.c:157:55: note: passing argument to parameter 'size' here [00:02:10] 157 | FILE *mix_data_open (MAILSTREAM *stream,int *fd,long *size, [00:02:10] | ^ [00:02:10] mix.c:1408:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1408:14: note: place parentheses around the assignment to silence this warning [00:02:10] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1408:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1420:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1420 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:1432:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1432 | d.chunk = LOCAL->buf; [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:1437:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1437 | if (j = elt->user_flags) do [00:02:10] | ~~^~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1437:12: note: place parentheses around the assignment to silence this warning [00:02:10] 1437 | if (j = elt->user_flags) do [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1437:12: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1437 | if (j = elt->user_flags) do [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1460:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1460 | if (ret = (mix_meta_update (astream) && [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1461 | mix_index_update (astream,idxf,LONGT))) { [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1460:10: note: place parentheses around the assignment to silence this warning [00:02:10] 1460 | if (ret = (mix_meta_update (astream) && [00:02:10] | ^ [00:02:10] | ( [00:02:10] 1461 | mix_index_update (astream,idxf,LONGT))) { [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:1460:10: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1460 | if (ret = (mix_meta_update (astream) && [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1524:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:1524:40: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] mix.c:1524:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1525 | NIL : mix_create (NIL,"INBOX")) [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1524:13: note: place parentheses around the assignment to silence this warning [00:02:10] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:10] | ^ [00:02:10] | ( [00:02:10] 1525 | NIL : mix_create (NIL,"INBOX")) [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:1524:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1541:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1542 | !astream->rdonly && [00:02:10] | ~~~~~~~~~~~~~~~~~~~ [00:02:10] 1543 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1544 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 1545 | LONGT : NIL) { [00:02:10] | ~~~~~~~~~~~ [00:02:10] mix.c:1541:13: note: place parentheses around the assignment to silence this warning [00:02:10] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ^ [00:02:10] | ( [00:02:10] 1542 | !astream->rdonly && [00:02:10] 1543 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:10] 1544 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:10] 1545 | LONGT : NIL) { [00:02:10] | [00:02:10] | ) [00:02:10] mix.c:1541:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1555:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1555 | sprintf (local->buf,MSRFMT,MSGTOK,(unsigned long) 0,0,0,0,0,0,0,'+',0,0, [00:02:10] | ^~~~~~~~~~ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:1557:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1557 | hdrsize = strlen (local->buf); [00:02:10] | ^~~~~~~~~~ [00:02:10] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:10] 105 | size_t strlen(const char *) __pure; [00:02:10] | ^ [00:02:10] mix.c:1561:45: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:10] | ^~~~~ [00:02:10] mix.c:157:55: note: passing argument to parameter 'size' here [00:02:10] 157 | FILE *mix_data_open (MAILSTREAM *stream,int *fd,long *size, [00:02:10] | ^ [00:02:10] mix.c:1561:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1561:16: note: place parentheses around the assignment to silence this warning [00:02:10] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1561:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1569:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1569 | else if (date && !(ret = mail_parse_date (&elt,date))) { [00:02:10] | ^~~~ [00:02:10] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:10] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:10] | ^ [00:02:10] mix.c:1576:30: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1576 | mail_parse_date (&elt,tmp); [00:02:10] | ^~~ [00:02:10] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:10] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:10] | ^ [00:02:10] mix.c:1750:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1750:14: note: place parentheses around the assignment to silence this warning [00:02:10] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1750:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1757:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1757:8: note: place parentheses around the assignment to silence this warning [00:02:10] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1757:8: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1786:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:1786:14: note: place parentheses around the assignment to silence this warning [00:02:10] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:1786:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:1831:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1831 | while ((s = mix_read_record (*idxf,LOCAL->buf,LOCAL->buflen,"index")) && [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:10] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:10] | ^ [00:02:10] mix.c:1973:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1973 | if (stat (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:2055:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2055 | sprintf (LOCAL->buf, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:2058:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2058 | MM_LOG (LOCAL->buf,ERROR); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:10] 1605 | void mm_log (char *string,long errflg); [00:02:10] | ^ [00:02:10] mix.c:2068:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2068 | while ((t = s = mix_read_record (statf,LOCAL->buf,LOCAL->buflen, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:10] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:10] | ^ [00:02:10] mix.c:2164:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2164 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2169:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2169 | (read (LOCAL->mfd,s = LOCAL->buf,sbuf.st_size) != sbuf.st_size)) [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:2204:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2204 | sprintf (LOCAL->buf,SEQFMT,LOCAL->metaseq = mix_modseq (LOCAL->metaseq)); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:2205:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2205 | sprintf (LOCAL->buf + strlen (LOCAL->buf),MTAFMT, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:10] 105 | size_t strlen(const char *) __pure; [00:02:10] | ^ [00:02:10] mix.c:2205:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2205 | sprintf (LOCAL->buf + strlen (LOCAL->buf),MTAFMT, [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:10] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:10] | ^ [00:02:10] mix.c:2207:56: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2207 | for (i = 0, c = 'K', s = ss = LOCAL->buf + strlen (LOCAL->buf); [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:10] 105 | size_t strlen(const char *) __pure; [00:02:10] | ^ [00:02:10] mix.c:2208:26: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2208 | (i < NUSERFLAGS) && (t = stream->user_flags[i]); ++i) { [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2222:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2222 | ret = (write (LOCAL->mfd,LOCAL->buf,i) == i) ? LONGT : NIL; [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:10] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:10] | ^ [00:02:10] mix.c:2417:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2417 | if ((*fd = open (mix_file_data (LOCAL->buf,stream->mailbox,LOCAL->newmsg), [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:2434:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2434 | (LOCAL->buf,stream->mailbox, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:10] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:10] | ^ [00:02:10] mix.c:2458:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2458:14: note: place parentheses around the assignment to silence this warning [00:02:10] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:2458:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:2499:44: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2499 | while ((s = t = mix_read_record (srtcf,LOCAL->buf,LOCAL->buflen, [00:02:10] | ^~~~~~~~~~ [00:02:10] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:10] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:10] | ^ [00:02:10] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:10] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:10] | ^ [00:02:10] mix.c:2522:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2522:15: note: place parentheses around the assignment to silence this warning [00:02:10] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:2522:15: note: use '==' to turn this assignment into an equality comparison [00:02:10] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:2598:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2598 | LOCAL->buf = (char *) [00:02:10] | ^ ~~~~~~~~ [00:02:10] 2599 | fs_get ((LOCAL->buflen = reflen) + 1); [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2610:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2610 | for (s = LOCAL->buf,sl = NIL, [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:2618:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 2618 | sl->text.data = cpystr (s); [00:02:10] | ^ ~~~~~~~~~~ [00:02:10] mix.c:2701:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 2701 | if (sl = s->references) /* count length of references */ [00:02:10] | ~~~^~~~~~~~~~~~~~~ [00:02:10] mix.c:2701:9: note: place parentheses around the assignment to silence this warning [00:02:10] 2701 | if (sl = s->references) /* count length of references */ [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:2701:9: note: use '==' to turn this assignment into an equality comparison [00:02:10] 2701 | if (sl = s->references) /* count length of references */ [00:02:10] | ^ [00:02:10] | == [00:02:10] mix.c:2756:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 2756 | if (s = strchr (buf,'\012')) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:10] mix.c:2756:11: note: place parentheses around the assignment to silence this warning [00:02:10] 2756 | if (s = strchr (buf,'\012')) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] mix.c:2756:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 2756 | if (s = strchr (buf,'\012')) { [00:02:10] | ^ [00:02:10] | == [00:02:10] 119 warnings generated. [00:02:10] sh -c 'rm -rf c-client.a || true' [00:02:10] ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a [00:02:10] `cat CCTYPE` `cat SHLIBFLAGS` `cat CFLAGS` `cat OSCFLAGS` -c osdep.c -o osdep.so [00:02:10] In file included from osdep.c:45: [00:02:10] ./nl_unix.c:49:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 49 | if (!*dst) *dst = (char *) fs_get ((*dstl = i) + 1); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:258: [00:02:10] ./pmatch.c:41:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 41 | if (!pat[1]) return (delim && strchr (s,delim)) ? NIL : T; [00:02:10] | ^ [00:02:10] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:10] 85 | char *strchr(const char *, int) __pure; [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:1: [00:02:10] ./auth_ext.c:62:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_ext.c:62:17: note: place parentheses around the assignment to silence this warning [00:02:10] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_ext.c:62:17: note: use '==' to turn this assignment into an equality comparison [00:02:10] 62 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_ext.c:66:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_ext.c:66:21: note: place parentheses around the assignment to silence this warning [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_ext.c:66:21: note: use '==' to turn this assignment into an equality comparison [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | == [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:103:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:103:17: note: place parentheses around the assignment to silence this warning [00:02:10] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:103:17: note: use '==' to turn this assignment into an equality comparison [00:02:10] 103 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:118:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 118 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:118:16: note: place parentheses around the assignment to silence this warning [00:02:10] 118 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:118:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 118 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:153:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:153:12: note: place parentheses around the assignment to silence this warning [00:02:10] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:153:12: note: use '==' to turn this assignment into an equality comparison [00:02:10] 153 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:155:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 155 | if (hash = strrchr (user,' ')) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:155:14: note: place parentheses around the assignment to silence this warning [00:02:10] 155 | if (hash = strrchr (user,' ')) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:155:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 155 | if (hash = strrchr (user,' ')) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:158:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:158:20: note: place parentheses around the assignment to silence this warning [00:02:10] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:158:20: note: use '==' to turn this assignment into an equality comparison [00:02:10] 158 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:160:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:160:13: note: place parentheses around the assignment to silence this warning [00:02:10] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:160:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 160 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:194:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 194 | read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:196:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 196 | for (s = user; *s && ((*s < 'A') || (*s > 'Z')); s++); [00:02:10] | ^ ~~~~ [00:02:10] ./auth_md5.c:198:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 198 | lusr = *s ? lcase (cpystr (user)) : NIL; [00:02:10] | ^~~~~~~~~~~~~ [00:02:10] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:10] 83 | unsigned char *lcase (unsigned char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:199:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 199 | for (s = strtok_r ((char *) buf,"\015\012",&r),lret = NIL; s; [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:200:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 200 | s = ret ? NIL : strtok_r (NIL,"\015\012",&r)) [00:02:10] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:202:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 202 | if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { [00:02:10] | ^ [00:02:10] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:10] 85 | char *strchr(const char *, int) __pure; [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:202:35: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 202 | if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { [00:02:10] | ^ ~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:204:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 204 | if (!strcmp (s,user)) ret = cpystr (t); [00:02:10] | ^ [00:02:10] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:10] 90 | int strcmp(const char *, const char *) __pure; [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:204:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 204 | if (!strcmp (s,user)) ret = cpystr (t); [00:02:10] | ^ [00:02:10] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:10] 84 | char *cpystr (const char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:205:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 205 | else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; [00:02:10] | ^ [00:02:10] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:10] 90 | int strcmp(const char *, const char *) __pure; [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:205:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 205 | else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; [00:02:10] | ^~~~ [00:02:10] /usr/include/string.h:90:39: note: passing argument to parameter here [00:02:10] 90 | int strcmp(const char *, const char *) __pure; [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:208:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 208 | if (!ret && lret) ret = cpystr (lret); [00:02:10] | ^~~~ [00:02:10] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:10] 84 | char *cpystr (const char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:2: [00:02:10] ./auth_md5.c:237:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:237:16: note: place parentheses around the assignment to silence this warning [00:02:10] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:237:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 237 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_md5.c:239:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_md5.c:239:9: note: place parentheses around the assignment to silence this warning [00:02:10] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_md5.c:239:9: note: use '==' to turn this assignment into an equality comparison [00:02:10] 239 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:3: [00:02:10] ./auth_pla.c:66:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_pla.c:66:17: note: place parentheses around the assignment to silence this warning [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_pla.c:66:17: note: use '==' to turn this assignment into an equality comparison [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_pla.c:94:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 94 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_pla.c:94:16: note: place parentheses around the assignment to silence this warning [00:02:10] 94 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_pla.c:94:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 94 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_pla.c:123:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 123 | if (aid = (*responder) ("",0,&len)) { [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_pla.c:123:11: note: place parentheses around the assignment to silence this warning [00:02:10] 123 | if (aid = (*responder) ("",0,&len)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_pla.c:123:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 123 | if (aid = (*responder) ("",0,&len)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] In file included from osdep.c:46: [00:02:10] In file included from ./env_unix.c:262: [00:02:10] In file included from ./auths.c:4: [00:02:10] ./auth_log.c:66:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_log.c:66:17: note: place parentheses around the assignment to silence this warning [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_log.c:66:17: note: use '==' to turn this assignment into an equality comparison [00:02:10] 66 | if (challenge = (*challenger) (stream,&clen)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_log.c:81:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 81 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_log.c:81:16: note: place parentheses around the assignment to silence this warning [00:02:10] 81 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_log.c:81:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 81 | if (challenge = (*challenger) (stream,&clen)) [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_log.c:107:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_log.c:107:12: note: place parentheses around the assignment to silence this warning [00:02:10] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_log.c:107:12: note: use '==' to turn this assignment into an equality comparison [00:02:10] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_log.c:108:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_log.c:108:14: note: place parentheses around the assignment to silence this warning [00:02:10] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_log.c:108:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./auth_log.c:110:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:02:10] ./auth_log.c:110:20: note: place parentheses around the assignment to silence this warning [00:02:10] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./auth_log.c:110:20: note: use '==' to turn this assignment into an equality comparison [00:02:10] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:541:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 541 | if (julian = t->tm_yday -julian) [00:02:10] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:541:14: note: place parentheses around the assignment to silence this warning [00:02:10] 541 | if (julian = t->tm_yday -julian) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:541:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 541 | if (julian = t->tm_yday -julian) [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:671:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 671 | struct passwd *pw = getpwnam (user); [00:02:10] | ^~~~ [00:02:10] /usr/include/pwd.h:147:37: note: passing argument to parameter here [00:02:10] 147 | struct passwd *getpwnam(const char *); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:675:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:02:10] | ^~~~ [00:02:10] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:10] 84 | char *cpystr (const char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:675:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:02:10] | ^~~~~~~~~~~~~ [00:02:10] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:10] 83 | unsigned char *lcase (unsigned char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:675:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 675 | pw = getpwnam (s = lcase (cpystr (user))); [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] /usr/include/pwd.h:147:37: note: passing argument to parameter here [00:02:10] 147 | struct passwd *getpwnam(const char *); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:699:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 699 | if (s = auth_md5_pwd (user)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:699:11: note: place parentheses around the assignment to silence this warning [00:02:10] 699 | if (s = auth_md5_pwd (user)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:699:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 699 | if (s = auth_md5_pwd (user)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:701:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 701 | ret = pwuser (user); /* validated, get passwd entry for user */ [00:02:10] | ^~~~ [00:02:10] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:02:10] 668 | static struct passwd *pwuser (unsigned char *user) [00:02:10] | ^ [00:02:10] ./env_unix.c:706:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:02:10] | ^~~~ [00:02:10] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:02:10] 668 | static struct passwd *pwuser (unsigned char *user) [00:02:10] | ^ [00:02:10] ./env_unix.c:706:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:02:10] | ~~~^~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:706:15: note: place parentheses around the assignment to silence this warning [00:02:10] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:706:15: note: use '==' to turn this assignment into an equality comparison [00:02:10] 706 | else if (pw = pwuser (user)) {/* can get user? */ [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:709:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 709 | (*pwd == ' ') && pwd[1] && (ret = pwuser (s))) [00:02:10] | ^ [00:02:10] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:02:10] 668 | static struct passwd *pwuser (unsigned char *user) [00:02:10] | ^ [00:02:10] ./env_unix.c:740:58: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 740 | else if (valpwd (authuser,pwd,argc,argv)) pw = pwuser (user); [00:02:10] | ^~~~ [00:02:10] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:02:10] 668 | static struct passwd *pwuser (unsigned char *user) [00:02:10] | ^ [00:02:10] ./env_unix.c:758:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 758 | return pw_login (pwuser (user),authuser,user,NIL,argc,argv); [00:02:10] | ^~~~ [00:02:10] ./env_unix.c:668:46: note: passing argument to parameter 'user' here [00:02:10] 668 | static struct passwd *pwuser (unsigned char *user) [00:02:10] | ^ [00:02:10] ./env_unix.c:797:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 797 | if (user && auser && *auser && compare_cstring (auser,user)) { [00:02:10] | ^~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:797:59: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 797 | if (user && auser && *auser && compare_cstring (auser,user)) { [00:02:10] | ^~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:800:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 800 | if (!compare_cstring (auser,*t++)) [00:02:10] | ^~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:800:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 800 | if (!compare_cstring (auser,*t++)) [00:02:10] | ^~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1096:47: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1096 | sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1096:54: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1096 | sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1106:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1106 | else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { [00:02:10] | ^~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1106:67: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1106 | else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1130:55: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1130 | if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { [00:02:10] | ^~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1130:59: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1130 | if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1144:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1144 | if (!compare_cstring (name,"INBOX")) name = "INBOX"; [00:02:10] | ^~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1144:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1144 | if (!compare_cstring (name,"INBOX")) name = "INBOX"; [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1158:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1158 | if (!compare_cstring (name+1,"NBOX")) { [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1158:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1158 | if (!compare_cstring (name+1,"NBOX")) { [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1294:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1294 | if (s = strrchr (base->lock,'/')) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:1294:11: note: place parentheses around the assignment to silence this warning [00:02:10] 1294 | if (s = strrchr (base->lock,'/')) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:1294:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1294 | if (s = strrchr (base->lock,'/')) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:1608:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1608 | if (!compare_cstring (s,"set keywords") && !userFlags[0]) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1608:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1608 | if (!compare_cstring (s,"set keywords") && !userFlags[0]) { [00:02:10] | ^~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1622:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1622 | if (!compare_cstring (s,"set new-mailbox-format") || [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1622:28: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1622 | if (!compare_cstring (s,"set new-mailbox-format") || [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1623:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1623 | !compare_cstring (s,"set new-folder-format")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1623:28: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1623 | !compare_cstring (s,"set new-folder-format")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1624:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1624 | if (!compare_cstring (k,"same-as-inbox")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1624:30: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1624 | if (!compare_cstring (k,"same-as-inbox")) { [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1625:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:1625:14: note: place parentheses around the assignment to silence this warning [00:02:10] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:1625:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1625 | if (d = mail_valid (NIL,"INBOX",NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:1626:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1626 | if (!compare_cstring (d->name,"mbox")) [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1626:33: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1626 | if (!compare_cstring (d->name,"mbox")) [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1629:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1629 | else if (!compare_cstring (d->name,"dummy")) d = NIL; [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1629:38: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1629 | else if (!compare_cstring (d->name,"dummy")) d = NIL; [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1633:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1633 | else if (!compare_cstring (k,"system-standard")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1633:35: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1633 | else if (!compare_cstring (k,"system-standard")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1636:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1636 | if (!compare_cstring (k,"mbox")) k = "unix"; [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1636:32: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1636 | if (!compare_cstring (k,"mbox")) k = "unix"; [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1638:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./env_unix.c:1638:14: note: place parentheses around the assignment to silence this warning [00:02:10] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./env_unix.c:1638:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1638 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) [00:02:10] | ^ [00:02:10] | == [00:02:10] ./env_unix.c:1647:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1647 | if (!compare_cstring (s,"set empty-mailbox-format") || [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1647:28: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1647 | if (!compare_cstring (s,"set empty-mailbox-format") || [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1648:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1648 | !compare_cstring (s,"set empty-folder-format")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1648:28: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1648 | !compare_cstring (s,"set empty-folder-format")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1649:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1649 | if (!compare_cstring (k,"invalid")) appendProto = NIL; [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1649:30: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1649 | if (!compare_cstring (k,"invalid")) appendProto = NIL; [00:02:10] | ^~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1650:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1650 | else if (!compare_cstring (k,"same-as-inbox")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1650:35: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1650 | else if (!compare_cstring (k,"same-as-inbox")) [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1652:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1652 | compare_cstring (d->name,"dummy")) ? [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1652:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1652 | compare_cstring (d->name,"dummy")) ? [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1654:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1654 | else if (!compare_cstring (k,"system-standard")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1654:35: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1654 | else if (!compare_cstring (k,"system-standard")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1658:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1658 | d && compare_cstring (d->name,k); d = d->next); [00:02:10] | ^~~~~~~ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1658:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1658 | d && compare_cstring (d->name,k); d = d->next); [00:02:10] | ^ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1669:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1669 | if (!compare_cstring (s,"set local-host")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1669:26: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1669 | if (!compare_cstring (s,"set local-host")) { [00:02:10] | ^~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1673:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1673 | else if (!compare_cstring (s,"set news-active-file")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1673:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1673 | else if (!compare_cstring (s,"set news-active-file")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1677:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1677 | else if (!compare_cstring (s,"set news-spool-directory")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1677:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1677 | else if (!compare_cstring (s,"set news-spool-directory")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1681:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1681 | else if (!compare_cstring (s,"set mh-path")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1681:31: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1681 | else if (!compare_cstring (s,"set mh-path")) [00:02:10] | ^~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1683:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1683 | else if (!compare_cstring (s,"set mh-allow-inbox")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1683:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1683 | else if (!compare_cstring (s,"set mh-allow-inbox")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1685:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1685 | else if (!compare_cstring (s,"set news-state-file")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1685:31: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1685 | else if (!compare_cstring (s,"set news-state-file")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1689:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1689 | else if (!compare_cstring (s,"set ftp-export-directory")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1689:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1689 | else if (!compare_cstring (s,"set ftp-export-directory")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1693:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1693 | else if (!compare_cstring (s,"set public-home-directory")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1693:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1693 | else if (!compare_cstring (s,"set public-home-directory")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1697:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1697 | else if (!compare_cstring (s,"set shared-home-directory")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1697:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1697 | else if (!compare_cstring (s,"set shared-home-directory")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1701:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1701 | else if (!compare_cstring (s,"set system-inbox")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1701:31: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1701 | else if (!compare_cstring (s,"set system-inbox")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1705:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1705 | else if (!compare_cstring (s,"set mail-subdirectory")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1705:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1705 | else if (!compare_cstring (s,"set mail-subdirectory")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1709:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1709 | else if (!compare_cstring (s,"set from-widget")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1709:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1709 | else if (!compare_cstring (s,"set from-widget")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1711:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1711 | compare_cstring (k,"header-only") ? [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1711:26: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1711 | compare_cstring (k,"header-only") ? [00:02:10] | ^~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1714:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1714 | else if (!compare_cstring (s,"set rsh-command")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1714:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1714 | else if (!compare_cstring (s,"set rsh-command")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1716:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1716 | else if (!compare_cstring (s,"set rsh-path")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1716:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1716 | else if (!compare_cstring (s,"set rsh-path")) [00:02:10] | ^~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1718:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1718 | else if (!compare_cstring (s,"set ssh-command")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1718:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1718 | else if (!compare_cstring (s,"set ssh-command")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1720:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1720 | else if (!compare_cstring (s,"set ssh-path")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1720:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1720 | else if (!compare_cstring (s,"set ssh-path")) [00:02:10] | ^~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1722:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1722 | else if (!compare_cstring (s,"set tcp-open-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1722:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1722 | else if (!compare_cstring (s,"set tcp-open-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1724:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1724 | else if (!compare_cstring (s,"set tcp-read-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1724:31: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1724 | else if (!compare_cstring (s,"set tcp-read-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1726:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1726 | else if (!compare_cstring (s,"set tcp-write-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1726:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1726 | else if (!compare_cstring (s,"set tcp-write-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1728:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1728 | else if (!compare_cstring (s,"set rsh-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1728:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1728 | else if (!compare_cstring (s,"set rsh-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1730:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1730 | else if (!compare_cstring (s,"set ssh-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1730:31: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1730 | else if (!compare_cstring (s,"set ssh-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1732:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1732 | else if (!compare_cstring (s,"set maximum-login-trials")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1732:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1732 | else if (!compare_cstring (s,"set maximum-login-trials")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1734:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1734 | else if (!compare_cstring (s,"set lookahead")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1734:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1734 | else if (!compare_cstring (s,"set lookahead")) [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1736:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1736 | else if (!compare_cstring (s,"set prefetch")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1736:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1736 | else if (!compare_cstring (s,"set prefetch")) [00:02:10] | ^~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1738:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1738 | else if (!compare_cstring (s,"set close-on-error")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1738:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1738 | else if (!compare_cstring (s,"set close-on-error")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1740:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1740 | else if (!compare_cstring (s,"set imap-port")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1740:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1740 | else if (!compare_cstring (s,"set imap-port")) [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1742:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1742 | else if (!compare_cstring (s,"set pop3-port")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1742:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1742 | else if (!compare_cstring (s,"set pop3-port")) [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1744:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1744 | else if (!compare_cstring (s,"set uid-lookahead")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1744:31: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1744 | else if (!compare_cstring (s,"set uid-lookahead")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1746:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1746 | else if (!compare_cstring (s,"set try-ssl-first")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1746:31: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1746 | else if (!compare_cstring (s,"set try-ssl-first")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1749:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1749 | else if (!compare_cstring (s,"set mailbox-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1749:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1749 | else if (!compare_cstring (s,"set mailbox-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1751:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1751 | else if (!compare_cstring (s,"set directory-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1751:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1751 | else if (!compare_cstring (s,"set directory-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1753:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1753 | else if (!compare_cstring (s,"set lock-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1753:31: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1753 | else if (!compare_cstring (s,"set lock-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1755:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1755 | else if (!compare_cstring (s,"set ftp-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1755:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1755 | else if (!compare_cstring (s,"set ftp-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1757:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1757 | else if (!compare_cstring (s,"set public-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1757:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1757 | else if (!compare_cstring (s,"set public-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1759:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1759 | else if (!compare_cstring (s,"set shared-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1759:31: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1759 | else if (!compare_cstring (s,"set shared-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1761:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1761 | else if (!compare_cstring (s,"set ftp-directory-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1761:31: warning: passing 'char[29]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1761 | else if (!compare_cstring (s,"set ftp-directory-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1763:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1763 | else if (!compare_cstring (s,"set public-directory-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1763:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1763 | else if (!compare_cstring (s,"set public-directory-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1765:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1765 | else if (!compare_cstring (s,"set shared-directory-protection")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1765:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1765 | else if (!compare_cstring (s,"set shared-directory-protection")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1767:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1767 | else if (!compare_cstring (s,"set dot-lock-file-timeout")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1767:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1767 | else if (!compare_cstring (s,"set dot-lock-file-timeout")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1769:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1769 | else if (!compare_cstring (s,"set disable-fcntl-locking")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1769:31: warning: passing 'char[26]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1769 | else if (!compare_cstring (s,"set disable-fcntl-locking")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1771:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1771 | else if (!compare_cstring (s,"set disable-lock-warning")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1771:31: warning: passing 'char[25]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1771 | else if (!compare_cstring (s,"set disable-lock-warning")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1773:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1773 | else if (!compare_cstring (s,"set disable-unix-UIDs-and-keywords")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1773:31: warning: passing 'char[35]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1773 | else if (!compare_cstring (s,"set disable-unix-UIDs-and-keywords")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1775:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1775 | else if (!compare_cstring (s,"set hide-dot-files")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1775:31: warning: passing 'char[19]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1775 | else if (!compare_cstring (s,"set hide-dot-files")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1777:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1777 | else if (!compare_cstring (s,"set list-maximum-level")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1777:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1777 | else if (!compare_cstring (s,"set list-maximum-level")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1779:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1779 | else if (!compare_cstring (s,"set trust-dns")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1779:31: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1779 | else if (!compare_cstring (s,"set trust-dns")) [00:02:10] | ^~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1781:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1781 | else if (!compare_cstring (s,"set sasl-uses-ptr-name")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1781:31: warning: passing 'char[23]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1781 | else if (!compare_cstring (s,"set sasl-uses-ptr-name")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1783:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1783 | else if (!compare_cstring (s,"set network-filesystem-stat-bug")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1783:31: warning: passing 'char[32]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1783 | else if (!compare_cstring (s,"set network-filesystem-stat-bug")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1785:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1785 | else if (!compare_cstring (s,"set nntp-range")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1785:31: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1785 | else if (!compare_cstring (s,"set nntp-range")) [00:02:10] | ^~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1789:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1789 | if (!compare_cstring (s,"set black-box-directory") && [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1789:28: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1789 | if (!compare_cstring (s,"set black-box-directory") && [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1791:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1791 | else if (!compare_cstring(s,"set black-box-default-home-directory")&& [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1791:32: warning: passing 'char[37]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1791 | else if (!compare_cstring(s,"set black-box-default-home-directory")&& [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1794:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1794 | else if (!compare_cstring (s,"set anonymous-home-directory") && [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1794:33: warning: passing 'char[29]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1794 | else if (!compare_cstring (s,"set anonymous-home-directory") && [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1801:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1801 | else if (!compare_cstring (s,"set CA-certificate-path")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1801:33: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1801 | else if (!compare_cstring (s,"set CA-certificate-path")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1803:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1803 | else if (!compare_cstring (s,"set ssl-cipher-list")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1803:33: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1803 | else if (!compare_cstring (s,"set ssl-cipher-list")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1805:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1805 | else if (!compare_cstring (s,"set ssl-protocols")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1805:33: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1805 | else if (!compare_cstring (s,"set ssl-protocols")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1807:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1807 | else if (!compare_cstring (s,"set ssl-dh-parameters")) /* same use as Sendmail */ [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1807:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1807 | else if (!compare_cstring (s,"set ssl-dh-parameters")) /* same use as Sendmail */ [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1809:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1809 | else if (!compare_cstring (s,"set disable-plaintext")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1809:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1809 | else if (!compare_cstring (s,"set disable-plaintext")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1811:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1811 | else if (!compare_cstring (s,"set allowed-login-attempts")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1811:33: warning: passing 'char[27]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1811 | else if (!compare_cstring (s,"set allowed-login-attempts")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1813:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1813 | else if (!compare_cstring (s,"set chroot-server")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1813:33: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1813 | else if (!compare_cstring (s,"set chroot-server")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1815:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1815 | else if (!compare_cstring (s,"set restrict-mailbox-access")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1815:33: warning: passing 'char[28]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1815 | else if (!compare_cstring (s,"set restrict-mailbox-access")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1817:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1817 | if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1817:32: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1817 | if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; [00:02:10] | ^~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1818:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1818 | else if (!compare_cstring (k,"otherusers")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1818:37: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1818 | else if (!compare_cstring (k,"otherusers")) [00:02:10] | ^~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1820:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1820 | else if (!compare_cstring (k,"all")) restrictBox = -1; [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1820:37: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1820 | else if (!compare_cstring (k,"all")) restrictBox = -1; [00:02:10] | ^~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1822:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1822 | else if (!compare_cstring (s,"set advertise-the-world")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1822:33: warning: passing 'char[24]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1822 | else if (!compare_cstring (s,"set advertise-the-world")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1824:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1824 | else if (!compare_cstring (s,"set limited-advertise")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1824:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1824 | else if (!compare_cstring (s,"set limited-advertise")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1827:7: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1827 | (s,"set disable-automatic-shared-namespaces")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1827:9: warning: passing 'char[40]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1827 | (s,"set disable-automatic-shared-namespaces")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1829:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1829 | else if (!compare_cstring (s,"set allow-user-config")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1829:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1829 | else if (!compare_cstring (s,"set allow-user-config")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1831:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1831 | else if (!compare_cstring (s,"set allow-reverse-dns")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1831:33: warning: passing 'char[22]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1831 | else if (!compare_cstring (s,"set allow-reverse-dns")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1833:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1833 | else if (!compare_cstring (s,"set k5-cp-uses-service-name")) [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1833:33: warning: passing 'char[28]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1833 | else if (!compare_cstring (s,"set k5-cp-uses-service-name")) [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1837:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1837 | else if (!compare_cstring (s,"set plaintext-allowed-clients")) { [00:02:10] | ^ [00:02:10] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:46: [00:02:10] ./env_unix.c:1837:33: warning: passing 'char[30]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 1837 | else if (!compare_cstring (s,"set plaintext-allowed-clients")) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:10] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:10] | ^ [00:02:10] In file included from osdep.c:49: [00:02:10] In file included from ./tcp_unix.c:26: [00:02:10] ./ip_unix.c:130:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 130 | (!getaddrinfo (lcase (strcpy (tmp,text)),NIL,&hints,&ai))) { [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:10] 83 | unsigned char *lcase (unsigned char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:49: [00:02:10] In file included from ./tcp_unix.c:26: [00:02:10] ./ip_unix.c:130:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 130 | (!getaddrinfo (lcase (strcpy (tmp,text)),NIL,&hints,&ai))) { [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] /usr/include/netdb.h:250:30: note: passing argument to parameter here [00:02:10] 250 | int getaddrinfo(const char *, const char *, [00:02:10] | ^ [00:02:10] In file included from osdep.c:49: [00:02:10] In file included from ./tcp_unix.c:26: [00:02:10] ./ip_unix.c:248:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 248 | (!getaddrinfo (lcase (strcpy (tmp,name)),NIL,&hints, [00:02:10] | ^~~~~~~~~~~~~~~~~ [00:02:10] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:10] 83 | unsigned char *lcase (unsigned char *string); [00:02:10] | ^ [00:02:10] In file included from osdep.c:49: [00:02:10] In file included from ./tcp_unix.c:26: [00:02:10] ./ip_unix.c:248:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:10] 248 | (!getaddrinfo (lcase (strcpy (tmp,name)),NIL,&hints, [00:02:10] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] /usr/include/netdb.h:250:30: note: passing argument to parameter here [00:02:10] 250 | int getaddrinfo(const char *, const char *, [00:02:10] | ^ [00:02:10] In file included from osdep.c:49: [00:02:10] ./tcp_unix.c:179:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./tcp_unix.c:179:13: note: place parentheses around the assignment to silence this warning [00:02:10] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:179:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 179 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./tcp_unix.c:226:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:02:10] | ~~~~~~~~~~~~~^~~~~ [00:02:10] ./tcp_unix.c:226:22: note: place parentheses around the assignment to silence this warning [00:02:10] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:226:22: note: use '==' to turn this assignment into an equality comparison [00:02:10] 226 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; [00:02:10] | ^ [00:02:10] | == [00:02:10] ./tcp_unix.c:374:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./tcp_unix.c:374:13: note: place parentheses around the assignment to silence this warning [00:02:10] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:374:13: note: use '==' to turn this assignment into an equality comparison [00:02:10] 374 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); [00:02:10] | ^ [00:02:10] | == [00:02:10] ./tcp_unix.c:477:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 477 | char *ret = tcp_getline_work (stream,&n,&contd); [00:02:10] | ^~~~~~ [00:02:10] ./tcp_unix.c:61:17: note: passing argument to parameter 'contd' here [00:02:10] 61 | long *contd); [00:02:10] | ^ [00:02:10] ./tcp_unix.c:485:41: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 485 | ret = tcp_getline_work (stream,&n,&contd); [00:02:10] | ^~~~~~ [00:02:10] ./tcp_unix.c:61:17: note: passing argument to parameter 'contd' here [00:02:10] 61 | long *contd); [00:02:10] | ^ [00:02:10] ./tcp_unix.c:553:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 553 | if (n = min (size,stream->ictr)) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./tcp_unix.c:553:9: note: place parentheses around the assignment to silence this warning [00:02:10] 553 | if (n = min (size,stream->ictr)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:553:9: note: use '==' to turn this assignment into an equality comparison [00:02:10] 553 | if (n = min (size,stream->ictr)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] ./tcp_unix.c:874:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:02:10] | ~~^~~~~~~~~~~~~~~~ [00:02:10] ./tcp_unix.c:874:8: note: place parentheses around the assignment to silence this warning [00:02:10] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:874:8: note: use '==' to turn this assignment into an equality comparison [00:02:10] 874 | if (v = strchr (s,' ')) *v = '\0'; [00:02:10] | ^ [00:02:10] | == [00:02:10] ./tcp_unix.c:1003:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] ./tcp_unix.c:1003:11: note: place parentheses around the assignment to silence this warning [00:02:10] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] ./tcp_unix.c:1003:11: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1003 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr,buf))) { [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:159:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:02:10] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 160 | pw->pw_name,&conv,&hdl) == PAM_SUCCESS) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 161 | (pam_set_item (hdl,PAM_RHOST,tcp_clientaddr ()) == PAM_SUCCESS) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 162 | (pam_authenticate (hdl,NIL) == PAM_SUCCESS) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 163 | (pam_acct_mgmt (hdl,NIL) == PAM_SUCCESS) && [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 164 | (pam_setcred (hdl,PAM_ESTABLISH_CRED) == PAM_SUCCESS)) ? [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 165 | getpwnam (name) : NIL) { [00:02:10] | ~~~~~~~~~~~~~~~~~~~~~ [00:02:10] osdep.c:159:10: note: place parentheses around the assignment to silence this warning [00:02:10] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:02:10] | ^ [00:02:10] | ( [00:02:10] 160 | pw->pw_name,&conv,&hdl) == PAM_SUCCESS) && [00:02:10] 161 | (pam_set_item (hdl,PAM_RHOST,tcp_clientaddr ()) == PAM_SUCCESS) && [00:02:10] 162 | (pam_authenticate (hdl,NIL) == PAM_SUCCESS) && [00:02:10] 163 | (pam_acct_mgmt (hdl,NIL) == PAM_SUCCESS) && [00:02:10] 164 | (pam_setcred (hdl,PAM_ESTABLISH_CRED) == PAM_SUCCESS)) ? [00:02:10] 165 | getpwnam (name) : NIL) { [00:02:10] | [00:02:10] | ) [00:02:10] osdep.c:159:10: note: use '==' to turn this assignment into an equality comparison [00:02:10] 159 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:472:12: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] [00:02:10] 472 | TLSv1_client_method () : [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/ssl.h:2023:1: note: 'TLSv1_client_method' has been explicitly marked deprecated here [00:02:10] 2023 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_client_method(void); [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:203:33: note: expanded from macro 'OSSL_DEPRECATEDIN_1_1_0' [00:02:10] 203 | #define OSSL_DEPRECATEDIN_1_1_0 OSSL_DEPRECATED(1.1.0) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:02:10] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:02:10] | ^ [00:02:10] osdep.c:490:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:02:10] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] osdep.c:490:9: note: place parentheses around the assignment to silence this warning [00:02:10] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] osdep.c:490:9: note: use '==' to turn this assignment into an equality comparison [00:02:10] 490 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:494:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:02:10] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] osdep.c:494:14: note: place parentheses around the assignment to silence this warning [00:02:10] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] osdep.c:494:14: note: use '==' to turn this assignment into an equality comparison [00:02:10] 494 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:503:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:02:10] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:10] 504 | NIL,NIL,"")) { [00:02:10] | ~~~~~~~~~~~ [00:02:10] osdep.c:503:15: note: place parentheses around the assignment to silence this warning [00:02:10] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:02:10] | ^ [00:02:10] | ( [00:02:10] 504 | NIL,NIL,"")) { [00:02:10] | [00:02:10] | ) [00:02:10] osdep.c:503:15: note: use '==' to turn this assignment into an equality comparison [00:02:10] 503 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:641:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 641 | char *ret = ssl_getline_work (stream,&n,&contd); [00:02:10] | ^~~~~~ [00:02:10] osdep.c:314:17: note: passing argument to parameter 'contd' here [00:02:10] 314 | long *contd); [00:02:10] | ^ [00:02:10] osdep.c:649:41: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:10] 649 | ret = ssl_getline_work (stream,&n,&contd); [00:02:10] | ^~~~~~ [00:02:10] osdep.c:314:17: note: passing argument to parameter 'contd' here [00:02:10] 314 | long *contd); [00:02:10] | ^ [00:02:10] osdep.c:1177:16: warning: 'SSL_CTX_use_RSAPrivateKey_file' is deprecated [-Wdeprecated-declarations] [00:02:10] 1177 | else if (!(SSL_CTX_use_RSAPrivateKey_file (stream->context,key, [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/ssl.h:1702:1: note: 'SSL_CTX_use_RSAPrivateKey_file' has been explicitly marked deprecated here [00:02:10] 1702 | OSSL_DEPRECATEDIN_3_0 [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:02:10] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:02:10] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:02:10] | ^ [00:02:10] osdep.c:1192:8: warning: 'PEM_read_bio_DHparams' is deprecated [-Wdeprecated-declarations] [00:02:10] 1192 | dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/pem.h:471:21: note: 'PEM_read_bio_DHparams' has been explicitly marked deprecated here [00:02:10] 471 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:02:10] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:02:10] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:02:10] | ^ [00:02:10] osdep.c:1215:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations] [00:02:10] 1215 | DH_free(dh); [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/dh.h:204:1: note: 'DH_free' has been explicitly marked deprecated here [00:02:10] 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:181:31: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' [00:02:10] 181 | #define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:02:10] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:02:10] | ^ [00:02:10] osdep.c:1253:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:02:10] | ~~^~~~~~~~~~~~~~~~~~ [00:02:10] osdep.c:1253:12: note: place parentheses around the assignment to silence this warning [00:02:10] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] osdep.c:1253:12: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1253 | while (i = ERR_get_error ()) /* SSL failure */ [00:02:10] | ^ [00:02:10] | == [00:02:10] osdep.c:1272:17: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] [00:02:10] 1272 | if (!(key = RSA_generate_key (export ? keylength : 1024,RSA_F4,NIL,NIL))) { [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/rsa.h:253:1: note: 'RSA_generate_key' has been explicitly marked deprecated here [00:02:10] 253 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void (*callback)(int, int, void *), [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:247:33: note: expanded from macro 'OSSL_DEPRECATEDIN_0_9_8' [00:02:10] 247 | #define OSSL_DEPRECATEDIN_0_9_8 OSSL_DEPRECATED(0.9.8) [00:02:10] | ^ [00:02:10] /usr/local/include/openssl/macros.h:61:47: note: expanded from macro 'OSSL_DEPRECATED' [00:02:10] 61 | #define OSSL_DEPRECATED(since) __attribute__((deprecated)) [00:02:10] | ^ [00:02:10] osdep.c:1275:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:10] 1275 | while (i = ERR_get_error ()) [00:02:10] | ~~^~~~~~~~~~~~~~~~~~ [00:02:10] osdep.c:1275:16: note: place parentheses around the assignment to silence this warning [00:02:10] 1275 | while (i = ERR_get_error ()) [00:02:10] | ^ [00:02:10] | ( ) [00:02:10] osdep.c:1275:16: note: use '==' to turn this assignment into an equality comparison [00:02:10] 1275 | while (i = ERR_get_error ()) [00:02:10] | ^ [00:02:10] | == [00:02:10] 256 warnings generated. [00:02:10] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mail.c -o mail.so [00:02:13] mail.c:213:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:02:13] | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:213:28: note: place parentheses around the assignment to silence this warning [00:02:13] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:213:28: note: use '==' to turn this assignment into an equality comparison [00:02:13] 213 | if (stream->cache[i] = stream->cache[msgno]) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:384:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 384 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:384:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 384 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:389:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 389 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:389:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 389 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:391:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:391:13: note: place parentheses around the assignment to silence this warning [00:02:13] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:391:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 391 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:394:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 394 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:394:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 394 | for (d = maildrivers; d && compare_cstring (d->name,(char *) value); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:396:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:396:13: note: place parentheses around the assignment to silence this warning [00:02:13] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:396:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 396 | if (ret = (void *) d) d->flags |= DR_DISABLE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:400:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 400 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:400:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 400 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:401:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:401:13: note: place parentheses around the assignment to silence this warning [00:02:13] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:401:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 401 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:405:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 405 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:405:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 405 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:406:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:406:13: note: place parentheses around the assignment to silence this warning [00:02:13] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:406:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 406 | if (ret = (void *) a) a->flags |= AU_DISABLE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:410:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 410 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:410:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 410 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:411:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:411:13: note: place parentheses around the assignment to silence this warning [00:02:13] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:411:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 411 | if (ret = (void *) a) a->flags &= ~AU_HIDE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:415:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 415 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:415:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 415 | a && compare_cstring (a->name,(char *) value); a = a->next); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:416:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:02:13] | ~~~~^~~~~~~~~~~~ [00:02:13] mail.c:416:13: note: place parentheses around the assignment to silence this warning [00:02:13] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:416:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 416 | if (ret = (void *) a) a->flags |= AU_HIDE; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:650:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:650:11: note: place parentheses around the assignment to silence this warning [00:02:13] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:650:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 650 | if (r = smtp_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:651:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 651 | if (r = env_parameters (function,value)) ret = r; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:651:11: note: place parentheses around the assignment to silence this warning [00:02:13] 651 | if (r = env_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:651:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 651 | if (r = env_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:652:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:652:11: note: place parentheses around the assignment to silence this warning [00:02:13] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:652:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 652 | if (r = tcp_parameters (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:654:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:654:13: note: place parentheses around the assignment to silence this warning [00:02:13] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:654:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 654 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:658:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:658:13: note: place parentheses around the assignment to silence this warning [00:02:13] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:658:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 658 | if (r = (d->parameters) (function,value)) ret = r; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:772:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 772 | if (t = strpbrk (s = t,"/:=")) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:772:13: note: place parentheses around the assignment to silence this warning [00:02:13] 772 | if (t = strpbrk (s = t,"/:=")) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:772:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 772 | if (t = strpbrk (s = t,"/:=")) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:790:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 790 | if (t = strpbrk (v = t,"/:")) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:790:10: note: place parentheses around the assignment to silence this warning [00:02:13] 790 | if (t = strpbrk (v = t,"/:")) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:790:10: note: use '==' to turn this assignment into an equality comparison [00:02:13] 790 | if (t = strpbrk (v = t,"/:")) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:797:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 797 | if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:797:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 797 | if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:798:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 798 | lcase (strcpy (mb->service,v)); [00:02:13] | ^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:13] 83 | unsigned char *lcase (unsigned char *string); [00:02:13] | ^ [00:02:13] mail.c:799:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 799 | else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:799:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 799 | else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:801:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 801 | else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:801:31: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 801 | else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:807:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 807 | if (!compare_cstring (s,"anonymous")) mb->anoflag = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:807:26: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 807 | if (!compare_cstring (s,"anonymous")) mb->anoflag = T; [00:02:13] | ^~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:808:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 808 | else if (!compare_cstring (s,"debug")) mb->dbgflag = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:808:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 808 | else if (!compare_cstring (s,"debug")) mb->dbgflag = T; [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:809:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 809 | else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:809:31: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 809 | else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:810:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 810 | else if (!compare_cstring (s,"secure")) mb->secflag = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:810:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 810 | else if (!compare_cstring (s,"secure")) mb->secflag = T; [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:811:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 811 | else if (!compare_cstring (s,"norsh")) mb->norsh = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:811:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 811 | else if (!compare_cstring (s,"norsh")) mb->norsh = T; [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:812:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 812 | else if (!compare_cstring (s,"loser")) mb->loser = T; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:812:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 812 | else if (!compare_cstring (s,"loser")) mb->loser = T; [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:813:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 813 | else if (!compare_cstring (s,"tls") && !mb->notlsflag) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:813:31: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 813 | else if (!compare_cstring (s,"tls") && !mb->notlsflag) [00:02:13] | ^~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:815:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 815 | else if (!compare_cstring (s,"tls-sslv23") && !mb->notlsflag) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:815:31: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 815 | else if (!compare_cstring (s,"tls-sslv23") && !mb->notlsflag) [00:02:13] | ^~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:817:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 817 | else if (!compare_cstring (s,"notls") && !mb->tlsflag) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:817:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 817 | else if (!compare_cstring (s,"notls") && !mb->tlsflag) [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:819:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 819 | else if (!compare_cstring (s,"tryssl")) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:819:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 819 | else if (!compare_cstring (s,"tryssl")) [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:821:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 821 | else if (mailssldriver && !compare_cstring (s,"ssl") && !mb->tlsflag) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:821:48: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 821 | else if (mailssldriver && !compare_cstring (s,"ssl") && !mb->tlsflag) [00:02:13] | ^~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:823:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 823 | else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:823:48: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 823 | else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) [00:02:13] | ^~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:826:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 826 | else if (mailssldriver && !compare_cstring (s,"validate-cert")); [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:826:48: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 826 | else if (mailssldriver && !compare_cstring (s,"validate-cert")); [00:02:13] | ^~~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:829:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 829 | else if (!compare_cstring (s,"imap") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:829:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 829 | else if (!compare_cstring (s,"imap") || [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:830:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 830 | !compare_cstring (s,"nntp") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:830:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 830 | !compare_cstring (s,"nntp") || [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:831:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 831 | !compare_cstring (s,"pop3") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:831:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 831 | !compare_cstring (s,"pop3") || [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:832:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 832 | !compare_cstring (s,"smtp") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:832:24: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 832 | !compare_cstring (s,"smtp") || [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:833:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 833 | !compare_cstring (s,"submit")) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:833:24: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 833 | !compare_cstring (s,"submit")) [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:834:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 834 | lcase (strcpy (mb->service,s)); [00:02:13] | ^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:13] 83 | unsigned char *lcase (unsigned char *string); [00:02:13] | ^ [00:02:13] mail.c:835:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 835 | else if (!compare_cstring (s,"imap2") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:835:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 835 | else if (!compare_cstring (s,"imap2") || [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:836:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 836 | !compare_cstring (s,"imap2bis") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:836:24: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 836 | !compare_cstring (s,"imap2bis") || [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:837:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 837 | !compare_cstring (s,"imap4") || [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:837:24: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 837 | !compare_cstring (s,"imap4") || [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:838:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 838 | !compare_cstring (s,"imap4rev1")) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:838:24: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 838 | !compare_cstring (s,"imap4rev1")) [00:02:13] | ^~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:840:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 840 | else if (!compare_cstring (s,"pop")) [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:840:31: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 840 | else if (!compare_cstring (s,"pop")) [00:02:13] | ^~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:925:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 925 | while (d = d->next); /* until at the end */ [00:02:13] | ~~^~~~~~~~~ [00:02:13] mail.c:925:12: note: place parentheses around the assignment to silence this warning [00:02:13] 925 | while (d = d->next); /* until at the end */ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:925:12: note: use '==' to turn this assignment into an equality comparison [00:02:13] 925 | while (d = d->next); /* until at the end */ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:958:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 958 | while (d = d->next); /* until at the end */ [00:02:13] | ~~^~~~~~~~~ [00:02:13] mail.c:958:12: note: place parentheses around the assignment to silence this warning [00:02:13] 958 | while (d = d->next); /* until at the end */ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:958:12: note: use '==' to turn this assignment into an equality comparison [00:02:13] 958 | while (d = d->next); /* until at the end */ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1002:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1002:9: note: place parentheses around the assignment to silence this warning [00:02:13] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1002:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1002 | if (s = strpbrk (mailbox,"\015\012")) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1013:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1013 | if (!compare_cstring (mailbox,"INBOX")) { [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:1013:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1013 | if (!compare_cstring (mailbox,"INBOX")) { [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:1018:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1018:9: note: place parentheses around the assignment to silence this warning [00:02:13] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1018:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1018 | if (s = mail_utf7_valid (mailbox)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1098:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1098 | if (s = mail_utf7_valid (newname)) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1098:9: note: place parentheses around the assignment to silence this warning [00:02:13] 1098 | if (s = mail_utf7_valid (newname)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1098:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1098 | if (s = mail_utf7_valid (newname)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1205:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:02:13] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1205:18: note: place parentheses around the assignment to silence this warning [00:02:13] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1205:18: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1205 | if (stream = mail_open (stream,s+1,options)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1222:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:02:13] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1222:18: note: place parentheses around the assignment to silence this warning [00:02:13] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1222:18: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1222 | if (stream = mail_open (stream,mb.mailbox,options)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1249:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1249:13: note: place parentheses around the assignment to silence this warning [00:02:13] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1249:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1249 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1255:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1255 | for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:1255:59: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1255 | for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); [00:02:13] | ^~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:1477:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1477 | if (stream->dtb && mail_uid_sequence (stream,sequence) && [00:02:13] | ^~~~~~~~ [00:02:13] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:13] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:13] | ^ [00:02:13] mail.c:1493:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1493 | if (stream->dtb && mail_sequence (stream,sequence) && [00:02:13] | ^~~~~~~~ [00:02:13] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:13] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:13] | ^ [00:02:13] mail.c:1518:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1518 | ov.date = env->date; [00:02:13] | ^ ~~~~~~~~~ [00:02:13] mail.c:1549:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1549:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1549:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1549 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1661:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1661:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1661:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1661 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1731:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1731:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1731:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1731 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1736:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1736 | if (!((b = mail_body (stream,msgno,section)) && [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:1784:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1784 | if (rt.data = (unsigned char *) [00:02:13] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:02:13] 1785 | (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { [00:02:13] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1784:19: note: place parentheses around the assignment to silence this warning [00:02:13] 1784 | if (rt.data = (unsigned char *) [00:02:13] | ^ [00:02:13] | ( [00:02:13] 1785 | (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { [00:02:13] | [00:02:13] | ) [00:02:13] mail.c:1784:19: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1784 | if (rt.data = (unsigned char *) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1822:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1822:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1822:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1822 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1827:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1827 | if (!((b = mail_body (stream,msgno,section)) && [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:1877:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1877:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1877:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1877 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1881:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1881 | if (!(section && *section && (b = mail_body (stream,msgno,section)))) [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:1960:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:1960:15: note: place parentheses around the assignment to silence this warning [00:02:13] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:1960:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 1960 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:1964:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 1964 | if (!(b = mail_body (stream,msgno,section))) return ""; [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:2018:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2018:15: note: place parentheses around the assignment to silence this warning [00:02:13] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2018:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2018 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2024:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2024 | if (!((b = mail_body (stream,msgno,section)) && [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:2088:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2088:15: note: place parentheses around the assignment to silence this warning [00:02:13] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2088:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2088 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2092:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2092 | if (!(b = mail_body (stream,msgno,section))) return NIL; [00:02:13] | ^~~~~~~ [00:02:13] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:13] 1693 | unsigned char *section); [00:02:13] | ^ [00:02:13] mail.c:2238:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2238 | if (delta = ((last - first) / 2)) { [00:02:13] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2238:12: note: place parentheses around the assignment to silence this warning [00:02:13] 2238 | if (delta = ((last - first) / 2)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2238:12: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2238 | if (delta = ((last - first) / 2)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2314:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2314 | ((flags & ST_UID) ? mail_uid_sequence (stream,sequence) : [00:02:13] | ^~~~~~~~ [00:02:13] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:13] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:13] | ^ [00:02:13] mail.c:2315:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2315 | mail_sequence (stream,sequence)) && [00:02:13] | ^~~~~~~~ [00:02:13] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:13] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:13] | ^ [00:02:13] mail.c:2392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2392 | if (msg = utf8_badcharset (charset)) { [00:02:13] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2392:11: note: place parentheses around the assignment to silence this warning [00:02:13] 2392 | if (msg = utf8_badcharset (charset)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2392:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2392 | if (msg = utf8_badcharset (charset)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2604:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2604 | else if (!strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) { [00:02:13] | ^~~~~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:13] 83 | unsigned char *lcase (unsigned char *string); [00:02:13] | ^ [00:02:13] mail.c:2604:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2604 | else if (!strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) { [00:02:13] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:13] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:13] | ^ [00:02:13] mail.c:2618:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2618:14: note: place parentheses around the assignment to silence this warning [00:02:13] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2618:14: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2618 | else if (d = mail_valid (stream,mailbox,NIL)) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2656:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:02:13] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2656:13: note: place parentheses around the assignment to silence this warning [00:02:13] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2656:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2656 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2726:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2726 | if (!(i = strtoul (section,(char **) §ion,10)) || [00:02:13] | ^~~~~~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2731:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:02:13] | ~~~^~~~~~~~~~~~~~~~ [00:02:13] mail.c:2731:11: note: place parentheses around the assignment to silence this warning [00:02:13] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:2731:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 2731 | if (pt = b->nested.part) while (--i && (pt = pt->next)); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:2858:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:02:13] | ^ [00:02:13] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:13] 105 | size_t strlen(const char *) __pure; [00:02:13] | ^ [00:02:13] mail.c:2858:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:02:13] | ^ [00:02:13] /usr/include/string.h:92:58: note: passing argument to parameter here [00:02:13] 92 | char *(strcpy)(char * __restrict, const char * __restrict); [00:02:13] | ^ [00:02:13] mail.c:2858:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2858 | if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); [00:02:13] | ^~~~~~~~~~~~~~ [00:02:13] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:13] 82 | unsigned char *ucase (unsigned char *string); [00:02:13] | ^ [00:02:13] mail.c:2864:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2864 | if (!(m = strtoul (s,(char **) &s,10))) return NIL; [00:02:13] | ^ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2868:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2868 | if (isdigit (*++s) && (d = strtoul (s,(char **) &s,10)) && [00:02:13] | ^ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2870:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2870 | y = strtoul (s,(char **) &s,10); [00:02:13] | ^ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2880:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2880 | if ((m = strtoul (s+1,(char **) &s,10)) && (*s++ == '-') && [00:02:13] | ^~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2881:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2881 | (d = strtoul (s,(char **) &s,10)) && !*s) break; [00:02:13] | ^ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2886:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2886 | if (strlen (s) < (size_t) 5) return NIL; [00:02:13] | ^ [00:02:13] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:13] 105 | size_t strlen(const char *) __pure; [00:02:13] | ^ [00:02:13] mail.c:2914:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2914 | y = strtoul (s,(char **) &s,10); [00:02:13] | ^ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2938:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2938 | d = strtoul (s+1,(char **) &s,10); [00:02:13] | ^~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2940:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2940 | m = strtoul (++s,(char **) &s,10); [00:02:13] | ^~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:2941:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 2941 | y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0; [00:02:13] | ^~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:3091:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:02:13] | ~~^~~~~~~~~~~~~~ [00:02:13] mail.c:3091:11: note: place parentheses around the assignment to silence this warning [00:02:13] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3091:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3091 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3271:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3271 | else if (!(i = strtoul (sequence,(char **) &sequence,10))) { [00:02:13] | ^~~~~~~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:3282:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3282 | else if (!(j = strtoul (sequence,(char **) &sequence,10))) { [00:02:13] | ^~~~~~~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:3312:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:3312:13: note: place parentheses around the assignment to silence this warning [00:02:13] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3312:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3312 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3345:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3345 | while (lines = lines->next); [00:02:13] | ~~~~~~^~~~~~~~~~~~~ [00:02:13] mail.c:3345:16: note: place parentheses around the assignment to silence this warning [00:02:13] 3345 | while (lines = lines->next); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3345:16: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3345 | while (lines = lines->next); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3377:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3377 | if (i = t - tmp) /* see if found in header */ [00:02:13] | ~~^~~~~~~~~ [00:02:13] mail.c:3377:11: note: place parentheses around the assignment to silence this warning [00:02:13] 3377 | if (i = t - tmp) /* see if found in header */ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3377:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3377 | if (i = t - tmp) /* see if found in header */ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3379:53: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3379 | if ((hdrs->text.size == i) && !compare_csizedtext (tmp,&hdrs->text)) [00:02:13] | ^~~ [00:02:13] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:02:13] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:02:13] | ^ [00:02:13] mail.c:3523:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3523 | BODY *body = mail_body (stream,msgno,section); [00:02:13] | ^~~~~~~ [00:02:13] mail.c:2716:72: note: passing argument to parameter 'section' here [00:02:13] 2716 | BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) [00:02:13] | ^ [00:02:13] mail.c:3629:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3629 | if (h.data = (unsigned char *) s) { [00:02:13] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:3629:14: note: place parentheses around the assignment to silence this warning [00:02:13] 3629 | if (h.data = (unsigned char *) s) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3629:14: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3629 | if (h.data = (unsigned char *) s) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3680:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:02:13] | ~~~^~~~~~~~~~ [00:02:13] mail.c:3680:12: note: place parentheses around the assignment to silence this warning [00:02:13] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3680:12: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3680 | if (st = st->next) s = s->next = mail_newstringlist (); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3695:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3695 | else if ((body = mail_body (stream,msgno,section)) && [00:02:13] | ^~~~~~~ [00:02:13] mail.c:2716:72: note: passing argument to parameter 'section' here [00:02:13] 2716 | BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) [00:02:13] | ^ [00:02:13] mail.c:3762:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3762 | if (body = body->nested.msg->body) [00:02:13] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:3762:16: note: place parentheses around the assignment to silence this warning [00:02:13] 3762 | if (body = body->nested.msg->body) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3762:16: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3762 | if (body = body->nested.msg->body) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3779:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3779 | if (st.data = (unsigned char *) [00:02:13] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ [00:02:13] 3780 | rfc822_base64 ((unsigned char *) s,i,&st.size)) { [00:02:13] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:3779:14: note: place parentheses around the assignment to silence this warning [00:02:13] 3779 | if (st.data = (unsigned char *) [00:02:13] | ^ [00:02:13] | ( [00:02:13] 3780 | rfc822_base64 ((unsigned char *) s,i,&st.size)) { [00:02:13] | [00:02:13] | ) [00:02:13] mail.c:3779:14: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3779 | if (st.data = (unsigned char *) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3786:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:02:13] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:3786:14: note: place parentheses around the assignment to silence this warning [00:02:13] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3786:14: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3786 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3862:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3862 | if (!compare_csizedtext (stream->user_flags[i],&st->text)) { [00:02:13] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:02:13] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:02:13] | ^ [00:02:13] mail.c:3867:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3867 | } while (st = st->next); [00:02:13] | ~~~^~~~~~~~~~ [00:02:13] mail.c:3867:15: note: place parentheses around the assignment to silence this warning [00:02:13] 3867 | } while (st = st->next); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3867:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3867 | } while (st = st->next); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3896:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:02:13] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ [00:02:13] mail.c:3896:25: note: place parentheses around the assignment to silence this warning [00:02:13] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3896:25: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3896 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3897:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:02:13] | ~~~~~~~~~^~~~~~~~ [00:02:13] mail.c:3897:20: note: place parentheses around the assignment to silence this warning [00:02:13] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3897:20: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3897 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3898:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:02:13] | ~~~~~~~~~~^~~~~~~~~ [00:02:13] mail.c:3898:21: note: place parentheses around the assignment to silence this warning [00:02:13] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:3898:21: note: use '==' to turn this assignment into an equality comparison [00:02:13] 3898 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:3993:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 3993 | switch (*ucase (criterion)) { [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:13] 82 | unsigned char *ucase (unsigned char *string); [00:02:13] | ^ [00:02:13] mail.c:4084:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4084 | mail_parse_date (&elt,(char *) s->text.data) && [00:02:13] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:2840:56: note: passing argument to parameter 's' here [00:02:13] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:02:13] | ^ [00:02:13] mail.c:4133:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4133:11: note: place parentheses around the assignment to silence this warning [00:02:13] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4133:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4133 | if (d = strtok_r (c,end,r)) n = strlen (d); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4340:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4340 | if (env) t = env->date; [00:02:13] | ^ ~~~~~~~~~ [00:02:13] mail.c:4344:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4344:22: note: place parentheses around the assignment to silence this warning [00:02:13] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4344:22: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4344 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4356:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4356 | if (!(t && mail_parse_date (&telt,t) && [00:02:13] | ^ [00:02:13] mail.c:2840:56: note: passing argument to parameter 's' here [00:02:13] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:02:13] | ^ [00:02:13] mail.c:4380:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4380:22: note: place parentheses around the assignment to silence this warning [00:02:13] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4380:22: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4380 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4388:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4388 | if (v = strchr (v,':')) { [00:02:13] | ~~^~~~~~~~~~~~~~~~ [00:02:13] mail.c:4388:9: note: place parentheses around the assignment to silence this warning [00:02:13] 4388 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4388:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4388 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4414:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4414:22: note: place parentheses around the assignment to silence this warning [00:02:13] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4414:22: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4414 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4422:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4422 | if (v = strchr (v,':')) { [00:02:13] | ~~^~~~~~~~~~~~~~~~ [00:02:13] mail.c:4422:9: note: place parentheses around the assignment to silence this warning [00:02:13] 4422 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4422:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4422 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4448:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4448:22: note: place parentheses around the assignment to silence this warning [00:02:13] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4448:22: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4448 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4456:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4456 | if (v = strchr (v,':')) { [00:02:13] | ~~^~~~~~~~~~~~~~~~ [00:02:13] mail.c:4456:9: note: place parentheses around the assignment to silence this warning [00:02:13] 4456 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4456:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4456 | if (v = strchr (v,':')) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4483:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4483:22: note: place parentheses around the assignment to silence this warning [00:02:13] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4483:22: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4483 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4517:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:02:13] | ~~~~~~~~~^~~~~~~~~~~~ [00:02:13] mail.c:4517:16: note: place parentheses around the assignment to silence this warning [00:02:13] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4517:16: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4517 | if (src.size = strlen (t)) { /* have non-empty subject? */ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4659:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4659 | i = compare_string (s1->from,s2->from); [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4659:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4659 | i = compare_string (s1->from,s2->from); [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4662:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4662 | i = compare_string (s1->to,s2->to); [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4662:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4662 | i = compare_string (s1->to,s2->to); [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4665:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4665 | i = compare_string (s1->cc,s2->cc); [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4665:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4665 | i = compare_string (s1->cc,s2->cc); [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4668:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4668 | i = compare_string (s1->subject,s2->subject); [00:02:13] | ^~~~~~~~~~~ [00:02:13] ./misc.h:105:36: note: passing argument to parameter 's1' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4668:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4668 | i = compare_string (s1->subject,s2->subject); [00:02:13] | ^~~~~~~~~~~ [00:02:13] ./misc.h:105:54: note: passing argument to parameter 's2' here [00:02:13] 105 | int compare_string (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4673 | while (pgm = i ? NIL : pgm->next); [00:02:13] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4673:14: note: place parentheses around the assignment to silence this warning [00:02:13] 4673 | while (pgm = i ? NIL : pgm->next); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4673:14: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4673 | while (pgm = i ? NIL : pgm->next); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4767:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4767 | if (!compare_cstring (type,t->name)) { [00:02:13] | ^~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4767:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4767 | if (!compare_cstring (type,t->name)) { [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4800:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:02:13] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4800:11: note: place parentheses around the assignment to silence this warning [00:02:13] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4800:11: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4800 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4811:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4811 | if (compare_cstring (top->sc->subject,s->subject)) { [00:02:13] | ^~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4811:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 4811 | if (compare_cstring (top->sc->subject,s->subject)) { [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:4914:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:02:13] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:4914:10: note: place parentheses around the assignment to silence this warning [00:02:13] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4914:10: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4914 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:4962:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:02:13] | ~~~^~~~~~~~~~ [00:02:13] mail.c:4962:28: note: place parentheses around the assignment to silence this warning [00:02:13] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:4962:28: note: use '==' to turn this assignment into an equality comparison [00:02:13] 4962 | THREADLINKS); st = st->next; con = nxc) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:5132:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5132 | if (!s->date && ov->date && mail_parse_date (&telt,ov->date)) { [00:02:13] | ^~~~~~~~ [00:02:13] mail.c:2840:56: note: passing argument to parameter 's' here [00:02:13] 2840 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) [00:02:13] | ^ [00:02:13] mail.c:5194:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:5194:9: note: place parentheses around the assignment to silence this warning [00:02:13] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:5194:9: note: use '==' to turn this assignment into an equality comparison [00:02:13] 5194 | if (t = mail_thread_parse_msgid (s,&s)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:5198:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:02:13] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:5198:25: note: place parentheses around the assignment to silence this warning [00:02:13] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:5198:25: note: use '==' to turn this assignment into an equality comparison [00:02:13] 5198 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:5300:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:02:13] | ~~~~^~~~~~~~~~~~~ [00:02:13] mail.c:5300:13: note: place parentheses around the assignment to silence this warning [00:02:13] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:5300:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 5300 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:5382:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5382 | else if (!(i = strtoul (sequence,(char **) &sequence,10)) || [00:02:13] | ^~~~~~~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:5398:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5398 | else if (!(j = strtoul (sequence,(char **) &sequence,10)) || [00:02:13] | ^~~~~~~~ [00:02:13] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:13] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:13] | ^ [00:02:13] mail.c:5451:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:02:13] | ~~^~~~~~~~~~~~~~~~ [00:02:13] mail.c:5451:13: note: place parentheses around the assignment to silence this warning [00:02:13] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:5451:13: note: use '==' to turn this assignment into an equality comparison [00:02:13] 5451 | if (n = strchr (t,' ')) *n++ = '\0'; [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:5453:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5453 | if (!compare_cstring (t+1,"SEEN")) f |= fSEEN; [00:02:13] | ^~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5453:28: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5453 | if (!compare_cstring (t+1,"SEEN")) f |= fSEEN; [00:02:13] | ^~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5454:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5454 | else if (!compare_cstring (t+1,"DELETED")) f |= fDELETED; [00:02:13] | ^~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5454:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5454 | else if (!compare_cstring (t+1,"DELETED")) f |= fDELETED; [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5455:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5455 | else if (!compare_cstring (t+1,"FLAGGED")) f |= fFLAGGED; [00:02:13] | ^~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5455:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5455 | else if (!compare_cstring (t+1,"FLAGGED")) f |= fFLAGGED; [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5456:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5456 | else if (!compare_cstring (t+1,"ANSWERED")) f |= fANSWERED; [00:02:13] | ^~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5456:33: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5456 | else if (!compare_cstring (t+1,"ANSWERED")) f |= fANSWERED; [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5457:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5457 | else if (!compare_cstring (t+1,"DRAFT")) f |= fDRAFT; [00:02:13] | ^~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5457:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5457 | else if (!compare_cstring (t+1,"DRAFT")) f |= fDRAFT; [00:02:13] | ^~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5467:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5467 | if (!compare_cstring (t,s)) *uf |= i = 1 << j; [00:02:13] | ^ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5467:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5467 | if (!compare_cstring (t,s)) *uf |= i = 1 << j; [00:02:13] | ^ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5517:27: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5517 | ((!compare_cstring (smb.host,trustdns ? [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5517:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5517 | ((!compare_cstring (smb.host,trustdns ? [00:02:13] | ^~~~~~~~~~ [00:02:13] 5518 | (s = tcp_canonical (nmb.host)) : nmb.host) && [00:02:13] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5523:27: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5523 | (!compare_cstring (omb.host,nmb.host) && [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:5523:36: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 5523 | (!compare_cstring (omb.host,nmb.host) && [00:02:13] | ^~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:6095:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 6095 | if (auth->server && !compare_cstring (auth->name,mechanism)) [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:6095:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 6095 | if (auth->server && !compare_cstring (auth->name,mechanism)) [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:6128:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 6128 | !(auth->flags & AU_DISABLE) && !compare_cstring (auth->name,mechanism)) [00:02:13] | ^~~~~~~~~~ [00:02:13] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:6128:62: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:13] 6128 | !(auth->flags & AU_DISABLE) && !compare_cstring (auth->name,mechanism)) [00:02:13] | ^~~~~~~~~ [00:02:13] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:13] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:13] | ^ [00:02:13] mail.c:6215:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:02:13] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:6215:15: note: place parentheses around the assignment to silence this warning [00:02:13] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:6215:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 6215 | if (tstream = (*dv->open) (host,service,port | flags)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] mail.c:6237:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:13] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:02:13] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:13] mail.c:6237:15: note: place parentheses around the assignment to silence this warning [00:02:13] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:02:13] | ^ [00:02:13] | ( ) [00:02:13] mail.c:6237:15: note: use '==' to turn this assignment into an equality comparison [00:02:13] 6237 | if (tstream = (*dv->aopen) (mb,service,user)) { [00:02:13] | ^ [00:02:13] | == [00:02:13] 213 warnings generated. [00:02:13] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` misc.c -o misc.so [00:02:14] misc.c:272:41: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:14] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:02:14] | ~~^~~~~~~~~ [00:02:14] misc.c:272:41: note: remove extraneous parentheses around the comparison to silence this warning [00:02:14] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:02:14] | ~ ^ ~ [00:02:14] misc.c:272:41: note: use '=' to turn this equality comparison into an assignment [00:02:14] 272 | for (j = patc,c = base[k = i]; (c == pat[j]); j--,c = base[--k]) [00:02:14] | ^~ [00:02:14] | = [00:02:14] misc.c:314:47: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:14] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:02:14] | ~~~~^~~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:314:47: note: place parentheses around the assignment to silence this warning [00:02:14] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:02:14] | ^ [00:02:14] | ( ) [00:02:14] misc.c:314:47: note: use '==' to turn this assignment into an equality comparison [00:02:14] 314 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) [00:02:14] | ^ [00:02:14] | == [00:02:14] misc.c:331:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:14] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:02:14] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:331:19: note: place parentheses around the assignment to silence this warning [00:02:14] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:02:14] | ^ [00:02:14] | ( ) [00:02:14] misc.c:331:19: note: use '==' to turn this assignment into an equality comparison [00:02:14] 331 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; [00:02:14] | ^ [00:02:14] | == [00:02:14] misc.c:450:39: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:14] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:02:14] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:450:39: note: place parentheses around the assignment to silence this warning [00:02:14] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:02:14] | ^ [00:02:14] | ( ) [00:02:14] misc.c:450:39: note: use '==' to turn this assignment into an equality comparison [00:02:14] 450 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_ulong (*s1,*s2))) return i; [00:02:14] | ^ [00:02:14] | == [00:02:14] misc.c:469:39: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:14] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:02:14] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:469:39: note: place parentheses around the assignment to silence this warning [00:02:14] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:02:14] | ^ [00:02:14] | ( ) [00:02:14] misc.c:469:39: note: use '==' to turn this assignment into an equality comparison [00:02:14] 469 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; [00:02:14] | ^ [00:02:14] | == [00:02:14] misc.c:488:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:14] 488 | for (s = (char *) s2->data,j = s2->size; *s1 && j; ++s1,++s,--j) [00:02:14] | ^ ~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:489:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:14] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:02:14] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:14] misc.c:489:11: note: place parentheses around the assignment to silence this warning [00:02:14] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:02:14] | ^ [00:02:14] | ( ) [00:02:14] misc.c:489:11: note: use '==' to turn this assignment into an equality comparison [00:02:14] 489 | if (i = (compare_uchar (*s1,*s))) return i; [00:02:14] | ^ [00:02:14] | == [00:02:14] 7 warnings generated. [00:02:14] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` newsrc.c -o newsrc.so [00:02:15] newsrc.c:126:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 126 | if (k = elt->private.uid - 1) { [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:15] newsrc.c:126:8: note: place parentheses around the assignment to silence this warning [00:02:15] 126 | if (k = elt->private.uid - 1) { [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] newsrc.c:126:8: note: use '==' to turn this assignment into an equality comparison [00:02:15] 126 | if (k = elt->private.uid - 1) { [00:02:15] | ^ [00:02:15] | == [00:02:15] newsrc.c:167:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 167 | if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); [00:02:15] | ^~~~ [00:02:15] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:15] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:15] | ^ [00:02:15] newsrc.c:167:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 167 | if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); [00:02:15] | ^~~~~~~ [00:02:15] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:15] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:15] | ^ [00:02:15] newsrc.c:170:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 170 | if (pmatch_full (name,pattern,'.')) [00:02:15] | ^~~~ [00:02:15] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:15] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:15] | ^ [00:02:15] newsrc.c:170:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 170 | if (pmatch_full (name,pattern,'.')) [00:02:15] | ^~~~~~~ [00:02:15] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:15] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:15] | ^ [00:02:15] newsrc.c:343:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:15] newsrc.c:343:9: note: place parentheses around the assignment to silence this warning [00:02:15] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] newsrc.c:343:9: note: use '==' to turn this assignment into an equality comparison [00:02:15] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ [00:02:15] | ^ [00:02:15] | == [00:02:15] newsrc.c:368:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:15] newsrc.c:368:13: note: place parentheses around the assignment to silence this warning [00:02:15] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] newsrc.c:368:13: note: use '==' to turn this assignment into an equality comparison [00:02:15] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; [00:02:15] | ^ [00:02:15] | == [00:02:15] newsrc.c:384:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:15] newsrc.c:384:11: note: place parentheses around the assignment to silence this warning [00:02:15] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] newsrc.c:384:11: note: use '==' to turn this assignment into an equality comparison [00:02:15] 384 | if (f = newsrc_create (stream,T)) bf = NIL; [00:02:15] | ^ [00:02:15] | == [00:02:15] 8 warnings generated. [00:02:15] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` smanager.c -o smanager.so [00:02:15] smanager.c:42:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 42 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:02:15] | ^~~~~~~ [00:02:15] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:15] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:15] | ^ [00:02:15] smanager.c:42:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 42 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:02:15] | ^~~~~~~ [00:02:15] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:15] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:15] | ^ [00:02:15] smanager.c:44:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:02:15] | ~~^~~~~~~~~~~~~~~~ [00:02:15] smanager.c:44:9: note: place parentheses around the assignment to silence this warning [00:02:15] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] smanager.c:44:9: note: use '==' to turn this assignment into an equality comparison [00:02:15] 44 | if (f = fopen (db,"r")) { /* make sure not already there */ [00:02:15] | ^ [00:02:15] | == [00:02:15] smanager.c:46:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:15] smanager.c:46:13: note: place parentheses around the assignment to silence this warning [00:02:15] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] smanager.c:46:13: note: use '==' to turn this assignment into an equality comparison [00:02:15] 46 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | == [00:02:15] smanager.c:75:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 75 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:02:15] | ^~~~~~~ [00:02:15] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:15] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:15] | ^ [00:02:15] smanager.c:75:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:15] 75 | if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; [00:02:15] | ^~~~~~~ [00:02:15] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:15] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:15] | ^ [00:02:15] smanager.c:86:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:15] smanager.c:86:13: note: place parentheses around the assignment to silence this warning [00:02:15] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] smanager.c:86:13: note: use '==' to turn this assignment into an equality comparison [00:02:15] 86 | if (s = strchr (tmp,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | == [00:02:15] smanager.c:116:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:15] smanager.c:116:11: note: place parentheses around the assignment to silence this warning [00:02:15] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] smanager.c:116:11: note: use '==' to turn this assignment into an equality comparison [00:02:15] 116 | if (f = fopen (sbname,"r")) *sdb = (void *) f; [00:02:15] | ^ [00:02:15] | == [00:02:15] smanager.c:120:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:15] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:02:15] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:15] smanager.c:120:11: note: place parentheses around the assignment to silence this warning [00:02:15] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | ( ) [00:02:15] smanager.c:120:11: note: use '==' to turn this assignment into an equality comparison [00:02:15] 120 | if (s = strchr (sbname,'\n')) *s = '\0'; [00:02:15] | ^ [00:02:15] | == [00:02:15] 9 warnings generated. [00:02:15] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` utf8.c -o utf8.so [00:02:18] utf8.c:380:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 380 | if (!compare_cstring (script,utf8_scvalid[i].name)) [00:02:18] | ^~~~~~ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:380:36: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 380 | if (!compare_cstring (script,utf8_scvalid[i].name)) [00:02:18] | ^~~~~~~~~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:397:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 397 | if (!compare_cstring (charset,utf8_csvalid[i].name)) [00:02:18] | ^~~~~~~ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:397:37: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 397 | if (!compare_cstring (charset,utf8_csvalid[i].name)) [00:02:18] | ^~~~~~~~~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:583:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 583 | short iso2022jp = !compare_cstring (charset,"ISO-2022-JP"); [00:02:18] | ^~~~~~~ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:583:47: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 583 | short iso2022jp = !compare_cstring (charset,"ISO-2022-JP"); [00:02:18] | ^~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:610:26: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 610 | !compare_cstring (dcs->name,"ISO-2022-JP"))) ? [00:02:18] | ^~~~~~~~~ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:610:36: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 610 | !compare_cstring (dcs->name,"ISO-2022-JP"))) ? [00:02:18] | ^~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:644:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 644 | return (currmapcs && !compare_cstring (charset,currmapcs->name)) ? currmap : [00:02:18] | ^~~~~~~ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:644:50: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 644 | return (currmapcs && !compare_cstring (charset,currmapcs->name)) ? currmap : [00:02:18] | ^~~~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:659:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:02:18] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:659:16: note: place parentheses around the assignment to silence this warning [00:02:18] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:659:16: note: use '==' to turn this assignment into an equality comparison [00:02:18] 659 | else if (ret = utf8_rmap_gen (cs,currmap)) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:791:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:02:18] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:791:9: note: place parentheses around the assignment to silence this warning [00:02:18] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:791:9: note: use '==' to turn this assignment into an equality comparison [00:02:18] 791 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:1320:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 1320 | if (!compare_cstring (s,"ISO-2022-JP")) s = "EUC-JP"; [00:02:18] | ^ [00:02:18] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:1320:29: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 1320 | if (!compare_cstring (s,"ISO-2022-JP")) s = "EUC-JP"; [00:02:18] | ^~~~~~~~~~~~~ [00:02:18] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:18] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:18] | ^ [00:02:18] utf8.c:1322:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 1322 | if (cs = utf8_charset (s)) { [00:02:18] | ~~~^~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:1322:12: note: place parentheses around the assignment to silence this warning [00:02:18] 1322 | if (cs = utf8_charset (s)) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:1322:12: note: use '==' to turn this assignment into an equality comparison [00:02:18] 1322 | if (cs = utf8_charset (s)) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:2424:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:02:18] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:2424:11: note: place parentheses around the assignment to silence this warning [00:02:18] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:2424:11: note: use '==' to turn this assignment into an equality comparison [00:02:18] 2424 | if (m = (struct decomposemore *) *more) switch (m->type) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:2447:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:02:18] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:2447:13: note: place parentheses around the assignment to silence this warning [00:02:18] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:2447:13: note: use '==' to turn this assignment into an equality comparison [00:02:18] 2447 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:2477:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:02:18] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:2477:13: note: place parentheses around the assignment to silence this warning [00:02:18] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:2477:13: note: use '==' to turn this assignment into an equality comparison [00:02:18] 2477 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:2542:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:02:18] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8.c:2542:12: note: place parentheses around the assignment to silence this warning [00:02:18] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:2542:12: note: use '==' to turn this assignment into an equality comparison [00:02:18] 2542 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8.c:2562:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:02:18] | ~~~^~~~ [00:02:18] utf8.c:2562:12: note: place parentheses around the assignment to silence this warning [00:02:18] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8.c:2562:12: note: use '==' to turn this assignment into an equality comparison [00:02:18] 2562 | if (mr = mn) { /* did this value recurse on us? */ [00:02:18] | ^ [00:02:18] | == [00:02:18] 20 warnings generated. [00:02:18] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` utf8aux.c -o utf8aux.so [00:02:18] utf8aux.c:47:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 47 | } while (st = st->next); [00:02:18] | ~~~^~~~~~~~~~ [00:02:18] utf8aux.c:47:15: note: place parentheses around the assignment to silence this warning [00:02:18] 47 | } while (st = st->next); [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8aux.c:47:15: note: use '==' to turn this assignment into an equality comparison [00:02:18] 47 | } while (st = st->next); [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8aux.c:136:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:02:18] | ~~~^~~~~~~~~~~~~~~~~ [00:02:18] utf8aux.c:136:9: note: place parentheses around the assignment to silence this warning [00:02:18] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8aux.c:136:9: note: use '==' to turn this assignment into an equality comparison [00:02:18] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8aux.c:241:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:18] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:02:18] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] utf8aux.c:241:19: note: place parentheses around the assignment to silence this warning [00:02:18] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:02:18] | ^ [00:02:18] | ( ) [00:02:18] utf8aux.c:241:19: note: use '==' to turn this assignment into an equality comparison [00:02:18] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) [00:02:18] | ^ [00:02:18] | == [00:02:18] utf8aux.c:415:24: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 415 | if (mail_utf7_valid (src)) return NIL; [00:02:18] | ^~~ [00:02:18] ./mail.h:1630:30: note: passing argument to parameter 'mailbox' here [00:02:18] 1630 | char *mail_utf7_valid (char *mailbox); [00:02:18] | ^ [00:02:18] utf8aux.c:420:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:02:18] | ^~~ [00:02:18] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:18] 105 | size_t strlen(const char *) __pure; [00:02:18] | ^ [00:02:18] utf8aux.c:420:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:02:18] | ^~~ [00:02:18] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:02:18] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:02:18] | ^ [00:02:18] utf8aux.c:420:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:18] 420 | for (s = cpytxt (&utf7,src,strlen (src)); *s; ++s) switch (*s) { [00:02:18] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:18] 7 warnings generated. [00:02:18] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` siglocal.c -o siglocal.so [00:02:18] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` dummy.c -o dummy.so [00:02:19] dummy.c:121:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 121 | else if (!compare_cstring (name,"INBOX")) return &dummydriver; [00:02:19] | ^~~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:121:37: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 121 | else if (!compare_cstring (name,"INBOX")) return &dummydriver; [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:159:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:19] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:19] dummy.c:159:13: note: place parentheses around the assignment to silence this warning [00:02:19] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:159:13: note: use '==' to turn this assignment into an equality comparison [00:02:19] 159 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:167:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 167 | if (s = strpbrk (test,"%*")) { [00:02:19] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:19] dummy.c:167:11: note: place parentheses around the assignment to silence this warning [00:02:19] 167 | if (s = strpbrk (test,"%*")) { [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:167:11: note: use '==' to turn this assignment into an equality comparison [00:02:19] 167 | if (s = strpbrk (test,"%*")) { [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:173:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:02:19] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:19] dummy.c:173:11: note: place parentheses around the assignment to silence this warning [00:02:19] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:173:11: note: use '==' to turn this assignment into an equality comparison [00:02:19] 173 | if (s = strrchr (file,'/')){/* find directory name */ [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:182:32: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 182 | if (pmatch ("INBOX",ucase (test))) { [00:02:19] | ^~~~ [00:02:19] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^~~ [00:02:19] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:19] 82 | unsigned char *ucase (unsigned char *string); [00:02:19] | ^ [00:02:19] dummy.c:182:17: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 182 | if (pmatch ("INBOX",ucase (test))) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:221:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 221 | if (!compare_cstring (s,"INBOX") && [00:02:19] | ^ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:221:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 221 | if (!compare_cstring (s,"INBOX") && [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:222:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 222 | pmatch ("INBOX",ucase (strcpy (tmp,test)))) [00:02:19] | ^~~~~~~~~~~~~~~~~ [00:02:19] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^~~ [00:02:19] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:19] 82 | unsigned char *ucase (unsigned char *string); [00:02:19] | ^ [00:02:19] dummy.c:222:12: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 222 | pmatch ("INBOX",ucase (strcpy (tmp,test)))) [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:224:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 224 | else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:224:31: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 224 | else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:19] | ^~~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:227:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 227 | if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:227:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 227 | if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); [00:02:19] | ^~~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:231:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 231 | while (s = sm_read (tmpx,&sdb)); [00:02:19] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:19] dummy.c:231:12: note: place parentheses around the assignment to silence this warning [00:02:19] 231 | while (s = sm_read (tmpx,&sdb)); [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:231:12: note: use '==' to turn this assignment into an equality comparison [00:02:19] 231 | while (s = sm_read (tmpx,&sdb)); [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:280:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:02:19] | ~~~^~~~~~~~~~~~~~~ [00:02:19] dummy.c:280:10: note: place parentheses around the assignment to silence this warning [00:02:19] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:280:10: note: use '==' to turn this assignment into an equality comparison [00:02:19] 280 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:288:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:288:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:288:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:288:68: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 288 | if (!level && dir && pmatch_full (dir,pat,'/') && !pmatch (dir,"INBOX")) [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:292:64: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:02:19] | ~~^~~~~~~~~~~~~~ [00:02:19] dummy.c:292:64: note: place parentheses around the assignment to silence this warning [00:02:19] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:292:64: note: use '==' to turn this assignment into an equality comparison [00:02:19] 292 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:302:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 302 | if ((pmatch_full (strcpy (path,tmp),pat,'/') || [00:02:19] | ^~~~~~~~~~~~~~~~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:302:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 302 | if ((pmatch_full (strcpy (path,tmp),pat,'/') || [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:303:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 303 | pmatch_full (strcat (path,"/"),pat,'/') || [00:02:19] | ^~~~~~~~~~~~~~~~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:303:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 303 | pmatch_full (strcat (path,"/"),pat,'/') || [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:304:15: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 304 | dmatch (path,pat,'/')) && [00:02:19] | ^~~~ [00:02:19] ./env.h:30:29: note: passing argument to parameter 's' here [00:02:19] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:304:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 304 | dmatch (path,pat,'/')) && [00:02:19] | ^~~ [00:02:19] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:02:19] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:313:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 313 | if (!pmatch (tmp,"INBOX")) { [00:02:19] | ^~~ [00:02:19] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:313:23: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 313 | if (!pmatch (tmp,"INBOX")) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:19] 78 | pmatch_full (s,pat,NIL) [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:314:25: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 314 | if (pmatch_full (tmp,pat,'/')) { [00:02:19] | ^~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:314:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 314 | if (pmatch_full (tmp,pat,'/')) { [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:319:30: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 319 | else if (pmatch_full (path,pat,'/') && [00:02:19] | ^~~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:319:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 319 | else if (pmatch_full (path,pat,'/') && [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:323:18: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 323 | if (dmatch (path,pat,'/') && [00:02:19] | ^~~~ [00:02:19] ./env.h:30:29: note: passing argument to parameter 's' here [00:02:19] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:323:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 323 | if (dmatch (path,pat,'/') && [00:02:19] | ^~~ [00:02:19] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:02:19] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:329:23: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:329:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:19] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:19] | ^ [00:02:19] dummy.c:329:56: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:02:19] | ^~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:329:60: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 329 | if (pmatch_full (tmp,pat,'/') && compare_cstring (tmp,"INBOX")) [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:456:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 456 | if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:456:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 456 | if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:483:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:19] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:02:19] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:19] dummy.c:483:9: note: place parentheses around the assignment to silence this warning [00:02:19] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:02:19] | ^ [00:02:19] | ( ) [00:02:19] dummy.c:483:9: note: use '==' to turn this assignment into an equality comparison [00:02:19] 483 | if (s = strrchr (path,'/')) { /* found superior to this name? */ [00:02:19] | ^ [00:02:19] | == [00:02:19] dummy.c:566:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 566 | if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) [00:02:19] | ^~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:566:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 566 | if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:595:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 595 | if (compare_cstring (stream->mailbox,"INBOX")) [00:02:19] | ^~~~~~~~~~~~~~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:595:42: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 595 | if (compare_cstring (stream->mailbox,"INBOX")) [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:702:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 702 | if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:19] | ^~~~~~~~ [00:02:19] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:19] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:19] | ^ [00:02:19] dummy.c:703:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 703 | mail_sequence (stream,sequence)) fatal ("Impossible dummy_copy"); [00:02:19] | ^~~~~~~~ [00:02:19] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:19] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:19] | ^ [00:02:19] dummy.c:724:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 724 | if (!compare_cstring (mailbox,"INBOX")) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:724:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:19] 724 | if (!compare_cstring (mailbox,"INBOX")) { [00:02:19] | ^~~~~~~ [00:02:19] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:19] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:19] | ^ [00:02:19] dummy.c:726:23: warning: unsequenced modification and access to 'ts' [-Wunsequenced] [00:02:19] 726 | if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX")) [00:02:19] | ^ ~~ [00:02:19] dummy.c:801:28: warning: expression result unused [-Wunused-value] [00:02:19] 801 | for (i = 0, s = tmp; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:02:19] | ^~~~ [00:02:19] 53 warnings generated. [00:02:19] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` pseudo.c -o pseudo.so [00:02:19] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` netmsg.c -o netmsg.so [00:02:20] netmsg.c:63:45: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [00:02:20] 63 | sprintf (tmp,".%lx.%lx",(unsigned long) time (0),(unsigned long)getpid ()); [00:02:20] | ^ [00:02:20] netmsg.c:64:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:20] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:02:20] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:20] netmsg.c:64:11: note: place parentheses around the assignment to silence this warning [00:02:20] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:02:20] | ^ [00:02:20] | ( ) [00:02:20] netmsg.c:64:11: note: use '==' to turn this assignment into an equality comparison [00:02:20] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); [00:02:20] | ^ [00:02:20] | == [00:02:20] netmsg.c:73:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:20] 73 | while (s = net_getline (stream)) { [00:02:20] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:20] netmsg.c:73:12: note: place parentheses around the assignment to silence this warning [00:02:20] 73 | while (s = net_getline (stream)) { [00:02:20] | ^ [00:02:20] | ( ) [00:02:20] netmsg.c:73:12: note: use '==' to turn this assignment into an equality comparison [00:02:20] 73 | while (s = net_getline (stream)) { [00:02:20] | ^ [00:02:20] | == [00:02:20] 3 warnings generated. [00:02:20] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` flstring.c -o flstring.so [00:02:20] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` fdstring.c -o fdstring.so [00:02:20] fdstring.c:94:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:20] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:02:20] | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:20] fdstring.c:94:18: note: place parentheses around the assignment to silence this warning [00:02:20] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:02:20] | ^ [00:02:20] | ( ) [00:02:20] fdstring.c:94:18: note: use '==' to turn this assignment into an equality comparison [00:02:20] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { [00:02:20] | ^ [00:02:20] | == [00:02:20] 1 warning generated. [00:02:20] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` rfc822.c -o rfc822.so [00:02:22] rfc822.c:153:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 153 | if (t = d = strchr (tmp,':')) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:153:11: note: place parentheses around the assignment to silence this warning [00:02:22] 153 | if (t = d = strchr (tmp,':')) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:153:11: note: use '==' to turn this assignment into an equality comparison [00:02:22] 153 | if (t = d = strchr (tmp,':')) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:157:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 157 | ucase (tmp); /* coerce to uppercase */ [00:02:22] | ^~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:196:53: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 196 | if (!env->date && !strcmp (tmp+1,"ATE")) env->date = cpystr (d); [00:02:22] | ^ ~~~~~~~~~~ [00:02:22] rfc822.c:202:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ~~^~~~~~ [00:02:22] rfc822.c:202:13: note: place parentheses around the assignment to silence this warning [00:02:22] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:202:13: note: use '==' to turn this assignment into an equality comparison [00:02:22] 202 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:216:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:216:10: note: place parentheses around the assignment to silence this warning [00:02:22] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:216:10: note: use '==' to turn this assignment into an equality comparison [00:02:22] 216 | if (t = rfc822_parse_phrase (d)) *t = '\0'; [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:227:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ~~^~~~~~ [00:02:22] rfc822.c:227:13: note: place parentheses around the assignment to silence this warning [00:02:22] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:227:13: note: use '==' to turn this assignment into an equality comparison [00:02:22] 227 | while (c = *d++) if (c != ' ') *t++ = c; [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:388:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:02:22] | ~~^~~~~~~~~~~~~ [00:02:22] rfc822.c:388:13: note: place parentheses around the assignment to silence this warning [00:02:22] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:388:13: note: use '==' to turn this assignment into an equality comparison [00:02:22] 388 | if (m = GETPOS (bs)) m--; /* get position in front of character */ [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:398:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:02:22] | ~~^~~~~~~ [00:02:22] rfc822.c:398:8: note: place parentheses around the assignment to silence this warning [00:02:22] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:398:8: note: use '==' to turn this assignment into an equality comparison [00:02:22] 398 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:454:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 454 | if (i = part->body.mime.text.size) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:454:13: note: place parentheses around the assignment to silence this warning [00:02:22] 454 | if (i = part->body.mime.text.size) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:454:13: note: use '==' to turn this assignment into an equality comparison [00:02:22] 454 | if (i = part->body.mime.text.size) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:497:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 497 | rfc822_parse_content_header (&part->body,ucase (s1+8),s); [00:02:22] | ^~~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:497:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 497 | rfc822_parse_content_header (&part->body,ucase (s1+8),s); [00:02:22] | ^~~~~~~~~~~~ [00:02:22] ./rfc822.h:64:52: note: passing argument to parameter 'name' here [00:02:22] 64 | void rfc822_parse_content_header (BODY *body,char *name,char *s); [00:02:22] | ^ [00:02:22] rfc822.c:555:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:555:9: note: place parentheses around the assignment to silence this warning [00:02:22] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:555:9: note: use '==' to turn this assignment into an equality comparison [00:02:22] 555 | if (t = strchr (name,' ')) *t = '\0'; [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:568:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 568 | body->disposition.type = ucase (cpystr (s)); [00:02:22] | ^~~~~~~~~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:568:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 568 | body->disposition.type = ucase (cpystr (s)); [00:02:22] | ^ ~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:582:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 582 | stl->text.data = (unsigned char *) ucase (cpystr (s)); [00:02:22] | ^~~~~~~~~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:609:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 609 | compare_cstring (s,body_types[i]); i++); [00:02:22] | ^ [00:02:22] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:22] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:22] | ^ [00:02:22] rfc822.c:609:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 609 | compare_cstring (s,body_types[i]); i++); [00:02:22] | ^~~~~~~~~~~~~ [00:02:22] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:22] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:22] | ^ [00:02:22] rfc822.c:620:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 620 | body_types[body->type] = ucase (s); [00:02:22] | ^ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:620:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 620 | body_types[body->type] = ucase (s); [00:02:22] | ^ ~~~~~~~~~ [00:02:22] rfc822.c:632:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 632 | if (s) body->subtype = ucase (rfc822_cpy (s)); [00:02:22] | ^~~~~~~~~~~~~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:632:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 632 | if (s) body->subtype = ucase (rfc822_cpy (s)); [00:02:22] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:650:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 650 | compare_cstring (s,body_encodings[i]); i++); [00:02:22] | ^ [00:02:22] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:22] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:22] | ^ [00:02:22] rfc822.c:650:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 650 | compare_cstring (s,body_encodings[i]); i++); [00:02:22] | ^~~~~~~~~~~~~~~~~ [00:02:22] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:22] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:22] | ^ [00:02:22] rfc822.c:661:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 661 | body_encodings[body->encoding] = ucase (s); [00:02:22] | ^ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:661:35: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 661 | body_encodings[body->encoding] = ucase (s); [00:02:22] | ^ ~~~~~~~~~ [00:02:22] rfc822.c:694:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 694 | param->attribute = ucase (cpystr (s)); [00:02:22] | ^~~~~~~~~~ [00:02:22] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:22] 82 | unsigned char *ucase (unsigned char *string); [00:02:22] | ^ [00:02:22] rfc822.c:694:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 694 | param->attribute = ucase (cpystr (s)); [00:02:22] | ^ ~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:745:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:02:22] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:745:18: note: place parentheses around the assignment to silence this warning [00:02:22] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:745:18: note: use '==' to turn this assignment into an equality comparison [00:02:22] 745 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:799:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:02:22] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:799:11: note: place parentheses around the assignment to silence this warning [00:02:22] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:799:11: note: use '==' to turn this assignment into an equality comparison [00:02:22] 799 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:801:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:02:22] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:801:16: note: place parentheses around the assignment to silence this warning [00:02:22] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:801:16: note: use '==' to turn this assignment into an equality comparison [00:02:22] 801 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:847:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:02:22] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:847:13: note: place parentheses around the assignment to silence this warning [00:02:22] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:847:13: note: use '==' to turn this assignment into an equality comparison [00:02:22] 847 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:906:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 906 | else if (end = rfc822_parse_phrase (s)) { [00:02:22] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:906:16: note: place parentheses around the assignment to silence this warning [00:02:22] 906 | else if (end = rfc822_parse_phrase (s)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:906:16: note: use '==' to turn this assignment into an equality comparison [00:02:22] 906 | else if (end = rfc822_parse_phrase (s)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1035:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1035:11: note: place parentheses around the assignment to silence this warning [00:02:22] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1035:11: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1035 | if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1103:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1103:14: note: place parentheses around the assignment to silence this warning [00:02:22] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1103:14: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1103 | else if (t = rfc822_parse_word (string,wspecials)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1113:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:02:22] | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1113:18: note: place parentheses around the assignment to silence this warning [00:02:22] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1113:18: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1113 | if (string = rfc822_parse_domain (string,&t)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1180:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1180 | while (st = strchr (st,I2C_ESC)) [00:02:22] | ~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1180:14: note: place parentheses around the assignment to silence this warning [00:02:22] 1180 | while (st = strchr (st,I2C_ESC)) [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1180:14: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1180 | while (st = strchr (st,I2C_ESC)) [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1379:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1379:11: note: place parentheses around the assignment to silence this warning [00:02:22] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1379:11: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1379 | if (i = min (len,buf->end - buf->cur)) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1470:45: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:22] 1470 | rfc822_output_header_line (buf,"Date",i,env->date) && [00:02:22] | ^~~~~~~~~ [00:02:22] ./rfc822.h:89:11: note: passing argument to parameter 'text' here [00:02:22] 89 | char *text); [00:02:22] | ^ [00:02:22] rfc822.c:1627:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1627:14: note: place parentheses around the assignment to silence this warning [00:02:22] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1627:14: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1627 | for (; s = strpbrk (src,"\\\""); src = s + 1) { [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1745:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1745 | while (part = part->next); /* until done */ [00:02:22] | ~~~~~^~~~~~~~~~~~ [00:02:22] rfc822.c:1745:17: note: place parentheses around the assignment to silence this warning [00:02:22] 1745 | while (part = part->next); /* until done */ [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1745:17: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1745 | while (part = part->next); /* until done */ [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1813:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1813 | while (part = part->next); /* until done */ [00:02:22] | ~~~~~^~~~~~~~~~~~ [00:02:22] rfc822.c:1813:17: note: place parentheses around the assignment to silence this warning [00:02:22] 1813 | while (part = part->next); /* until done */ [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1813:17: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1813 | while (part = part->next); /* until done */ [00:02:22] | ^ [00:02:22] | == [00:02:22] rfc822.c:1969:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:22] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:02:22] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:22] rfc822.c:1969:8: note: place parentheses around the assignment to silence this warning [00:02:22] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:02:22] | ^ [00:02:22] | ( ) [00:02:22] rfc822.c:1969:8: note: use '==' to turn this assignment into an equality comparison [00:02:22] 1969 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; [00:02:22] | ^ [00:02:22] | == [00:02:22] 42 warnings generated. [00:02:22] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` nntp.c -o nntp.so [00:02:23] nntp.c:351:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:351:14: note: place parentheses around the assignment to silence this warning [00:02:23] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:351:14: note: use '==' to turn this assignment into an equality comparison [00:02:23] 351 | while (s = net_getline (LOCAL->nntpstream->netstream)) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:356:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:02:23] | ~~^~~~~~~~~~~~~~~~ [00:02:23] nntp.c:356:13: note: place parentheses around the assignment to silence this warning [00:02:23] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:356:13: note: use '==' to turn this assignment into an equality comparison [00:02:23] 356 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:360:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 360 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:23] | ^~~~ [00:02:23] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:360:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 360 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:23] | ^~~~~~~ [00:02:23] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:363:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 363 | if (pmatch_full (name,pattern,'.')) [00:02:23] | ^~~~ [00:02:23] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:363:26: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 363 | if (pmatch_full (name,pattern,'.')) [00:02:23] | ^~~~~~~ [00:02:23] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:395:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:395:9: note: place parentheses around the assignment to silence this warning [00:02:23] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:395:9: note: use '==' to turn this assignment into an equality comparison [00:02:23] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:395:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:02:23] | ^ [00:02:23] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:23] 78 | pmatch_full (s,pat,NIL) [00:02:23] | ^ [00:02:23] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:395:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 395 | if (s = sm_read (tmp,&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) [00:02:23] | ^~~ [00:02:23] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:23] 78 | pmatch_full (s,pat,NIL) [00:02:23] | ^~~ [00:02:23] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:23] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:23] | ^ [00:02:23] nntp.c:398:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 398 | while (s = sm_read (tmp,&sdb)); [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:398:12: note: place parentheses around the assignment to silence this warning [00:02:23] 398 | while (s = sm_read (tmp,&sdb)); [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:398:12: note: use '==' to turn this assignment into an equality comparison [00:02:23] 398 | while (s = sm_read (tmp,&sdb)); [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:429:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:02:23] | ~~^~~~~~~~~~~~~~~~ [00:02:23] nntp.c:429:25: note: place parentheses around the assignment to silence this warning [00:02:23] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:429:25: note: use '==' to turn this assignment into an equality comparison [00:02:23] 429 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:555:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 555 | else if (state = newsrc_state (stream,name)) { [00:02:23] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:555:20: note: place parentheses around the assignment to silence this warning [00:02:23] 555 | else if (state = newsrc_state (stream,name)) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:555:20: note: use '==' to turn this assignment into an equality comparison [00:02:23] 555 | else if (state = newsrc_state (stream,name)) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:565:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 565 | newsrc_check_uid (state,k,&status.recent,&status.unseen); [00:02:23] | ^~~~~ [00:02:23] ./newsrc.h:42:39: note: passing argument to parameter 'state' here [00:02:23] 42 | void newsrc_check_uid (unsigned char *state,unsigned long uid, [00:02:23] | ^ [00:02:23] nntp.c:574:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 574 | newsrc_check_uid (state,i++,&status.recent,&status.unseen); [00:02:23] | ^~~~~ [00:02:23] ./newsrc.h:42:39: note: passing argument to parameter 'state' here [00:02:23] 42 | void newsrc_check_uid (unsigned char *state,unsigned long uid, [00:02:23] | ^ [00:02:23] nntp.c:733:12: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 733 | lcase (strcpy (s,(long) mail_parameters (NIL,GET_NEWSRCCANONHOST,NIL) ? [00:02:23] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 734 | net_host (nstream->netstream) : mb.host)); [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] ./misc.h:83:38: note: passing argument to parameter 'string' here [00:02:23] 83 | unsigned char *lcase (unsigned char *string); [00:02:23] | ^ [00:02:23] nntp.c:852:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 852 | mail_uid_sequence (stream,sequence) : [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:23] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:23] | ^ [00:02:23] nntp.c:853:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 853 | mail_sequence (stream,sequence))) [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:23] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:23] | ^ [00:02:23] nntp.c:895:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 895 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:23] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:23] | ^ [00:02:23] nntp.c:895:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 895 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:23] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:23] | ^ [00:02:23] nntp.c:928:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 928 | for (t = v = s; c = *v++;) [00:02:23] | ~~^~~~~~ [00:02:23] nntp.c:928:22: note: place parentheses around the assignment to silence this warning [00:02:23] 928 | for (t = v = s; c = *v++;) [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:928:22: note: use '==' to turn this assignment into an equality comparison [00:02:23] 928 | for (t = v = s; c = *v++;) [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:998:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 998 | while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ [00:02:23] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:998:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 998 | while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ [00:02:23] | ^ [00:02:23] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:23] 90 | int strcmp(const char *, const char *) __pure; [00:02:23] | ^ [00:02:23] nntp.c:1038:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1038 | if (t = strchr (ov->subject,'\t')) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1038:9: note: place parentheses around the assignment to silence this warning [00:02:23] 1038 | if (t = strchr (ov->subject,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1038:9: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1038 | if (t = strchr (ov->subject,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1041:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1041 | if (ov->date = strchr (t,'\t')) { [00:02:23] | ~~~~~~~~~^~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1041:18: note: place parentheses around the assignment to silence this warning [00:02:23] 1041 | if (ov->date = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1041:18: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1041 | if (ov->date = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1044:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1044 | if (!elt->day) mail_parse_date (elt,ov->date); [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:23] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:23] | ^ [00:02:23] nntp.c:1048:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:02:23] | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1048:26: note: place parentheses around the assignment to silence this warning [00:02:23] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1048:26: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1048 | if (ov->message_id = strchr (ov->date,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1052:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:02:23] | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1052:21: note: place parentheses around the assignment to silence this warning [00:02:23] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1052:21: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1052 | if (ov->references = strchr (ov->message_id,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1056:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1056 | if (t = strchr (ov->references,'\t')) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1056:10: note: place parentheses around the assignment to silence this warning [00:02:23] 1056 | if (t = strchr (ov->references,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1056:10: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1056 | if (t = strchr (ov->references,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1061:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1061 | if (t = strchr (t,'\t')) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1061:12: note: place parentheses around the assignment to silence this warning [00:02:23] 1061 | if (t = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1061:12: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1061 | if (t = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1065:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:02:23] | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1065:30: note: place parentheses around the assignment to silence this warning [00:02:23] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1065:30: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1065 | if (ov->optional.xref = strchr (t,'\t')) [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1098:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1098:13: note: place parentheses around the assignment to silence this warning [00:02:23] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1098:13: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1098 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1150:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:02:23] | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1151 | &LOCAL->txtsize,NIL)) break; [00:02:23] | ~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1150:22: note: place parentheses around the assignment to silence this warning [00:02:23] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:02:23] | ^ [00:02:23] | ( [00:02:23] 1151 | &LOCAL->txtsize,NIL)) break; [00:02:23] | [00:02:23] | ) [00:02:23] nntp.c:1150:22: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1150 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1215:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1215 | if (msg = utf8_badcharset (charset)) { [00:02:23] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1215:11: note: place parentheses around the assignment to silence this warning [00:02:23] 1215 | if (msg = utf8_badcharset (charset)) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1215:11: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1215 | if (msg = utf8_badcharset (charset)) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1260:39: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [00:02:23] 1260 | unsigned long now = (unsigned long) time (0); [00:02:23] | ^ [00:02:23] nntp.c:1268:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:02:23] | ~~~~^~~~~~~~~~~~ [00:02:23] nntp.c:1268:13: note: place parentheses around the assignment to silence this warning [00:02:23] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1268:13: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1268 | if (set = pgm->msgno) { /* must be inside this sequence */ [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1276:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:02:23] | ~~~~^~~~~~~~~~ [00:02:23] nntp.c:1276:13: note: place parentheses around the assignment to silence this warning [00:02:23] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1276:13: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1276 | if (set = pgm->uid) { /* must be inside this sequence */ [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1313:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1313 | (!mail_parse_date (&delt,ov->date) || [00:02:23] | ^~~~~~~~ [00:02:23] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:23] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:23] | ^ [00:02:23] nntp.c:1512:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:02:23] | ~~^~~~~~ [00:02:23] nntp.c:1512:25: note: place parentheses around the assignment to silence this warning [00:02:23] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1512:25: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1512 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1521:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1521 | if (t = strchr (v,'\t')) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1521:8: note: place parentheses around the assignment to silence this warning [00:02:23] 1521 | if (t = strchr (v,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1521:8: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1521 | if (t = strchr (v,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1523:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:02:23] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1523:12: note: place parentheses around the assignment to silence this warning [00:02:23] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1523:12: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1523 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1528:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1528 | if (v = strchr (t,'\t')) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1528:10: note: place parentheses around the assignment to silence this warning [00:02:23] 1528 | if (v = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1528:10: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1528 | if (v = strchr (t,'\t')) { [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1530:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1530 | if (mail_parse_date (&telt,t)) r->date = mail_longdate (&telt); [00:02:23] | ^ [00:02:23] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:23] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:23] | ^ [00:02:23] nntp.c:1678:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1678 | if (netstream = /* try to open ordinary connection */ [00:02:23] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1679 | net_open (&mb,dv,port, [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1680 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1681 | "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1678:21: note: place parentheses around the assignment to silence this warning [00:02:23] 1678 | if (netstream = /* try to open ordinary connection */ [00:02:23] | ^ [00:02:23] | ( [00:02:23] 1679 | net_open (&mb,dv,port, [00:02:23] 1680 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:02:23] 1681 | "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { [00:02:23] | [00:02:23] | ) [00:02:23] nntp.c:1678:21: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1678 | if (netstream = /* try to open ordinary connection */ [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1719:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1719 | if (stream->netstream->stream = [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ [00:02:23] 1720 | (*stls) (stream->netstream->stream,mb.host, [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1721 | (mb.tlssslv23 ? NIL : NET_TLSCLIENT) | [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] 1722 | (mb.novalidate ? NET_NOVALIDATECERT:NIL))) [00:02:23] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1719:35: note: place parentheses around the assignment to silence this warning [00:02:23] 1719 | if (stream->netstream->stream = [00:02:23] | ^ [00:02:23] | ( [00:02:23] 1720 | (*stls) (stream->netstream->stream,mb.host, [00:02:23] 1721 | (mb.tlssslv23 ? NIL : NET_TLSCLIENT) | [00:02:23] 1722 | (mb.novalidate ? NET_NOVALIDATECERT:NIL))) [00:02:23] | [00:02:23] | ) [00:02:23] nntp.c:1719:35: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1719 | if (stream->netstream->stream = [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1816:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:23] | ~~~~~^~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1816:14: note: place parentheses around the assignment to silence this warning [00:02:23] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1816:14: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1816 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:1817:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1817 | if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1817:29: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1817 | if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; [00:02:23] | ^~~~~~~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1818:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1818 | else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1818:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1818 | else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; [00:02:23] | ^~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1819:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1819 | else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1819:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1819 | else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; [00:02:23] | ^~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1820:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1820 | else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1820:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1820 | else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; [00:02:23] | ^~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1821:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1821 | else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1821:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1821 | else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; [00:02:23] | ^~~~~~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1822:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1822 | else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1822:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1822 | else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; [00:02:23] | ^~~~~~~~~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1824:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1824 | else if (!compare_cstring (t,"AUTHINFO") && args) { [00:02:23] | ^ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1824:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1824 | else if (!compare_cstring (t,"AUTHINFO") && args) { [00:02:23] | ^~~~~~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1827:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1827 | if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; [00:02:23] | ^~~~ [00:02:23] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1827:29: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1827 | if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; [00:02:23] | ^~~~~~ [00:02:23] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:23] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:23] | ^ [00:02:23] nntp.c:1915:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:23] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:02:23] | ^~~~~~~~~ [00:02:23] /usr/include/string.h:136:26: note: passing argument to parameter here [00:02:23] 136 | char *strstr(const char *, const char *) __pure; [00:02:23] | ^ [00:02:23] nntp.c:1915:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:1915:9: note: place parentheses around the assignment to silence this warning [00:02:23] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:1915:9: note: use '==' to turn this assignment into an equality comparison [00:02:23] 1915 | if (s = strstr (env->date," (")) *s = NIL; [00:02:23] | ^ [00:02:23] | == [00:02:23] nntp.c:2213:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:23] 2213 | while (t = strstr (s,"\015\012.")) { [00:02:23] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:23] nntp.c:2213:12: note: place parentheses around the assignment to silence this warning [00:02:23] 2213 | while (t = strstr (s,"\015\012.")) { [00:02:23] | ^ [00:02:23] | ( ) [00:02:23] nntp.c:2213:12: note: use '==' to turn this assignment into an equality comparison [00:02:23] 2213 | while (t = strstr (s,"\015\012.")) { [00:02:23] | ^ [00:02:23] | == [00:02:23] 64 warnings generated. [00:02:23] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` smtp.c -o smtp.so [00:02:24] smtp.c:162:34: warning: passing 'char[21]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 162 | else if (!compare_cstring (mb.service,"submit")) { [00:02:24] | ^~~~~~~~~~ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:162:45: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 162 | else if (!compare_cstring (mb.service,"submit")) { [00:02:24] | ^~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:168:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:24] 168 | if (netstream = /* try to open ordinary connection */ [00:02:24] | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:24] 169 | net_open (&mb,dv,port, [00:02:24] | ~~~~~~~~~~~~~~~~~~~~~~ [00:02:24] 170 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:02:24] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:24] 171 | "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { [00:02:24] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:24] smtp.c:168:21: note: place parentheses around the assignment to silence this warning [00:02:24] 168 | if (netstream = /* try to open ordinary connection */ [00:02:24] | ^ [00:02:24] | ( [00:02:24] 169 | net_open (&mb,dv,port, [00:02:24] 170 | (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), [00:02:24] 171 | "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { [00:02:24] | [00:02:24] | ) [00:02:24] smtp.c:168:21: note: use '==' to turn this assignment into an equality comparison [00:02:24] 168 | if (netstream = /* try to open ordinary connection */ [00:02:24] | ^ [00:02:24] | == [00:02:24] smtp.c:180:23: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 180 | s = compare_cstring ("localhost",mb.host) ? [00:02:24] | ^~~~~~~~~~~ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:180:35: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 180 | s = compare_cstring ("localhost",mb.host) ? [00:02:24] | ^~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:693:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 693 | if (!compare_cstring (s,"SIZE")) { [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:693:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 693 | if (!compare_cstring (s,"SIZE")) { [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:697:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 697 | else if (!compare_cstring (s,"DELIVERBY")) { [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:697:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 697 | else if (!compare_cstring (s,"DELIVERBY")) { [00:02:24] | ^~~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:701:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 701 | else if (!compare_cstring (s,"ATRN")) { [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:701:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 701 | else if (!compare_cstring (s,"ATRN")) { [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:705:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 705 | else if (!compare_cstring (s,"AUTH")) [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:705:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 705 | else if (!compare_cstring (s,"AUTH")) [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:711:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 711 | else if (!compare_cstring (s,"SIZE")) ESMTP.size.ok = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:711:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 711 | else if (!compare_cstring (s,"SIZE")) ESMTP.size.ok = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:712:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 712 | else if (!compare_cstring (s,"8BITMIME")) ESMTP.eightbit.ok = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:712:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 712 | else if (!compare_cstring (s,"8BITMIME")) ESMTP.eightbit.ok = T; [00:02:24] | ^~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:713:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 713 | else if (!compare_cstring (s,"DSN")) ESMTP.dsn.ok = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:713:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 713 | else if (!compare_cstring (s,"DSN")) ESMTP.dsn.ok = T; [00:02:24] | ^~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:714:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 714 | else if (!compare_cstring (s,"ATRN")) ESMTP.atrn.ok = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:714:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 714 | else if (!compare_cstring (s,"ATRN")) ESMTP.atrn.ok = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:715:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 715 | else if (!compare_cstring (s,"SEND")) ESMTP.service.send = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:715:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 715 | else if (!compare_cstring (s,"SEND")) ESMTP.service.send = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:716:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 716 | else if (!compare_cstring (s,"SOML")) ESMTP.service.soml = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:716:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 716 | else if (!compare_cstring (s,"SOML")) ESMTP.service.soml = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:717:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 717 | else if (!compare_cstring (s,"SAML")) ESMTP.service.saml = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:717:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 717 | else if (!compare_cstring (s,"SAML")) ESMTP.service.saml = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:718:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 718 | else if (!compare_cstring (s,"EXPN")) ESMTP.service.expn = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:718:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 718 | else if (!compare_cstring (s,"EXPN")) ESMTP.service.expn = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:719:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 719 | else if (!compare_cstring (s,"HELP")) ESMTP.service.help = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:719:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 719 | else if (!compare_cstring (s,"HELP")) ESMTP.service.help = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:720:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 720 | else if (!compare_cstring (s,"TURN")) ESMTP.service.turn = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:720:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 720 | else if (!compare_cstring (s,"TURN")) ESMTP.service.turn = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:721:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 721 | else if (!compare_cstring (s,"ETRN")) ESMTP.service.etrn = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:721:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 721 | else if (!compare_cstring (s,"ETRN")) ESMTP.service.etrn = T; [00:02:24] | ^~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:722:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 722 | else if (!compare_cstring (s,"STARTTLS")) ESMTP.service.starttls = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:722:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 722 | else if (!compare_cstring (s,"STARTTLS")) ESMTP.service.starttls = T; [00:02:24] | ^~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:723:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 723 | else if (!compare_cstring (s,"RELAY")) ESMTP.service.relay = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:723:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 723 | else if (!compare_cstring (s,"RELAY")) ESMTP.service.relay = T; [00:02:24] | ^~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:724:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 724 | else if (!compare_cstring (s,"PIPELINING")) ESMTP.service.pipe = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:724:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 724 | else if (!compare_cstring (s,"PIPELINING")) ESMTP.service.pipe = T; [00:02:24] | ^~~~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:725:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 725 | else if (!compare_cstring (s,"ENHANCEDSTATUSCODES")) [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:725:34: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 725 | else if (!compare_cstring (s,"ENHANCEDSTATUSCODES")) [00:02:24] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:727:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 727 | else if (!compare_cstring (s,"BINARYMIME")) ESMTP.service.bmime = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:727:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 727 | else if (!compare_cstring (s,"BINARYMIME")) ESMTP.service.bmime = T; [00:02:24] | ^~~~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:728:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 728 | else if (!compare_cstring (s,"CHUNKING")) ESMTP.service.chunk = T; [00:02:24] | ^ [00:02:24] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:728:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:24] 728 | else if (!compare_cstring (s,"CHUNKING")) ESMTP.service.chunk = T; [00:02:24] | ^~~~~~~~~~ [00:02:24] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:24] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:24] | ^ [00:02:24] smtp.c:786:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:24] 786 | while (t = strstr (s,"\015\012.")) { [00:02:24] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:24] smtp.c:786:12: note: place parentheses around the assignment to silence this warning [00:02:24] 786 | while (t = strstr (s,"\015\012.")) { [00:02:24] | ^ [00:02:24] | ( ) [00:02:24] smtp.c:786:12: note: use '==' to turn this assignment into an equality comparison [00:02:24] 786 | while (t = strstr (s,"\015\012.")) { [00:02:24] | ^ [00:02:24] | == [00:02:24] 48 warnings generated. [00:02:24] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` imap4r1.c -o imap4r1.so [00:02:28] imap4r1.c:503:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:503:9: note: place parentheses around the assignment to silence this warning [00:02:28] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:503:9: note: use '==' to turn this assignment into an equality comparison [00:02:28] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:503:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:02:28] | ^ [00:02:28] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:28] 78 | pmatch_full (s,pat,NIL) [00:02:28] | ^ [00:02:28] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:28] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:28] | ^ [00:02:28] imap4r1.c:503:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 503 | if (s = sm_read (tmp,&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) [00:02:28] | ^~~ [00:02:28] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:28] 78 | pmatch_full (s,pat,NIL) [00:02:28] | ^~~ [00:02:28] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:28] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:28] | ^ [00:02:28] imap4r1.c:506:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 506 | while (s = sm_read (tmp,&sdb)); [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:506:12: note: place parentheses around the assignment to silence this warning [00:02:28] 506 | while (s = sm_read (tmp,&sdb)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:506:12: note: use '==' to turn this assignment into an equality comparison [00:02:28] 506 | while (s = sm_read (tmp,&sdb)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:563:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 563 | if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:563:33: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 563 | if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; [00:02:28] | ^~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:565:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 565 | else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:565:38: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 565 | else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; [00:02:28] | ^~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:577:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 577 | strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:578:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 578 | !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:701:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 701 | mm_log (reply->text,ret ? NIL : ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:848:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:848:20: note: place parentheses around the assignment to silence this warning [00:02:28] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:848:20: note: use '==' to turn this assignment into an equality comparison [00:02:28] 848 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:869:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 869 | if (!reply || strcmp (reply->tag,"*") || [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:870:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 870 | (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:870:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 870 | (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:871:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 871 | if (reply) mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:876:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 876 | if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:984:36: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 984 | stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:984:47: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 984 | stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:994:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 994 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1040:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1040 | !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:1044:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1044 | if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:1044:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1044 | if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:1080:37: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1080 | if (compare_cstring (reply->tag,tag)) { [00:02:28] | ^~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:1082:70: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1082 | while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) [00:02:28] | ^~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:1097:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1097 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1147:39: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1147 | else if (compare_cstring (reply->tag,tag)) [00:02:28] | ^~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:1148:67: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1148 | while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) [00:02:28] | ^~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:1157:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1157 | lsterr = cpystr (reply->text); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:28] 84 | char *cpystr (const char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:1209:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1209 | mm_log (reply->text,WARN); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1239:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1239 | !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:1244:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1244 | strlen (reply->text),len))) { [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:28] 105 | size_t strlen(const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:1301:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1301 | mm_log (reply->text,WARN); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1316:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:1316:13: note: place parentheses around the assignment to silence this warning [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:1316:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1316:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ~~^~~~~ [00:02:28] imap4r1.c:1316:45: note: place parentheses around the assignment to silence this warning [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:1316:45: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1316 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1341:40: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1341 | if (!imap_OK (stream,reply)) mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1362:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1362 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1415:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1415 | ov.date = env->date; [00:02:28] | ^ ~~~~~~~~~ [00:02:28] imap4r1.c:1463:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1463 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1498:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 1499 | min (set->last,stream->nmsgs)) { [00:02:28] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:1498:10: note: place parentheses around the assignment to silence this warning [00:02:28] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:02:28] | ^ [00:02:28] | ( [00:02:28] 1499 | min (set->last,stream->nmsgs)) { [00:02:28] | [00:02:28] | ) [00:02:28] imap4r1.c:1498:10: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1498 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1521:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1521 | if (k = (k > i) ? k - i : 0) [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:1521:9: note: place parentheses around the assignment to silence this warning [00:02:28] 1521 | if (k = (k > i) ? k - i : 0) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:1521:9: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1521 | if (k = (k > i) ? k - i : 0) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1590:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1590 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1592:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1592 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1699:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1699 | else if (t = strstr (section,".HEADER")) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:1699:16: note: place parentheses around the assignment to silence this warning [00:02:28] 1699 | else if (t = strstr (section,".HEADER")) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:1699:16: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1699 | else if (t = strstr (section,".HEADER")) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1822:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1822 | mm_log (reply->text,WARN); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1832:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1832 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1841:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1841 | mm_log (reply->text,WARN); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1845:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1845 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1883:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:1883:11: note: place parentheses around the assignment to silence this warning [00:02:28] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:1883:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 1883 | if (k = imap_uidlookahead) {/* build UID list */ [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:1898:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1898 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1934:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1934 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:1975:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 1975 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2043:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2043 | !strcmp (reply->key,"BAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2047:50: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:02:28] | ~~^~~~~~~~~~~~ [00:02:28] imap4r1.c:2047:50: note: place parentheses around the assignment to silence this warning [00:02:28] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2047:50: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2047 | for (set = ss; set; set = set->next) if (i = set->first) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2062:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2062 | if (!strcmp (reply->key,"BAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2068:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2068 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2104:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2104 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2167:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2167 | if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2174:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2174 | if (!strcmp (reply->key,"BAD")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2183:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2183 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2270:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2270 | if (!compare_cstring (thr->name,type)) [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2270:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2270 | if (!compare_cstring (thr->name,type)) [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2330:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2330 | if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2337:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2337 | if (!strcmp (reply->key,"BAD")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:2345:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2345 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2369:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2369 | mm_log (reply->text,imap_OK (stream,reply) ? (long) NIL : ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2394:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2394 | else if (mail_sequence (stream,sequence)) { [00:02:28] | ^~~~~~~~ [00:02:28] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:28] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:28] | ^ [00:02:28] imap4r1.c:2422:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2422 | if (reply) mm_log (reply->text,ret ? (long) NIL : ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2460:65: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2460 | else if (ir && pc && LOCAL->referral && mail_sequence (stream,sequence) && [00:02:28] | ^~~~~~~~ [00:02:28] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:28] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:28] | ^ [00:02:28] imap4r1.c:2464:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2464 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2517:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2517 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2580:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2580 | mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2610:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2610 | if (!mail_parse_date (&elt,date)) { [00:02:28] | ^~~~ [00:02:28] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:28] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:2614:44: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2614 | LOCAL->reply.tag = LOCAL->reply.line = cpystr ("*"); [00:02:28] | ^ ~~~~~~~~~~~~ [00:02:28] imap4r1.c:2615:24: warning: assigning to 'unsigned char *' from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2615 | LOCAL->reply.key = "BAD"; [00:02:28] | ^ ~~~~~ [00:02:28] imap4r1.c:2616:25: warning: assigning to 'unsigned char *' from 'char[19]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2616 | LOCAL->reply.text = "Bad date in append"; [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2649:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:02:28] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2649:15: note: place parentheses around the assignment to silence this warning [00:02:28] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2649:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2649 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2704:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2704:13: note: place parentheses around the assignment to silence this warning [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2704:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2704:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ~~^~~~~ [00:02:28] imap4r1.c:2704:45: note: place parentheses around the assignment to silence this warning [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2704:45: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2704 | if (thr = LOCAL->cap.threader) while (t = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2812:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2812 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2836:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2836 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2858:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2858 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2881:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2881 | else mm_log (reply->text,ERROR); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:28] 1605 | void mm_log (char *string,long errflg); [00:02:28] | ^ [00:02:28] imap4r1.c:2918:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2918 | (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2918:46: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2918 | (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2919:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2919 | compare_cstring (cmd,"STORE") && [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2919:25: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2919 | compare_cstring (cmd,"STORE") && [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2920:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2920 | compare_cstring (cmd,"SEARCH")) ? [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2920:25: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 2920 | compare_cstring (cmd,"SEARCH")) ? [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:2926:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ~~~~~~~^~~~~~ [00:02:28] imap4r1.c:2926:14: note: place parentheses around the assignment to silence this warning [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2926:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2926:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ~~~~^~~~~~~~~~~ [00:02:28] imap4r1.c:2926:33: note: place parentheses around the assignment to silence this warning [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2926:33: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2926 | if (arglst = args) while (arg = *arglst++) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2946:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2946:17: note: place parentheses around the assignment to silence this warning [00:02:28] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2946:17: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2946 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2950:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2950:17: note: place parentheses around the assignment to silence this warning [00:02:28] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2950:17: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2950 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2958:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 2959 | CMDBASE+MAXCOMMAND)) return reply; [00:02:28] | ~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2958:12: note: place parentheses around the assignment to silence this warning [00:02:28] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:02:28] | ^ [00:02:28] | ( [00:02:28] 2959 | CMDBASE+MAXCOMMAND)) return reply; [00:02:28] | [00:02:28] | ) [00:02:28] imap4r1.c:2958:12: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2958 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2962:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2962 | while (list = list->next); [00:02:28] | ~~~~~^~~~~~~~~~~~ [00:02:28] imap4r1.c:2962:19: note: place parentheses around the assignment to silence this warning [00:02:28] 2962 | while (list = list->next); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:2962:19: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2962 | while (list = list->next); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:2966:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 2967 | CMDBASE+MAXCOMMAND)) [00:02:28] | ~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:2966:17: note: place parentheses around the assignment to silence this warning [00:02:28] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:02:28] | ^ [00:02:28] | ( [00:02:28] 2967 | CMDBASE+MAXCOMMAND)) [00:02:28] | [00:02:28] | ) [00:02:28] imap4r1.c:2966:17: note: use '==' to turn this assignment into an equality comparison [00:02:28] 2966 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3052:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3052:17: note: place parentheses around the assignment to silence this warning [00:02:28] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3052:17: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3052 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3073:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3073 | if (!map->date || mail_parse_date (&elt,map->date)) { [00:02:28] | ^~~~~~~~~ [00:02:28] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:28] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3074:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3074 | if (t = map->flags) { /* flags given? */ [00:02:28] | ~~^~~~~~~~~~~~ [00:02:28] imap4r1.c:3074:10: note: place parentheses around the assignment to silence this warning [00:02:28] 3074 | if (t = map->flags) { /* flags given? */ [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3074:10: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3074 | if (t = map->flags) { /* flags given? */ [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3086:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 3087 | CMDBASE+MAXCOMMAND)) return reply; [00:02:28] | ~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3086:16: note: place parentheses around the assignment to silence this warning [00:02:28] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:02:28] | ^ [00:02:28] | ( [00:02:28] 3087 | CMDBASE+MAXCOMMAND)) return reply; [00:02:28] | [00:02:28] | ) [00:02:28] imap4r1.c:3086:16: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3086 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3090:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3090:14: note: place parentheses around the assignment to silence this warning [00:02:28] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3090:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3090 | if (reply = imap_send_literal (stream,tag,&s,map->message)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3120:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3120 | while (list = list->next); [00:02:28] | ~~~~~^~~~~~~~~~~~ [00:02:28] imap4r1.c:3120:19: note: place parentheses around the assignment to silence this warning [00:02:28] 3120 | while (list = list->next); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3120:19: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3120 | while (list = list->next); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3199:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3199 | if (strcmp (reply->tag,"+")) {/* prompt for more data? */ [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3354:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3354 | if (hdr = pgm->header) do { [00:02:28] | ~~~~^~~~~~~~~~~~~ [00:02:28] imap4r1.c:3354:11: note: place parentheses around the assignment to silence this warning [00:02:28] 3354 | if (hdr = pgm->header) do { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3354:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3354 | if (hdr = pgm->header) do { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3356:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3356:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3356:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3356 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3359:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3359:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3359:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3359 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3361:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3361 | } while (hdr = hdr->next); [00:02:28] | ~~~~^~~~~~~~~~~ [00:02:28] imap4r1.c:3361:16: note: place parentheses around the assignment to silence this warning [00:02:28] 3361 | } while (hdr = hdr->next); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3361:16: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3361 | } while (hdr = hdr->next); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3364:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3364:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3364:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3364 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3367:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3367:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3367:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3367 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3373:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3373:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3373:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3373 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3451:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3451:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3451:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3451 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3453:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3453:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3453:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3453 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3554:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:02:28] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3554:15: note: place parentheses around the assignment to silence this warning [00:02:28] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3554:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3554 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3556:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3556 | if (!strcmp (reply->tag,"+")) return reply; [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3558:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3558 | else if (!strcmp (reply->tag,"*")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3563:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3563 | if (tag && !compare_cstring (tag,reply->tag)) return reply; [00:02:28] | ^~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3589:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3589 | if (!(LOCAL->reply.line = text)) { [00:02:28] | ^ ~~~~ [00:02:28] imap4r1.c:3595:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3595 | if (stream->debug) mm_dlog (LOCAL->reply.line); [00:02:28] | ^~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:02:28] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:02:28] | ^ [00:02:28] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:02:28] 1606 | void mm_dlog (char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3596:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3596 | if (!(LOCAL->reply.tag = strtok_r (LOCAL->reply.line," ",&r))) { [00:02:28] | ^~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:02:28] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:02:28] | ^ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3596:26: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3596 | if (!(LOCAL->reply.tag = strtok_r (LOCAL->reply.line," ",&r))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3602:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3602 | if (strcmp (LOCAL->reply.tag,"+")) { [00:02:28] | ^~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:02:28] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3604:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3604 | if (!(LOCAL->reply.key = strtok_r (NIL," ",&r))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3614:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3614 | if (!(LOCAL->reply.text = strtok_r (NIL,"\n",&r))) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3615:54: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3615 | LOCAL->reply.text = LOCAL->reply.key + strlen (LOCAL->reply.key); [00:02:28] | ^~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:106:15: note: expanded from macro 'LOCAL' [00:02:28] 106 | #define LOCAL ((IMAPLOCAL *) stream->local) [00:02:28] | ^ [00:02:28] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:28] 105 | size_t strlen(const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3618:22: warning: assigning to 'unsigned char *' from 'char[4]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3618 | LOCAL->reply.key = "BAD"; /* so it barfs if not expecting continuation */ [00:02:28] | ^ ~~~~~ [00:02:28] imap4r1.c:3619:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3619 | if (!(LOCAL->reply.text = strtok_r (NIL,"\n",&r))) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3620:25: warning: assigning to 'unsigned char *' from 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3620 | LOCAL->reply.text = ""; [00:02:28] | ^ ~~ [00:02:28] imap4r1.c:3640:40: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3640 | LOCAL->reply.tag = LOCAL->reply.line = cpystr (tag ? tag : "*"); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3641:20: warning: assigning to 'unsigned char *' from 'char[3]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3641 | LOCAL->reply.key = "NO"; [00:02:28] | ^ ~~~~ [00:02:28] imap4r1.c:3642:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3642 | LOCAL->reply.text = text; [00:02:28] | ^ ~~~~ [00:02:28] imap4r1.c:3657:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3657 | if (!strcmp (reply->key,"OK")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3658:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3658 | imap_parse_response (stream,reply->text,NIL,NIL); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:3662:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3662 | else if (!strcmp (reply->key,"NO")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3663:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3663 | imap_parse_response (stream,reply->text,WARN,NIL); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:3665:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3665 | if (!strcmp (reply->key,"BAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3666:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3666 | imap_parse_response (stream,reply->text,ERROR,NIL); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:3690:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3690 | msgno = strtoul (reply->key,(char **) &s,10); [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3704:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3704 | s = ucase (strtok_r (reply->text," ",&r)); [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3704:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3704 | s = ucase (strtok_r (reply->text," ",&r)); [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3705:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3705 | t = strtok_r (NIL,"\n",&r); /* and locate the text after it */ [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3708:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3708 | if (!strcmp (s,"EXISTS") && (msgno >= stream->nmsgs)) [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3710:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3710 | else if (!strcmp (s,"RECENT") && (msgno <= stream->nmsgs)) [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3712:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3712 | else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3720:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3720 | else if (t && (!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3720:52: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3720 | else if (t && (!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3731:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3731 | while ((prop = (strtok_r (t," )",&r))) && (t = strtok_r (NIL,"\n",&r))) { [00:02:28] | ^ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3731:52: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3731 | while ((prop = (strtok_r (t," )",&r))) && (t = strtok_r (NIL,"\n",&r))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3735:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3735 | if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); [00:02:28] | ^~~~ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3735:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3735 | if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); [00:02:28] | ^~~~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3743:27: warning: passing 'char[27]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3743 | mail_parse_date (elt,"01-Jan-1970 00:00:00 +0000"); [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:28] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3749:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3749 | LOCAL->lastuid.uid = elt->private.uid = strtoul (t,(char **) &t,10); [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3790:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3790 | if (!(s = strchr (md.what,']'))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3792:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3792 | for (s = md.what; *s && (isdigit (*s) || (*s == '.')); s++); [00:02:28] | ^ ~~~~~~~ [00:02:28] imap4r1.c:3794:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3794 | if (strncmp (s,"HEADER.FIELDS",13) && [00:02:28] | ^ [00:02:28] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:28] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3795:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3795 | (!s[13] || strcmp (s+13,".NOT"))) [00:02:28] | ^~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3805:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:02:28] | ^~~~~ [00:02:28] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:28] 85 | char *strchr(const char *, int) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3805:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3805:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3805:19: note: place parentheses around the assignment to silence this warning [00:02:28] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3805:19: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3805 | else if (t = strchr (s = t,' ')) *t++ = '\0'; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3810:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3810 | md.first = strtoul (s+1,(char **) &s,10) + 1; [00:02:28] | ^~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3853:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3853 | elt->rfc822_size = strtoul (t,(char **) &t,10); [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3889:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3889 | else if (strcmp (s,"COPY")) { [00:02:28] | ^ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3896:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3896 | else if (!strcmp (reply->key,"FLAGS") && reply->text && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3898:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3898 | (s = strtok_r (reply->text+1," )",&r))) [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3898:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3898 | (s = strtok_r (reply->text+1," )",&r))) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3901:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3901 | compare_cstring (s,stream->user_flags[i]); i++); [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3907:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3907 | else if (!stream->user_flags[i]) stream->user_flags[i++] = cpystr (s); [00:02:28] | ^ [00:02:28] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:28] 84 | char *cpystr (const char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:3909:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3909 | while (s = strtok_r (NIL," )",&r)); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3909:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3909 | while (s = strtok_r (NIL," )",&r)); [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3909:14: note: place parentheses around the assignment to silence this warning [00:02:28] 3909 | while (s = strtok_r (NIL," )",&r)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3909:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3909 | while (s = strtok_r (NIL," )",&r)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3910:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3910 | else if (!strcmp (reply->key,"SEARCH")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3912:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3912 | if (reply->text && (t = strtok_r (reply->text," ",&r))) do [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3912:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3912 | if (reply->text && (t = strtok_r (reply->text," ",&r))) do [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3913:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3913 | if (i = strtoul (t,NIL,10)) { [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3913:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3913 | if (i = strtoul (t,NIL,10)) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3913:13: note: place parentheses around the assignment to silence this warning [00:02:28] 3913 | if (i = strtoul (t,NIL,10)) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3913:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3913 | if (i = strtoul (t,NIL,10)) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3922:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3922:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3922:18: note: place parentheses around the assignment to silence this warning [00:02:28] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3922:18: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3922 | } while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3924:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3924 | else if (!strcmp (reply->key,"SORT")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3932:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3932 | if (reply->text && (t = strtok_r (reply->text," ",&r))) { [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:3932:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3932 | if (reply->text && (t = strtok_r (reply->text," ",&r))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3933:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3933 | do if ((i = atol (t)) && (LOCAL->filter ? [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:89:24: note: passing argument to parameter here [00:02:28] 89 | long atol(const char *); [00:02:28] | ^ [00:02:28] imap4r1.c:3936:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3936 | while ((t = strtok_r (NIL," ",&r)) && (LOCAL->sortsize < stream->nmsgs)); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3942:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3942 | else if (!strcmp (reply->key,"THREAD")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3946:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 3946 | if (s = reply->text) { [00:02:28] | ~~^~~~~~~~~~~~~ [00:02:28] imap4r1.c:3946:11: note: place parentheses around the assignment to silence this warning [00:02:28] 3946 | if (s = reply->text) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:3946:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 3946 | if (s = reply->text) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:3957:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3957 | else if (!strcmp (reply->key,"STATUS") && reply->text) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3961:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3961 | (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && [00:02:28] | ^~~ [00:02:28] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:28] 85 | char *strchr(const char *, int) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3961:43: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3961 | (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && [00:02:28] | ^ ~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3967:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3967 | while (*txt && (s = strchr (txt,' '))) { [00:02:28] | ^~~ [00:02:28] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:28] 85 | char *strchr(const char *, int) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:3967:25: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3967 | while (*txt && (s = strchr (txt,' '))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:3970:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3970 | i = strtoul (s,(char **) &s,10); [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:3971:28: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3971 | if (!compare_cstring (txt,"MESSAGES")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3975:33: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3975 | else if (!compare_cstring (txt,"RECENT")) { [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3979:33: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3979 | else if (!compare_cstring (txt,"UNSEEN")) { [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3983:33: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3983 | else if (!compare_cstring (txt,"UIDNEXT")) { [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3987:33: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3987 | else if (!compare_cstring (txt,"UIDVALIDITY")) { [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:3996:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 3996 | strcpy (strncpy (LOCAL->tmp,stream->mailbox,i) + i,t); [00:02:28] | ^ [00:02:28] /usr/include/string.h:92:58: note: passing argument to parameter here [00:02:28] 92 | char *(strcpy)(char * __restrict, const char * __restrict); [00:02:28] | ^ [00:02:28] imap4r1.c:4004:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4004 | else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4004:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4004 | else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4006:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4006 | (s = strchr (reply->text,')')) && (s[1] == ' ')) { [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:28] 85 | char *strchr(const char *, int) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4006:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4006 | (s = strchr (reply->text,')')) && (s[1] == ' ')) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4010:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] /usr/include/string.h:139:22: note: passing argument to parameter here [00:02:28] 139 | char *strtok_r(char *, const char *, char **); [00:02:28] | ^ [00:02:28] imap4r1.c:4010:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4010:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4010:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4010:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4010 | if (t = strtok_r (reply->text+1," ",&r)) do { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4011:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4011 | if (!compare_cstring (t,"\\NoInferiors")) i |= LATT_NOINFERIORS; [00:02:28] | ^~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4012:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4012 | else if (!compare_cstring (t,"\\NoSelect")) i |= LATT_NOSELECT; [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4013:36: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4013 | else if (!compare_cstring (t,"\\Marked")) i |= LATT_MARKED; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4014:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4014 | else if (!compare_cstring (t,"\\Unmarked")) i |= LATT_UNMARKED; [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4015:36: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4015 | else if (!compare_cstring (t,"\\HasChildren")) i |= LATT_HASCHILDREN; [00:02:28] | ^~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4016:36: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4016 | else if (!compare_cstring (t,"\\HasNoChildren")) i |= LATT_HASNOCHILDREN; [00:02:28] | ^~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4019:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4019 | while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4019:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4019 | while (t = strtok_r (NIL," ",&r)); [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4019:14: note: place parentheses around the assignment to silence this warning [00:02:28] 4019 | while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4019:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4019 | while (t = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4030:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4030:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4030:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4030 | if (t = imap_parse_astring (stream,&s,reply,&j)) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4033:13: warning: assigning to 'unsigned char *' from 'char[16384]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4033 | sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); [00:02:28] | ^ ~~~~~~~~~~ [00:02:28] imap4r1.c:4033:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4033 | sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); [00:02:28] | ^~~~~~~~~~~~~~ [00:02:28] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:28] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:28] | ^ [00:02:28] imap4r1.c:4036:59: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4036 | if (reply->key[1] == 'S') mm_lsub (stream,delimiter,s,i); [00:02:28] | ^ [00:02:28] ./mail.h:1603:54: note: passing argument to parameter 'name' here [00:02:28] 1603 | void mm_lsub (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:02:28] | ^ [00:02:28] imap4r1.c:4037:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4037 | else mm_list (stream,delimiter,s,i); [00:02:28] | ^ [00:02:28] ./mail.h:1602:54: note: passing argument to parameter 'name' here [00:02:28] 1602 | void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:02:28] | ^ [00:02:28] imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4041 | else if (!strcmp (reply->key,"NAMESPACE")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4048:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4048 | if (s = reply->text) { /* parse namespace results */ [00:02:28] | ~~^~~~~~~~~~~~~ [00:02:28] imap4r1.c:4048:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4048 | if (s = reply->text) { /* parse namespace results */ [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4048:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4048 | if (s = reply->text) { /* parse namespace results */ [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4064:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4064 | else if (!strcmp (reply->key,"ACL") && (s = reply->text) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4070:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4070 | do if ((ac->identifier = imap_parse_astring (stream,&s,reply,NIL)) && [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4072:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4072 | ac->rights = imap_parse_astring (stream,&s,reply,NIL); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4081:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4081 | else if (ar) (*ar) (stream,t,al); [00:02:28] | ^ [00:02:28] imap4r1.c:4085:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4085 | else if (ar) (*ar) (stream,t,NIL); [00:02:28] | ^ [00:02:28] imap4r1.c:4089:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4089 | else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4093:35: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4093 | if (s && (*s++ == ' ') && (id = imap_parse_astring (stream,&s,reply,NIL))){ [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4095:7: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4095 | (r = imap_parse_astring (stream,&s,reply,NIL))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4109:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4109 | else if (lr) (*lr) (stream,t,id,r,rl); [00:02:28] | ^ [00:02:28] imap4r1.c:4114:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4114 | else if (lr) (*lr) (stream,t,id,r,NIL); [00:02:28] | ^ [00:02:28] imap4r1.c:4132:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4132 | else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4136:34: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4136 | if (s && (*s++ == ' ') && (r = imap_parse_astring (stream,&s,reply,NIL))) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4142:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4142 | else if (mr) (*mr) (stream,t,r); [00:02:28] | ^ [00:02:28] imap4r1.c:4154:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4154 | else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4165:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4165 | if ((qc->name = imap_parse_astring (stream,&s,reply,NIL)) && s && [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4167:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4167 | if (isdigit (*s)) qc->usage = strtoul (s,(char **) &s,10); [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:4168:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4168 | else if (t = strchr (s,' ')) t = s; [00:02:28] | ^ [00:02:28] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:28] 85 | char *strchr(const char *, int) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4168:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4168 | else if (t = strchr (s,' ')) t = s; [00:02:28] | ^ ~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4168:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4168 | else if (t = strchr (s,' ')) t = s; [00:02:28] | ~~^~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4168:15: note: place parentheses around the assignment to silence this warning [00:02:28] 4168 | else if (t = strchr (s,' ')) t = s; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4168:15: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4168 | else if (t = strchr (s,' ')) t = s; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4170:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4170 | if (isdigit (*s)) qc->limit = strtoul (s,(char **) &s,10); [00:02:28] | ^ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:4171:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4171 | else if (t = strpbrk (s," )")) t = s; [00:02:28] | ^ [00:02:28] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:28] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4171:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4171 | else if (t = strpbrk (s," )")) t = s; [00:02:28] | ^ ~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4171:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4171 | else if (t = strpbrk (s," )")) t = s; [00:02:28] | ~~^~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4171:17: note: place parentheses around the assignment to silence this warning [00:02:28] 4171 | else if (t = strpbrk (s," )")) t = s; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4171:17: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4171 | else if (t = strpbrk (s," )")) t = s; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4176:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4176 | if (qt) (*qt) (stream,t,ql); [00:02:28] | ^ [00:02:28] imap4r1.c:4195:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4195 | else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4210:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4210 | else if (qr) (*qr) (stream,t,rl); [00:02:28] | ^ [00:02:28] imap4r1.c:4221:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4221 | else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4221:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4221 | else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4222:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4222 | imap_parse_response (stream,reply->text,NIL,T); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:4223:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4223 | else if (!strcmp (reply->key,"NO")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4224:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4224 | imap_parse_response (stream,reply->text,WARN,T); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:4225:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4225 | else if (!strcmp (reply->key,"BAD")) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4226:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4226 | imap_parse_response (stream,reply->text,ERROR,T); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:4227:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4227 | else if (!strcmp (reply->key,"BYE")) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4229:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4229 | imap_parse_response (stream,reply->text,BYE,T); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:227:52: note: passing argument to parameter 'text' here [00:02:28] 227 | void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); [00:02:28] | ^ [00:02:28] imap4r1.c:4231:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4231 | else if (!strcmp (reply->key,"CAPABILITY") && reply->text) [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4232:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4232 | imap_parse_capabilities (stream,reply->text); [00:02:28] | ^~~~~~~~~~~ [00:02:28] imap4r1.c:262:56: note: passing argument to parameter 't' here [00:02:28] 262 | void imap_parse_capabilities (MAILSTREAM *stream,char *t); [00:02:28] | ^ [00:02:28] imap4r1.c:4233:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4233 | else if (!strcmp (reply->key,"MAILBOX") && reply->text) { [00:02:28] | ^~~~~~~~~~ [00:02:28] /usr/include/string.h:90:25: note: passing argument to parameter here [00:02:28] 90 | int strcmp(const char *, const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4235:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4235 | ((strlen (LOCAL->prefix) + strlen (reply->text)) < IMAPTMPLEN)) [00:02:28] | ^~~~~~~~~~~ [00:02:28] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:28] 105 | size_t strlen(const char *) __pure; [00:02:28] | ^ [00:02:28] imap4r1.c:4236:18: warning: assigning to 'unsigned char *' from 'char[16384]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4236 | sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); [00:02:28] | ^ ~~~~~~~~~~ [00:02:28] imap4r1.c:4236:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4236 | sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); [00:02:28] | ^~~~~~~~~~~~~~ [00:02:28] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:28] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:28] | ^ [00:02:28] imap4r1.c:4238:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4238 | mm_list (stream,NIL,t,NIL); [00:02:28] | ^ [00:02:28] ./mail.h:1602:54: note: passing argument to parameter 'name' here [00:02:28] 1602 | void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); [00:02:28] | ^ [00:02:28] imap4r1.c:4268:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4268:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4268:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4268 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4271:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4271 | if (!compare_cstring (t,"CAPABILITY")) imap_parse_capabilities(stream,s); [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4271:31: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4271 | if (!compare_cstring (t,"CAPABILITY")) imap_parse_capabilities(stream,s); [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4272:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4272 | else if (!compare_cstring (t,"PERMANENTFLAGS") && (*s == '(') && [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4272:36: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4272 | else if (!compare_cstring (t,"PERMANENTFLAGS") && (*s == '(') && [00:02:28] | ^~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4278:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4278:8: note: place parentheses around the assignment to silence this warning [00:02:28] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4278:8: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4278 | if (s = strtok_r (s+1," ",&r)) do { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4280:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4280 | if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4280:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4280 | if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4281:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4281 | else if (!compare_cstring (s,"\\Deleted")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4281:35: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4281 | else if (!compare_cstring (s,"\\Deleted")) [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4283:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4283 | else if (!compare_cstring (s,"\\Flagged")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4283:35: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4283 | else if (!compare_cstring (s,"\\Flagged")) [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4285:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4285 | else if (!compare_cstring (s,"\\Answered")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4285:35: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4285 | else if (!compare_cstring (s,"\\Answered")) [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4287:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4287 | else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4287:35: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4287 | else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4292:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4292 | while (s = strtok_r (NIL," ",&r)); [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4292:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4292 | while (s = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4292:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4292 | while (s = strtok_r (NIL," ",&r)); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4295:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4295 | else if (!compare_cstring (t,"UIDVALIDITY") && (j = strtoul (s,NIL,10))){ [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4295:36: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4295 | else if (!compare_cstring (t,"UIDVALIDITY") && (j = strtoul (s,NIL,10))){ [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4302:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:02:28] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4302:14: note: place parentheses around the assignment to silence this warning [00:02:28] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4302:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4302 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4306:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4306 | else if (!compare_cstring (t,"UIDNEXT")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4306:36: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4306 | else if (!compare_cstring (t,"UIDNEXT")) [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4309:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4309 | !compare_cstring (t,"COPYUID") && [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4309:29: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4309 | !compare_cstring (t,"COPYUID") && [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4315:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4315 | else if (j && !compare_cstring (t,"APPENDUID") && [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4315:41: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4315 | else if (j && !compare_cstring (t,"APPENDUID") && [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4322:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4322 | if (!compare_cstring (t,"REFERRAL")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4322:26: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4322 | if (!compare_cstring (t,"REFERRAL")) [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4329:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4329 | if (!compare_cstring (t,"UIDNOTSTICKY")) { [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4329:31: warning: passing 'char[13]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4329 | if (!compare_cstring (t,"UIDNOTSTICKY")) { [00:02:28] | ^~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4333:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4333 | else if (!compare_cstring (t,"READ-ONLY")) stream->rdonly = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4333:36: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4333 | else if (!compare_cstring (t,"READ-ONLY")) stream->rdonly = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4334:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4334 | else if (!compare_cstring (t,"READ-WRITE")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4334:36: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4334 | else if (!compare_cstring (t,"READ-WRITE")) [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4336:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4336 | else if (!compare_cstring (t,"PARSE") && !errflg) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4336:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4336 | else if (!compare_cstring (t,"PARSE") && !errflg) [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4378:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4378 | nam->name = imap_parse_string (stream,txtptr,reply,NIL,NIL,NIL); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4403:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4403 | if (!(par->attribute = imap_parse_string (stream,txtptr,reply,NIL, [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 4404 | NIL,NIL))) { [00:02:28] | ~~~~~~~~ [00:02:28] imap4r1.c:4415:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4415 | if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL, [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 4416 | NIL,LONGT))) { [00:02:28] | ~~~~~~~~~~ [00:02:28] imap4r1.c:4488:29: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4488 | else if (isdigit (*(s = *txtptr)) && [00:02:28] | ^ ~~~~~~~ [00:02:28] /usr/include/ctype.h:90:32: note: expanded from macro 'isdigit' [00:02:28] 90 | #define isdigit(c) __sbistype((c), _CTYPE_D) [00:02:28] | ^ [00:02:28] imap4r1.c:4490:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4490 | strtoul (*txtptr,(char **) txtptr,10))) { [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:4575:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4575 | (*env)->subject = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4582:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4582 | (*env)->in_reply_to = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 4583 | LONGT); [00:02:28] | ~~~~~~ [00:02:28] imap4r1.c:4584:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4584 | (*env)->message_id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4681:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4681 | adr->personal = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4682:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4682 | adr->adl = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4683:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4683 | adr->mailbox = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4684:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4684 | adr->host = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4781:19: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4781 | while (*(flag = ++*txtptr) == ' '); [00:02:28] | ^ ~~~~~~~~~ [00:02:28] imap4r1.c:4789:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4789 | if (!compare_cstring (flag,"\\Seen")) elt->seen = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4789:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4789 | if (!compare_cstring (flag,"\\Seen")) elt->seen = T; [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4790:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4790 | else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4790:39: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4790 | else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4791:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4791 | else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4791:39: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4791 | else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4792:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4792 | else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4792:39: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4792 | else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; [00:02:28] | ^~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4793:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4793 | else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4793:39: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4793 | else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4794:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4794 | else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4794:39: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4794 | else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4822:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4822 | if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4822:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4822 | if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:4853:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:02:28] | ~~^~~~~~~~~~~~~ [00:02:28] imap4r1.c:4853:11: note: place parentheses around the assignment to silence this warning [00:02:28] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4853:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4853 | if (i = *txtptr - s) { /* atom ends at atom_special */ [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4855:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4855 | ret = strncpy ((char *) fs_get (i + 1),s,i); [00:02:28] | ^ [00:02:28] /usr/include/string.h:117:59: note: passing argument to parameter here [00:02:28] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:02:28] | ^ [00:02:28] imap4r1.c:4855:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4855 | ret = strncpy ((char *) fs_get (i + 1),s,i); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4896:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4896 | if (c) st = ++*txtptr; /* remember start of string */ [00:02:28] | ^ ~~~~~~~~~ [00:02:28] imap4r1.c:4951:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4951 | else if ((i = strtoul (*txtptr,(char **) txtptr,10)) > MAXSERVERLIT) { [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:4973:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4973:29: note: place parentheses around the assignment to silence this warning [00:02:28] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4973:29: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4973 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4981:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:02:28] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4981:28: note: place parentheses around the assignment to silence this warning [00:02:28] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:4981:28: note: use '==' to turn this assignment into an equality comparison [00:02:28] 4981 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:4983:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4983 | if (!(reply->line = net_getline (LOCAL->netstream))) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:4984:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4984 | reply->line = cpystr (""); [00:02:28] | ^ ~~~~~~~~~~~ [00:02:28] imap4r1.c:4985:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 4985 | if (stream->debug) mm_dlog (reply->line); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:02:28] 1606 | void mm_dlog (char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5053:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5053 | if (!(b = mail_body (stream,msgno,seg))) { [00:02:28] | ^~~ [00:02:28] ./mail.h:1693:19: note: passing argument to parameter 'section' here [00:02:28] 1693 | unsigned char *section); [00:02:28] | ^ [00:02:28] imap4r1.c:5131:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5131:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5131:25: note: place parentheses around the assignment to silence this warning [00:02:28] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5131:25: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5131 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5132:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5132 | ucase (body->subtype); [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5150:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5150 | body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5171:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5171:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5171:13: note: place parentheses around the assignment to silence this warning [00:02:28] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5171:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5171 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5172:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5172 | ucase (s); /* application always gets uppercase form */ [00:02:28] | ^ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5184:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5184:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5184:25: note: place parentheses around the assignment to silence this warning [00:02:28] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5184:25: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5184 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5185:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5185 | ucase (body->subtype); /* parse subtype */ [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5192:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5192 | body->id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5193:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5193 | body->description = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 5194 | LONGT); [00:02:28] | ~~~~~~ [00:02:28] imap4r1.c:5195:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5195:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5195:13: note: place parentheses around the assignment to silence this warning [00:02:28] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5195:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5195 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5196:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5196 | ucase (s); /* application always gets uppercase form */ [00:02:28] | ^ [00:02:28] ./misc.h:82:38: note: passing argument to parameter 'string' here [00:02:28] 82 | unsigned char *ucase (unsigned char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5212:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5212 | body->size.bytes = strtoul (*txtptr,(char **) txtptr,10); [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:5233:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5233 | body->size.lines = strtoul (*txtptr,(char **) txtptr,10); [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:5240:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5240 | body->md5 = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5253:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5253 | body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5300:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5300 | if(!(par->attribute=imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:02:28] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 5301 | LONGT))) { [00:02:28] | ~~~~~~ [00:02:28] imap4r1.c:5306:22: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5306 | if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT))){ [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5332:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5332 | ((*(s = *txtptr) == 'I') || (*s == 'i')) && [00:02:28] | ^ ~~~~~~~ [00:02:28] imap4r1.c:5356:28: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5356 | body->disposition.type = imap_parse_string (stream,txtptr,reply,NIL,NIL, [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] 5357 | LONGT); [00:02:28] | ~~~~~~ [00:02:28] imap4r1.c:5399:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5399:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5399:14: note: place parentheses around the assignment to silence this warning [00:02:28] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5399:14: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5399 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5468:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:5468:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:02:28] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5468:11: note: place parentheses around the assignment to silence this warning [00:02:28] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5468:11: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5468 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5473:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5473 | if (!(reply->line = net_getline (LOCAL->netstream))) [00:02:28] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5474:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5474 | reply->line = cpystr (""); [00:02:28] | ^ ~~~~~~~~~~~ [00:02:28] imap4r1.c:5475:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5475 | if (stream->debug) mm_dlog (reply->line); [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./mail.h:1606:21: note: passing argument to parameter 'string' here [00:02:28] 1606 | void mm_dlog (char *string); [00:02:28] | ^ [00:02:28] imap4r1.c:5480:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5480 | strtoul (*txtptr,(char **) txtptr,10); [00:02:28] | ^~~~~~~ [00:02:28] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:28] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:28] | ^ [00:02:28] imap4r1.c:5504:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ~~~~^~~~~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5504:13: note: place parentheses around the assignment to silence this warning [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5504:13: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5504:46: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ~~~^~~~~ [00:02:28] imap4r1.c:5504:46: note: place parentheses around the assignment to silence this warning [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5504:46: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5504 | if (thr = LOCAL->cap.threader) while (th = thr) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5514:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5514 | if (!compare_cstring (t,"IMAP4")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5514:29: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5514 | if (!compare_cstring (t,"IMAP4")) [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5516:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5516 | else if (!compare_cstring (t,"IMAP4rev1")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5516:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5516 | else if (!compare_cstring (t,"IMAP4rev1")) [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5518:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5518 | else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5518:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5518 | else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5519:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5519 | else if (!compare_cstring (t,"IMAP2bis")) [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5519:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5519 | else if (!compare_cstring (t,"IMAP2bis")) [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5521:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5521 | else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5521:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5521 | else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; [00:02:28] | ^~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5522:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5522 | else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5522:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5522 | else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; [00:02:28] | ^~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5523:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5523 | else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5523:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5523 | else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5524:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5524 | else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5524:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5524 | else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; [00:02:28] | ^~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5525:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5525 | else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5525:34: warning: passing 'char[18]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5525 | else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; [00:02:28] | ^~~~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5526:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5526 | else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5526:34: warning: passing 'char[16]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5526 | else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; [00:02:28] | ^~~~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5527:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5527 | else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5527:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5527 | else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5528:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5528 | else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5528:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5528 | else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5529:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5529 | else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5529:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5529 | else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5530:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5530 | else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5530:34: warning: passing 'char[14]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5530 | else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; [00:02:28] | ^~~~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5531:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5531 | else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5531:34: warning: passing 'char[3]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5531 | else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; [00:02:28] | ^~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5532:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5532 | else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5532:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5532 | else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5533:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5533 | else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5533:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5533 | else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; [00:02:28] | ^~~~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5534:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5534 | else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5534:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5534 | else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5535:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5535 | else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5535:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5535 | else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5536:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5536 | else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5536:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5536 | else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5537:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5537 | else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5537:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5537 | else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; [00:02:28] | ^~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5538:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5538 | else if (!compare_cstring (t,"URLAUTH")) LOCAL->cap.urlauth = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5538:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5538 | else if (!compare_cstring (t,"URLAUTH")) LOCAL->cap.urlauth = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5539:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5539 | else if (!compare_cstring (t,"CATENATE")) LOCAL->cap.catenate = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5539:34: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5539 | else if (!compare_cstring (t,"CATENATE")) LOCAL->cap.catenate = T; [00:02:28] | ^~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5540:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5540 | else if (!compare_cstring (t,"CONDSTORE")) LOCAL->cap.condstore = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5540:34: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5540 | else if (!compare_cstring (t,"CONDSTORE")) LOCAL->cap.condstore = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5541:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5541 | else if (!compare_cstring (t,"ESEARCH")) LOCAL->cap.esearch = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5541:34: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5541 | else if (!compare_cstring (t,"ESEARCH")) LOCAL->cap.esearch = T; [00:02:28] | ^~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5547:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5547 | else if (s = strchr (t,'=')) { [00:02:28] | ~~^~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5547:16: note: place parentheses around the assignment to silence this warning [00:02:28] 5547 | else if (s = strchr (t,'=')) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5547:16: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5547 | else if (s = strchr (t,'=')) { [00:02:28] | ^ [00:02:28] | == [00:02:28] imap4r1.c:5549:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5549 | if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5549:31: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5549 | if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { [00:02:28] | ^~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5556:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5556 | else if (!compare_cstring (t,"AUTH")) { [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5556:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5556 | else if (!compare_cstring (t,"AUTH")) { [00:02:28] | ^~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5559:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5559 | else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; [00:02:28] | ^ [00:02:28] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5559:31: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:28] 5559 | else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; [00:02:28] | ^~~~~~~~~~~ [00:02:28] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:28] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:28] | ^ [00:02:28] imap4r1.c:5636:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:28] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:02:28] | ~~^~~~~~~~~~~~~~~~~~ [00:02:28] imap4r1.c:5636:24: note: place parentheses around the assignment to silence this warning [00:02:28] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:02:28] | ^ [00:02:28] | ( ) [00:02:28] imap4r1.c:5636:24: note: use '==' to turn this assignment into an equality comparison [00:02:28] 5636 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { [00:02:28] | ^ [00:02:28] | == [00:02:28] 423 warnings generated. [00:02:28] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` pop3.c -o pop3.so [00:02:29] pop3.c:177:22: warning: passing 'char[256]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 177 | !compare_cstring (mb.mailbox,"INBOX")) ? &pop3driver : NIL; [00:02:29] | ^~~~~~~~~~ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:177:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 177 | !compare_cstring (mb.mailbox,"INBOX")) ? &pop3driver : NIL; [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:229:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 229 | (pop3_valid (ref) && pmatch ("INBOX",pat)) : [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^ [00:02:29] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:229:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 229 | (pop3_valid (ref) && pmatch ("INBOX",pat)) : [00:02:29] | ^~~ [00:02:29] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^~~ [00:02:29] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:230:60: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 230 | (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^ [00:02:29] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:230:68: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 230 | (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) [00:02:29] | ^~~ [00:02:29] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^~~ [00:02:29] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:245:37: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 245 | if (pop3_valid (ref) && pmatch ("INBOX",pat)) { [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^ [00:02:29] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:245:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 245 | if (pop3_valid (ref) && pmatch ("INBOX",pat)) { [00:02:29] | ^~~ [00:02:29] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^~~ [00:02:29] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:250:64: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 250 | else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^ [00:02:29] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:250:72: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 250 | else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { [00:02:29] | ^~~ [00:02:29] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^~~ [00:02:29] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:276:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:02:29] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:29] pop3.c:276:9: note: place parentheses around the assignment to silence this warning [00:02:29] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:276:9: note: use '==' to turn this assignment into an equality comparison [00:02:29] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:276:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:02:29] | ^ [00:02:29] ./misc.h:78:16: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^ [00:02:29] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:276:66: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 276 | if (s = sm_read (tmp,&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) [00:02:29] | ^~~ [00:02:29] ./misc.h:78:18: note: expanded from macro 'pmatch' [00:02:29] 78 | pmatch_full (s,pat,NIL) [00:02:29] | ^~~ [00:02:29] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:29] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:29] | ^ [00:02:29] pop3.c:279:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 279 | while (s = sm_read (tmp,&sdb)); [00:02:29] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:29] pop3.c:279:12: note: place parentheses around the assignment to silence this warning [00:02:29] 279 | while (s = sm_read (tmp,&sdb)); [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:279:12: note: use '==' to turn this assignment into an equality comparison [00:02:29] 279 | while (s = sm_read (tmp,&sdb)); [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:427:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:02:29] | ~~~~~~~~~~~~~^~~~~~~~~~ [00:02:29] pop3.c:427:24: note: place parentheses around the assignment to silence this warning [00:02:29] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:427:24: note: use '==' to turn this assignment into an equality comparison [00:02:29] 427 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:497:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:29] | ~~~~~^~~~~~~~~~~~~~~~ [00:02:29] pop3.c:497:14: note: place parentheses around the assignment to silence this warning [00:02:29] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:497:14: note: use '==' to turn this assignment into an equality comparison [00:02:29] 497 | if (args = strchr (t,' ')) *args++ = '\0'; [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:498:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 498 | if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:498:29: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 498 | if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:499:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 499 | else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:499:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 499 | else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; [00:02:29] | ^~~~~~~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:500:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 500 | else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:500:34: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 500 | else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; [00:02:29] | ^~~~~~~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:501:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 501 | else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:501:34: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 501 | else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; [00:02:29] | ^~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:502:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 502 | else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:502:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 502 | else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:503:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 503 | else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:503:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 503 | else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:504:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 504 | else if (!compare_cstring (t,"IMPLEMENTATION") && args) [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:504:34: warning: passing 'char[15]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 504 | else if (!compare_cstring (t,"IMPLEMENTATION") && args) [00:02:29] | ^~~~~~~~~~~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:506:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 506 | else if (!compare_cstring (t,"EXPIRE") && args) { [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:506:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 506 | else if (!compare_cstring (t,"EXPIRE") && args) { [00:02:29] | ^~~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:508:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ~~^~~~~~~~~~~~~~~~~~ [00:02:29] pop3.c:508:13: note: place parentheses around the assignment to silence this warning [00:02:29] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:508:13: note: use '==' to turn this assignment into an equality comparison [00:02:29] 508 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:514:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 514 | (!compare_cstring (args,"NEVER")) ? 65535 : [00:02:29] | ^~~~ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:514:26: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 514 | (!compare_cstring (args,"NEVER")) ? 65535 : [00:02:29] | ^~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:515:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 515 | ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:515:31: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 515 | ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:517:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 517 | else if (!compare_cstring (t,"LOGIN-DELAY") && args) { [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:517:34: warning: passing 'char[12]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 517 | else if (!compare_cstring (t,"LOGIN-DELAY") && args) { [00:02:29] | ^~~~~~~~~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:519:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ~~^~~~~~~~~~~~~~~~~~ [00:02:29] pop3.c:519:13: note: place parentheses around the assignment to silence this warning [00:02:29] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:519:13: note: use '==' to turn this assignment into an equality comparison [00:02:29] 519 | if (s = strchr(args,' ')){/* separate time from possible USER */ [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:525:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 525 | LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:525:56: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 525 | LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:528:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 528 | else if (!compare_cstring (t,"SASL") && args) [00:02:29] | ^ [00:02:29] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:528:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 528 | else if (!compare_cstring (t,"SASL") && args) [00:02:29] | ^~~~~~ [00:02:29] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:29] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:29] | ^ [00:02:29] pop3.c:782:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 782 | mail_uid_sequence (stream,sequence) : [00:02:29] | ^~~~~~~~ [00:02:29] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:29] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:29] | ^ [00:02:29] pop3.c:783:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 783 | mail_sequence (stream,sequence))) [00:02:29] | ^~~~~~~~ [00:02:29] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:29] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:29] | ^ [00:02:29] pop3.c:841:48: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:02:29] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:29] pop3.c:841:48: note: place parentheses around the assignment to silence this warning [00:02:29] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:02:29] | ^ [00:02:29] | ( ) [00:02:29] pop3.c:841:48: note: use '==' to turn this assignment into an equality comparison [00:02:29] 841 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) [00:02:29] | ^ [00:02:29] | == [00:02:29] pop3.c:946:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 946 | mail_uid_sequence (stream,sequence) : [00:02:29] | ^~~~~~~~ [00:02:29] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:29] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:29] | ^ [00:02:29] pop3.c:947:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:29] 947 | mail_sequence (stream,sequence)) : [00:02:29] | ^~~~~~~~ [00:02:29] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:29] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:29] | ^ [00:02:29] pop3.c:945:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:29] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:02:29] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:29] 946 | mail_uid_sequence (stream,sequence) : [00:02:29] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:29] 947 | mail_sequence (stream,sequence)) : [00:02:29] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:29] 948 | LONGT) { /* build selected sequence if needed */ [00:02:29] | ~~~~~ [00:02:29] pop3.c:945:11: note: place parentheses around the assignment to silence this warning [00:02:29] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:02:29] | ^ [00:02:29] | ( [00:02:29] 946 | mail_uid_sequence (stream,sequence) : [00:02:29] 947 | mail_sequence (stream,sequence)) : [00:02:29] 948 | LONGT) { /* build selected sequence if needed */ [00:02:29] | [00:02:29] | ) [00:02:29] pop3.c:945:11: note: use '==' to turn this assignment into an equality comparison [00:02:29] 945 | if (ret = sequence ? ((options & EX_UID) ? [00:02:29] | ^ [00:02:29] | == [00:02:29] 50 warnings generated. [00:02:29] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` unix.c -o unix.so [00:02:32] unix.c:418:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 418 | if (s = strrchr (s,'/')) { [00:02:32] | ~~^~~~~~~~~~~~~~~~~ [00:02:32] unix.c:418:8: note: place parentheses around the assignment to silence this warning [00:02:32] 418 | if (s = strrchr (s,'/')) { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:418:8: note: use '==' to turn this assignment into an equality comparison [00:02:32] 418 | if (s = strrchr (s,'/')) { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:468:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 468 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:32] | ^~~~~~~~~~~~~~~ [00:02:32] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:468:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 468 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:480:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 480 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:626:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 626 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 627 | elt->private.msg.header.text.size) + 1); [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:640:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 640 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:653:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 653 | *length = mail_filter (LOCAL->buf,*length,unix_hlines,FT_NOT); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1706:34: note: passing argument to parameter 'text' here [00:02:32] 1706 | unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, [00:02:32] | ^ [00:02:32] unix.c:703:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 703 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 704 | elt->private.msg.text.text.size) + 1); [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:731:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 731 | d.chunk = tmp; /* initial buffer chunk */ [00:02:32] | ^ ~~~ [00:02:32] unix.c:734:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 734 | for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (c = SNX (&bs)) { [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:787:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 787 | sprintf (LOCAL->buf,"Mailbox stat failed, aborted: %s", [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:789:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 789 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:846:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 846 | mail_uid_sequence (stream,sequence) : [00:02:32] | ^~~~~~~~ [00:02:32] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:32] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:32] | ^ [00:02:32] unix.c:847:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:02:32] | ^~~~~~~~ [00:02:32] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:32] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:32] | ^ [00:02:32] unix.c:845:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:32] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 846 | mail_uid_sequence (stream,sequence) : [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 848 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] 849 | unix_parse (stream,&lock,LOCK_EX)) { [00:02:32] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:845:11: note: place parentheses around the assignment to silence this warning [00:02:32] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:32] | ^ [00:02:32] | ( [00:02:32] 846 | mail_uid_sequence (stream,sequence) : [00:02:32] 847 | mail_sequence (stream,sequence)) : LONGT) && [00:02:32] 848 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:32] 849 | unix_parse (stream,&lock,LOCK_EX)) { [00:02:32] | [00:02:32] | ) [00:02:32] unix.c:845:11: note: use '==' to turn this assignment into an equality comparison [00:02:32] 845 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:860:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 860 | if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); [00:02:32] | ^ ~~~~~~~~~~ [00:02:32] unix.c:902:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 902 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:32] | ^~~~~~~~ [00:02:32] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:32] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:32] | ^ [00:02:32] unix.c:903:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 903 | mail_sequence (stream,sequence))) return NIL; [00:02:32] | ^~~~~~~~ [00:02:32] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:32] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:32] | ^ [00:02:32] unix.c:909:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 909 | if (compare_cstring (mailbox,"INBOX")) { [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:909:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 909 | if (compare_cstring (mailbox,"INBOX")) { [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:916:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 916 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:917:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 917 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:921:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 921 | sprintf (LOCAL->buf,"Invalid UNIX-format mailbox name: %.80s",mailbox); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:922:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 922 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:926:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 926 | sprintf (LOCAL->buf,"Not a UNIX-format mailbox: %.80s",mailbox); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:927:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 927 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:936:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 936 | sprintf (LOCAL->buf,"Unable to write-open mailbox for COPYUID: %.80s", [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:938:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 938 | MM_LOG (LOCAL->buf,WARN); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:947:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 947 | sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:948:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 948 | MM_LOG (LOCAL->buf,ERROR);/* log the error */ [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:957:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 957 | if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:32] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:32] | ^ [00:02:32] unix.c:965:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 965 | unix_xstatus (stream,LOCAL->buf,elt,++(tstream->uid_last),LONGT) : [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:131:54: note: passing argument to parameter 'status' here [00:02:32] 131 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:32] | ^ [00:02:32] unix.c:966:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 966 | unix_xstatus (stream,LOCAL->buf,elt,NIL,NIL); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:131:54: note: passing argument to parameter 'status' here [00:02:32] 131 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:32] | ^ [00:02:32] unix.c:967:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 967 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:32] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:32] | ^ [00:02:32] unix.c:981:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 981 | sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1007:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1007 | if (!ret) MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1051:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1051 | if (compare_cstring (mailbox,"INBOX")) { [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1051:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1051 | if (compare_cstring (mailbox,"INBOX")) { [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1093:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1093 | if (!mail_parse_date (&elt,date)) { [00:02:32] | ^~~~ [00:02:32] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:32] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:32] | ^ [00:02:32] unix.c:1196:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1196 | if ((s = stream->user_flags[find_rightmost_bit (&uf)]) && [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1257:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:02:32] | ~~^~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1257:23: note: place parentheses around the assignment to silence this warning [00:02:32] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:1257:23: note: use '==' to turn this assignment into an equality comparison [00:02:32] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:1260:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:32] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:02:32] | ~~^~~~~~~ [00:02:32] unix.c:1260:14: note: remove extraneous parentheses around the comparison to silence this warning [00:02:32] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:02:32] | ~ ^ ~ [00:02:32] unix.c:1260:14: note: use '=' to turn this equality comparison into an assignment [00:02:32] 1260 | if ((c == '\n')) switch (tmp[0]) { [00:02:32] | ^~ [00:02:32] | = [00:02:32] unix.c:1462:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1462 | sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1463:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1463 | MM_LOG (tmp,ERROR); [00:02:32] | ^~~ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1472:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1472 | sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1474:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1474 | MM_LOG (tmp,ERROR); /* this is pretty bad */ [00:02:32] | ^~~ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1483:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:32] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1483:14: note: place parentheses around the assignment to silence this warning [00:02:32] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:1483:14: note: use '==' to turn this assignment into an equality comparison [00:02:32] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:1486:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1486 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:32] | ^ ~~~~~~~~~~ [00:02:32] unix.c:1495:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1495 | s = unix_mbxline (stream,&bs,&i); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1499:11: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1499 | sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1501:10: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1501 | MM_LOG (tmp,ERROR); [00:02:32] | ^~~ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1550:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1550 | sprintf (tmp,"Unable to parse internal date: %s",(char *) date); [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1551:12: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1551 | MM_LOG (tmp,WARN); [00:02:32] | ^~~ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1555:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1555 | s = t = unix_mbxline (stream,&bs,&i); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1572:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:32] | ^ [00:02:32] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:32] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:32] | ^ [00:02:32] unix.c:1572:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1572:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1572 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:32] | ^ [00:02:32] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:32] 105 | size_t strlen(const char *) __pure; [00:02:32] | ^ [00:02:32] unix.c:1578:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1578 | if (!compare_csizedtext (stream->user_flags[j],&uf)) { [00:02:32] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:32] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:02:32] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:02:32] | ^ [00:02:32] unix.c:1626:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1626 | u = strpbrk (s," \n\r"); [00:02:32] | ^ [00:02:32] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:32] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:32] | ^ [00:02:32] unix.c:1626:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1626 | u = strpbrk (s," \n\r"); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1633:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1633 | strncpy (stream->user_flags[j],s,k); [00:02:32] | ^ [00:02:32] /usr/include/string.h:117:59: note: passing argument to parameter here [00:02:32] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:02:32] | ^ [00:02:32] unix.c:1661:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1661 | sprintf (tmp,"Message %lu UID %lu already has UID %lu", [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1666:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1666 | sprintf (tmp,"Message %lu UID %lu less than %lu", [00:02:32] | ^~~ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:1686:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1686 | MM_LOG (tmp,WARN); [00:02:32] | ^~~ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:1742:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1742 | if (!compare_cstring (tmp,"STATUS") || [00:02:32] | ^~~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1743:27: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1743 | !compare_cstring (tmp,"X-STATUS") || [00:02:32] | ^~~~~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1744:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1744 | !compare_cstring (tmp,"X-KEYWORDS") || [00:02:32] | ^~~~~~~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1745:27: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1745 | !compare_cstring (tmp,"X-UID") || [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1746:27: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1746 | !compare_cstring (tmp,"X-IMAP") || [00:02:32] | ^~~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1747:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1747 | !compare_cstring (tmp,"X-IMAPBASE")) { [00:02:32] | ^~~~~~~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:1770:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1770:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:32] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:1770:14: note: place parentheses around the assignment to silence this warning [00:02:32] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:1770:14: note: use '==' to turn this assignment into an equality comparison [00:02:32] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:1796:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 1796 | s = unix_mbxline (stream,&bs,&i); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2015:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:32] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2015:44: note: place parentheses around the assignment to silence this warning [00:02:32] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:2015:44: note: use '==' to turn this assignment into an equality comparison [00:02:32] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:2037:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 2037 | if (n = elt->user_flags) do { [00:02:32] | ~~^~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2037:11: note: place parentheses around the assignment to silence this warning [00:02:32] 2037 | if (n = elt->user_flags) do { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:2037:11: note: use '==' to turn this assignment into an equality comparison [00:02:32] 2037 | if (n = elt->user_flags) do { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:2082:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2082 | unsigned long size = LOCAL->pseudo ? unix_pseudo (stream,LOCAL->buf) : 0; [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:02:32] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:02:32] | ^ [00:02:32] unix.c:2090:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2090 | unix_xstatus (stream,LOCAL->buf,elt,NIL,flag) + [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1989:54: note: passing argument to parameter 'status' here [00:02:32] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:32] | ^ [00:02:32] unix.c:2098:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2098 | size = unix_pseudo (stream,LOCAL->buf); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:02:32] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:02:32] | ^ [00:02:32] unix.c:2101:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 2101 | if (ret = unix_extend (stream,size)) { [00:02:32] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2101:11: note: place parentheses around the assignment to silence this warning [00:02:32] 2101 | if (ret = unix_extend (stream,size)) { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:2101:11: note: use '==' to turn this assignment into an equality comparison [00:02:32] 2101 | if (ret = unix_extend (stream,size)) { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:2118:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2118 | unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1962:53: note: passing argument to parameter 'hdr' here [00:02:32] 1962 | unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) [00:02:32] | ^ [00:02:32] unix.c:2118:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2118 | unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:136:36: note: passing argument to parameter 's' here [00:02:32] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:02:32] | ^ [00:02:32] unix.c:2135:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2135 | unix_xstatus (stream,LOCAL->buf,elt,NIL,flag)))) { [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1989:54: note: passing argument to parameter 'status' here [00:02:32] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:32] | ^ [00:02:32] unix.c:2149:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2149 | unix_write (&f,LOCAL->buf,elt->private.special.text.size); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:136:36: note: passing argument to parameter 's' here [00:02:32] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:02:32] | ^ [00:02:32] unix.c:2170:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2170 | j = unix_xstatus (stream,LOCAL->buf,elt,NIL,flag)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:1989:54: note: passing argument to parameter 'status' here [00:02:32] 1989 | unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:32] | ^ [00:02:32] unix.c:2169:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2169 | unix_write (&f,LOCAL->buf, [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] unix.c:136:36: note: passing argument to parameter 's' here [00:02:32] 136 | void unix_write (UNIXFILE *f,char *s,unsigned long i); [00:02:32] | ^ [00:02:32] unix.c:2255:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2255 | sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2256:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2256 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:2277:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2277 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); [00:02:32] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2282:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2282 | if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:32] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:32] | ^ [00:02:32] unix.c:2288:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2288 | sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2289:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2289 | if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:2311:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:32] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2311:11: note: place parentheses around the assignment to silence this warning [00:02:32] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:2311:11: note: use '==' to turn this assignment into an equality comparison [00:02:32] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:2327:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:32] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:02:32] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:32] unix.c:2327:11: note: place parentheses around the assignment to silence this warning [00:02:32] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:02:32] | ^ [00:02:32] | ( ) [00:02:32] unix.c:2327:11: note: use '==' to turn this assignment into an equality comparison [00:02:32] 2327 | if (j = min (i,f->protect - f->filepos)) { [00:02:32] | ^ [00:02:32] | == [00:02:32] unix.c:2461:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2461 | if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && [00:02:32] | ^~~~ [00:02:32] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:2461:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2461 | if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:2476:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2476 | if (!compare_cstring (mailbox,"INBOX")) return unix_create (NIL,"mbox"); [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:2476:33: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2476 | if (!compare_cstring (mailbox,"INBOX")) return unix_create (NIL,"mbox"); [00:02:32] | ^~~~~~~ [00:02:32] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:32] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:32] | ^ [00:02:32] unix.c:2604:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2604 | sprintf (LOCAL->buf,"Mail drop %s is not in standard Unix format", [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2606:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2606 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:2618:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2618 | sprintf (LOCAL->buf,"New mail move failed: %s",strerror (errno)); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2619:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2619 | MM_LOG (LOCAL->buf,WARN); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:2625:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2625 | sprintf (LOCAL->buf,"Mail drop %s lock failure, old=%lu now=%lu", [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2627:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2627 | MM_LOG (LOCAL->buf,ERROR); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] unix.c:2643:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2643 | sprintf (LOCAL->buf,"Moved %lu bytes of new mail to %s from %s", [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:32] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:32] | ^ [00:02:32] unix.c:2648:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:32] 2648 | else MM_LOG (LOCAL->buf,WARN); [00:02:32] | ^~~~~~~~~~ [00:02:32] unix.c:81:15: note: expanded from macro 'LOCAL' [00:02:32] 81 | #define LOCAL ((UNIXLOCAL *) stream->local) [00:02:32] | ^ [00:02:32] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:32] 1605 | void mm_log (char *string,long errflg); [00:02:32] | ^ [00:02:32] 105 warnings generated. [00:02:32] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mbx.c -o mbx.so [00:02:33] mbx.c:307:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 307 | else if (((error = errno) == ENOENT) && !compare_cstring (name,"INBOX")) [00:02:33] | ^~~~ [00:02:33] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:307:66: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 307 | else if (((error = errno) == ENOENT) && !compare_cstring (name,"INBOX")) [00:02:33] | ^~~~~~~ [00:02:33] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:480:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 480 | if (s = strrchr (tmp,'/')) { [00:02:33] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:480:11: note: place parentheses around the assignment to silence this warning [00:02:33] 480 | if (s = strrchr (tmp,'/')) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:480:11: note: use '==' to turn this assignment into an equality comparison [00:02:33] 480 | if (s = strrchr (tmp,'/')) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:506:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 506 | if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); [00:02:33] | ^~~ [00:02:33] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:506:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 506 | if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); [00:02:33] | ^~~~~~~ [00:02:33] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:587:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 587 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:33] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:590:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 590 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:33] | ^~~~~~~~~~~~~~~ [00:02:33] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:590:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 590 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:33] | ^~~~~~~ [00:02:33] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:677:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 677 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:33] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:678:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 678 | mail_sequence (stream,sequence))) [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:33] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:706:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 706 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); [00:02:33] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:709:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 709 | read (LOCAL->fd,s = LOCAL->buf,*length); [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:746:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 746 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:825:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 825 | else if (ret = mbx_parse (stream)) { [00:02:33] | ~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:825:20: note: place parentheses around the assignment to silence this warning [00:02:33] 825 | else if (ret = mbx_parse (stream)) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:825:20: note: use '==' to turn this assignment into an equality comparison [00:02:33] 825 | else if (ret = mbx_parse (stream)) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:829:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:33] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:829:12: note: place parentheses around the assignment to silence this warning [00:02:33] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:829:12: note: use '==' to turn this assignment into an equality comparison [00:02:33] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:856:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 856 | sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",i); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:857:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 857 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:889:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 889 | mail_uid_sequence (stream,sequence) : [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:33] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:890:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:33] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:888:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:33] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] 889 | mail_uid_sequence (stream,sequence) : [00:02:33] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:33] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:888:11: note: place parentheses around the assignment to silence this warning [00:02:33] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:33] | ^ [00:02:33] | ( [00:02:33] 889 | mail_uid_sequence (stream,sequence) : [00:02:33] 890 | mail_sequence (stream,sequence)) : LONGT) { [00:02:33] | [00:02:33] | ) [00:02:33] mbx.c:888:11: note: use '==' to turn this assignment into an equality comparison [00:02:33] 888 | if (ret = sequence ? ((options & EX_UID) ? [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:895:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:33] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:895:19: note: place parentheses around the assignment to silence this warning [00:02:33] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:895:19: note: use '==' to turn this assignment into an equality comparison [00:02:33] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:896:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 896 | sprintf (LOCAL->buf,"Expunged %lu messages",nexp); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:897:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 897 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:900:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 900 | sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",reclaimed); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:901:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 901 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:938:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 938 | if (j = hdrlen + txtlen) { [00:02:33] | ~~^~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:938:8: note: place parentheses around the assignment to silence this warning [00:02:33] 938 | if (j = hdrlen + txtlen) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:938:8: note: use '==' to turn this assignment into an equality comparison [00:02:33] 938 | if (j = hdrlen + txtlen) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:940:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 940 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:33] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:33] | ^ [00:02:33] mbx.c:941:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 941 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:33] 105 | size_t strlen(const char *) __pure; [00:02:33] | ^ [00:02:33] mbx.c:941:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 941 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:33] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:947:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 947 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:33] 105 | size_t strlen(const char *) __pure; [00:02:33] | ^ [00:02:33] mbx.c:947:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 947 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:963:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 963 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:964:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 964 | MM_LOG (LOCAL->buf,WARN); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:999:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 999 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:33] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:1000:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1000 | mail_sequence (stream,sequence))) return NIL; [00:02:33] | ^~~~~~~~ [00:02:33] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:33] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:33] | ^ [00:02:33] mbx.c:1009:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1009 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1010:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1010 | MM_LOG (LOCAL->buf,ERROR); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:1014:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1014 | sprintf (LOCAL->buf,"Invalid MBX-format mailbox name: %.80s",mailbox); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1015:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1015 | MM_LOG (LOCAL->buf,ERROR); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:1019:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1019 | sprintf (LOCAL->buf,"Not a MBX-format mailbox: %.80s",mailbox); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1020:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1020 | MM_LOG (LOCAL->buf,ERROR); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:1032:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1032 | mail_date(LOCAL->buf,elt);/* build target header */ [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:33] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:33] | ^ [00:02:33] mbx.c:1035:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:33] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1035:8: note: place parentheses around the assignment to silence this warning [00:02:33] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1035:8: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:1037:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1037 | if (!compare_cstring (s,t) && (k |= 1 << m)) break; [00:02:33] | ^ [00:02:33] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:1037:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1037 | if (!compare_cstring (s,t) && (k |= 1 << m)) break; [00:02:33] | ^ [00:02:33] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:1038:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1038 | sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-%08lx\015\012", [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:33] 105 | size_t strlen(const char *) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1038:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1038 | sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-%08lx\015\012", [00:02:33] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1044:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:33] 105 | size_t strlen(const char *) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1044:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1044:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:33] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1044:15: note: place parentheses around the assignment to silence this warning [00:02:33] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1044:15: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:1047:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1047 | ret = write (fd,LOCAL->buf,j) >= 0; [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1058:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1058 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1059:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1059 | MM_LOG (LOCAL->buf,ERROR); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:33] 1605 | void mm_log (char *string,long errflg); [00:02:33] | ^ [00:02:33] mbx.c:1065:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1065 | sprintf (LOCAL->buf,"%08lx",dstream->uid_last); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1066:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1066 | write (fd,LOCAL->buf,8); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1123:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1123 | if (compare_cstring (mailbox,"INBOX")) { [00:02:33] | ^~~~~~~ [00:02:33] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:1123:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1123 | if (compare_cstring (mailbox,"INBOX")) { [00:02:33] | ^~~~~~~ [00:02:33] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:33] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:33] | ^ [00:02:33] mbx.c:1165:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1165 | if (!mail_parse_date (&elt,date)) { [00:02:33] | ^~~~ [00:02:33] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:33] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:33] | ^ [00:02:33] mbx.c:1274:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1274 | stream->uid_validity = strtoul (LOCAL->buf + 7,NIL,16); [00:02:33] | ^~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1277:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1277 | i = strtoul (LOCAL->buf + 15,NIL,16); [00:02:33] | ^~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1281:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1281 | (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); [00:02:33] | ^ [00:02:33] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:33] 85 | char *strchr(const char *, int) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1281:31: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1281 | (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); [00:02:33] | ^ ~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1284:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1284 | if (!stream->user_flags[i] && (strlen (s) <= MAXUSERFLAG)) [00:02:33] | ^ [00:02:33] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:33] 105 | size_t strlen(const char *) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1285:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1285 | stream->user_flags[i] = cpystr (s); [00:02:33] | ^ [00:02:33] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:33] 84 | char *cpystr (const char *string); [00:02:33] | ^ [00:02:33] mbx.c:1295:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1295 | strtoul (LOCAL->buf + HDRSIZE - 8,NIL,16) : 0; [00:02:33] | ^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1312:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1312 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:33] 85 | char *strchr(const char *, int) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1312:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1312 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:33] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1321:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:33] 85 | char *strchr(const char *, int) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1321:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:33] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1321:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:33] | ^~~ [00:02:33] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:33] 85 | char *strchr(const char *, int) __pure; [00:02:33] | ^ [00:02:33] mbx.c:1321:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1321 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:33] | ^ ~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1351:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1351 | if (!(j = strtoul (s,(char **) &x,10)) && (!(x && *x))) { [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1369:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1369 | if ((m = strtoul (t+13,NIL,16)) && [00:02:33] | ^~~~ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1385:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1385 | if ((k = strtoul (t+8,NIL,16)) & fEXPUNGED) { [00:02:33] | ^~~ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1419:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1419 | elt->user_flags = strtoul (t,NIL,16); [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1501:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1501 | sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag read!", [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1503:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1503 | fatal (LOCAL->buf); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1510:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1510 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1511:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1511 | fatal (LOCAL->buf); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1515:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1515 | sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", [00:02:33] | ^~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1518:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1518 | fatal (LOCAL->buf+50); [00:02:33] | ^~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1522:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1522 | i = strtoul (LOCAL->buf+9,NIL,16); [00:02:33] | ^~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1531:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1531 | elt->user_flags = strtoul (LOCAL->buf+1,NIL,16); [00:02:33] | ^~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1547:9: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1547 | char *s = LOCAL->buf; [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:1558:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1558 | sprintf (LOCAL->buf + HDRSIZE - 10,"%08lx\015\012",LOCAL->lastpid); [00:02:33] | ^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1562:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1562 | if (write (LOCAL->fd,LOCAL->buf + CYGKLUDGEOFFSET, [00:02:33] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1585:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1585 | sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag update!", [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1587:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1587 | fatal (LOCAL->buf); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1594:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1594 | sprintf (LOCAL->buf,"Unable to read old status: %s",strerror (errno)); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1595:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1595 | fatal (LOCAL->buf); [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1599:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1599 | sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", [00:02:33] | ^~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1602:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1602 | fatal (LOCAL->buf+50); [00:02:33] | ^~~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:33] 32 | void fatal (char *string); [00:02:33] | ^ [00:02:33] mbx.c:1607:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1607 | fEXPUNGED : (strtoul (LOCAL->buf+9,NIL,16)) & fEXPUNGED) + [00:02:33] | ^~~~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:33] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:33] | ^ [00:02:33] mbx.c:1605:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1605 | sprintf (LOCAL->buf,"%08lx%04x-%08lx",elt->user_flags,(unsigned) [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:33] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:33] | ^ [00:02:33] mbx.c:1615:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1615 | if (write (LOCAL->fd,LOCAL->buf,21) > 0) break; [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1644:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:33] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1644:13: note: place parentheses around the assignment to silence this warning [00:02:33] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1644:13: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1644 | if (*size = elt->private.msg.header.text.size) return ret; [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:1663:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1663 | if (hdr) *hdr = LOCAL->buf; [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:1670:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1670 | if (hdr) *hdr = LOCAL->buf; [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:1680:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1680 | if (hdr) *hdr = LOCAL->buf; /* possibly return header too */ [00:02:33] | ^ ~~~~~~~~~~ [00:02:33] mbx.c:1736:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:33] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1736:13: note: place parentheses around the assignment to silence this warning [00:02:33] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1736:13: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:1761:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:33] 1761 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:33] | ^~~~~~~~~~ [00:02:33] mbx.c:83:15: note: expanded from macro 'LOCAL' [00:02:33] 83 | #define LOCAL ((MBXLOCAL *) stream->local) [00:02:33] | ^ [00:02:33] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:33] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:33] | ^ [00:02:33] mbx.c:1776:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:33] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1776:11: note: place parentheses around the assignment to silence this warning [00:02:33] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1776:11: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { [00:02:33] | ^ [00:02:33] | == [00:02:33] mbx.c:1795:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:33] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:33] | ~~~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:33] mbx.c:1795:15: note: place parentheses around the assignment to silence this warning [00:02:33] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:33] | ^ [00:02:33] | ( ) [00:02:33] mbx.c:1795:15: note: use '==' to turn this assignment into an equality comparison [00:02:33] 1795 | if (elt = mbx_elt (stream,i,T)) { [00:02:33] | ^ [00:02:33] | == [00:02:33] 103 warnings generated. [00:02:33] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mmdf.c -o mmdf.so [00:02:36] mmdf.c:557:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 557 | if (s = strrchr (s,'/')) { [00:02:36] | ~~^~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:557:8: note: place parentheses around the assignment to silence this warning [00:02:36] 557 | if (s = strrchr (s,'/')) { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:557:8: note: use '==' to turn this assignment into an equality comparison [00:02:36] 557 | if (s = strrchr (s,'/')) { [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:607:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 607 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:36] | ^~~~~~~~~~~~~~~ [00:02:36] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:607:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 607 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:619:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 619 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:765:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 765 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 766 | elt->private.msg.header.text.size) + 1); [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:779:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 779 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:792:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 792 | *length = mail_filter (LOCAL->buf,*length,mmdf_hlines,FT_NOT); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1706:34: note: passing argument to parameter 'text' here [00:02:36] 1706 | unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, [00:02:36] | ^ [00:02:36] mmdf.c:842:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 842 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 843 | elt->private.msg.text.text.size) + 1); [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:870:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 870 | d.chunk = tmp; /* initial buffer chunk */ [00:02:36] | ^ ~~~ [00:02:36] mmdf.c:873:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 873 | for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (c = SNX (&bs)) { [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:926:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 926 | sprintf (LOCAL->buf,"Mailbox stat failed, aborted: %s", [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:928:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 928 | MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:985:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 985 | mail_uid_sequence (stream,sequence) : [00:02:36] | ^~~~~~~~ [00:02:36] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:36] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:36] | ^ [00:02:36] mmdf.c:986:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:36] | ^~~~~~~~ [00:02:36] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:36] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:36] | ^ [00:02:36] mmdf.c:984:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:36] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 985 | mail_uid_sequence (stream,sequence) : [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 987 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] 988 | mmdf_parse (stream,&lock,LOCK_EX)) { [00:02:36] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:984:11: note: place parentheses around the assignment to silence this warning [00:02:36] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:36] | ^ [00:02:36] | ( [00:02:36] 985 | mail_uid_sequence (stream,sequence) : [00:02:36] 986 | mail_sequence (stream,sequence)) : LONGT) && [00:02:36] 987 | LOCAL && (LOCAL->ld >= 0) && !stream->lock && [00:02:36] 988 | mmdf_parse (stream,&lock,LOCK_EX)) { [00:02:36] | [00:02:36] | ) [00:02:36] mmdf.c:984:11: note: use '==' to turn this assignment into an equality comparison [00:02:36] 984 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:999:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 999 | if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); [00:02:36] | ^ ~~~~~~~~~~ [00:02:36] mmdf.c:1038:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1038 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:36] | ^~~~~~~~ [00:02:36] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:36] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:36] | ^ [00:02:36] mmdf.c:1039:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1039 | mail_sequence (stream,sequence))) return NIL; [00:02:36] | ^~~~~~~~ [00:02:36] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:36] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:36] | ^ [00:02:36] mmdf.c:1044:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1044 | if (compare_cstring (mailbox,"INBOX")) { [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1044:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1044 | if (compare_cstring (mailbox,"INBOX")) { [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1051:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1051 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1052:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1052 | MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1056:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1056 | sprintf (LOCAL->buf,"Invalid MMDF-format mailbox name: %.80s",mailbox); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1057:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1057 | MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1061:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1061 | sprintf (LOCAL->buf,"Not a MMDF-format mailbox: %.80s",mailbox); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1062:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1062 | MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1071:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1071 | sprintf (LOCAL->buf,"Unable to write-open mailbox for COPYUID: %.80s", [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1073:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1073 | MM_LOG (LOCAL->buf,WARN); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1082:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1082 | sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1083:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1083 | MM_LOG (LOCAL->buf,ERROR); /* log the error */ [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1092:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1092 | if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:36] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:36] | ^ [00:02:36] mmdf.c:1100:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1100 | mmdf_xstatus (stream,LOCAL->buf,elt,++(tstream->uid_last),LONGT) : [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:287:54: note: passing argument to parameter 'status' here [00:02:36] 287 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:36] | ^ [00:02:36] mmdf.c:1101:27: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1101 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,NIL); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:287:54: note: passing argument to parameter 'status' here [00:02:36] 287 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:36] | ^ [00:02:36] mmdf.c:1102:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1102 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:36] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:36] | ^ [00:02:36] mmdf.c:1117:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1117 | sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1143:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1143 | if (!ret) MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1188:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1188 | if (compare_cstring (mailbox,"INBOX")) { [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1188:34: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1188 | if (compare_cstring (mailbox,"INBOX")) { [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1230:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1230 | if (!mail_parse_date (&elt,date)) { [00:02:36] | ^~~~ [00:02:36] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:36] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:36] | ^ [00:02:36] mmdf.c:1332:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1332 | if ((s = stream->user_flags[find_rightmost_bit (&uf)]) && [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1394:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1394:23: note: place parentheses around the assignment to silence this warning [00:02:36] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:1394:23: note: use '==' to turn this assignment into an equality comparison [00:02:36] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:1397:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:36] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:36] | ~~^~~~~~~ [00:02:36] mmdf.c:1397:14: note: remove extraneous parentheses around the comparison to silence this warning [00:02:36] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:36] | ~ ^ ~ [00:02:36] mmdf.c:1397:14: note: use '=' to turn this equality comparison into an assignment [00:02:36] 1397 | if ((c == '\n')) switch (tmp[0]) { [00:02:36] | ^~ [00:02:36] | = [00:02:36] mmdf.c:1591:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1591 | sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1592:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1592 | MM_LOG (tmp,ERROR); [00:02:36] | ^~~ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1601:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1601 | sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1603:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1603 | MM_LOG (tmp,ERROR); /* this is pretty bad */ [00:02:36] | ^~~ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1612:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1612:14: note: place parentheses around the assignment to silence this warning [00:02:36] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:1612:14: note: use '==' to turn this assignment into an equality comparison [00:02:36] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:1615:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1615 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:36] | ^ ~~~~~~~~~~ [00:02:36] mmdf.c:1624:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1624 | s = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1628:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1628 | sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1634:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1634 | s = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1639:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1639 | MM_LOG (tmp,ERROR); [00:02:36] | ^~~ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1656:4: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1656 | s = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1692:15: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1692 | sprintf (tmp,"Unable to parse internal date: %s",(char *) date); [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1693:14: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1693 | MM_LOG (tmp,WARN); [00:02:36] | ^~~ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1710:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1710 | if (t) s = t = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1736:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:36] | ^ [00:02:36] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:36] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:36] | ^ [00:02:36] mmdf.c:1736:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1736:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1736 | if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); [00:02:36] | ^ [00:02:36] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:36] 105 | size_t strlen(const char *) __pure; [00:02:36] | ^ [00:02:36] mmdf.c:1742:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1742 | if (!compare_csizedtext (stream->user_flags[j],&uf)) { [00:02:36] | ^~~~~~~~~~~~~~~~~~~~~ [00:02:36] ./misc.h:107:40: note: passing argument to parameter 's1' here [00:02:36] 107 | int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1790:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1790 | u = strpbrk (s," \n\r"); [00:02:36] | ^ [00:02:36] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:36] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:36] | ^ [00:02:36] mmdf.c:1790:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1790 | u = strpbrk (s," \n\r"); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1797:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1797 | strncpy (stream->user_flags[j],s,k); [00:02:36] | ^ [00:02:36] /usr/include/string.h:117:59: note: passing argument to parameter here [00:02:36] 117 | char *(strncpy)(char * __restrict, const char * __restrict, size_t); [00:02:36] | ^ [00:02:36] mmdf.c:1825:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1825 | sprintf (tmp,"Message %lu UID %lu already has UID %lu", [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1830:16: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1830 | sprintf (tmp,"Message %lu UID %lu less than %lu", [00:02:36] | ^~~ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:1850:13: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1850 | MM_LOG (tmp,WARN); [00:02:36] | ^~~ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:1906:34: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1906 | if (!compare_cstring (tmp,"STATUS") || [00:02:36] | ^~~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1907:27: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1907 | !compare_cstring (tmp,"X-STATUS") || [00:02:36] | ^~~~~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1908:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1908 | !compare_cstring (tmp,"X-KEYWORDS") || [00:02:36] | ^~~~~~~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1909:27: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1909 | !compare_cstring (tmp,"X-UID") || [00:02:36] | ^~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1910:27: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1910 | !compare_cstring (tmp,"X-IMAP") || [00:02:36] | ^~~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1911:27: warning: passing 'char[11]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1911 | !compare_cstring (tmp,"X-IMAPBASE")) { [00:02:36] | ^~~~~~~~~~~~ [00:02:36] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:36] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:36] | ^ [00:02:36] mmdf.c:1934:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1934:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1934:14: note: place parentheses around the assignment to silence this warning [00:02:36] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:1934:14: note: use '==' to turn this assignment into an equality comparison [00:02:36] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:1958:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1958 | s = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:1983:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 1983 | s = mmdf_mbxline (stream,&bs,&i); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2178:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2178:44: note: place parentheses around the assignment to silence this warning [00:02:36] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:2178:44: note: use '==' to turn this assignment into an equality comparison [00:02:36] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:2200:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 2200 | if (n = elt->user_flags) do { [00:02:36] | ~~^~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2200:11: note: place parentheses around the assignment to silence this warning [00:02:36] 2200 | if (n = elt->user_flags) do { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:2200:11: note: use '==' to turn this assignment into an equality comparison [00:02:36] 2200 | if (n = elt->user_flags) do { [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:2245:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2245 | unsigned long size = LOCAL->pseudo ? mmdf_pseudo (stream,LOCAL->buf) : 0; [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:36] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:36] | ^ [00:02:36] mmdf.c:2253:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2253 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag) + [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:36] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:36] | ^ [00:02:36] mmdf.c:2261:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2261 | size = mmdf_pseudo (stream,LOCAL->buf); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:36] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:36] | ^ [00:02:36] mmdf.c:2264:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:36] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2264:11: note: place parentheses around the assignment to silence this warning [00:02:36] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:2264:11: note: use '==' to turn this assignment into an equality comparison [00:02:36] 2264 | if (ret = mmdf_extend (stream,size)) { [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:2281:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2281 | mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2125:53: note: passing argument to parameter 'hdr' here [00:02:36] 2125 | unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) [00:02:36] | ^ [00:02:36] mmdf.c:2281:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2281 | mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:36] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:36] | ^ [00:02:36] mmdf.c:2298:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2298 | mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag)))) { [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:36] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:36] | ^ [00:02:36] mmdf.c:2312:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2312 | mmdf_write (&f,LOCAL->buf,elt->private.special.text.size); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:36] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:36] | ^ [00:02:36] mmdf.c:2333:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2333 | j = mmdf_xstatus (stream,LOCAL->buf,elt,NIL,flag)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:2152:54: note: passing argument to parameter 'status' here [00:02:36] 2152 | unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, [00:02:36] | ^ [00:02:36] mmdf.c:2332:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2332 | mmdf_write (&f,LOCAL->buf, [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] mmdf.c:292:36: note: passing argument to parameter 's' here [00:02:36] 292 | void mmdf_write (MMDFFILE *f,char *s,unsigned long i); [00:02:36] | ^ [00:02:36] mmdf.c:2401:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2401 | sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:2402:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2402 | MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:2423:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2423 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); [00:02:36] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2428:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2428 | if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:36] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:36] | ^ [00:02:36] mmdf.c:2434:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2434 | sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:36] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:36] | ^ [00:02:36] mmdf.c:2435:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:36] 2435 | if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); [00:02:36] | ^~~~~~~~~~ [00:02:36] mmdf.c:236:15: note: expanded from macro 'LOCAL' [00:02:36] 236 | #define LOCAL ((MMDFLOCAL *) stream->local) [00:02:36] | ^ [00:02:36] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:36] 1605 | void mm_log (char *string,long errflg); [00:02:36] | ^ [00:02:36] mmdf.c:2457:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2457:11: note: place parentheses around the assignment to silence this warning [00:02:36] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:2457:11: note: use '==' to turn this assignment into an equality comparison [00:02:36] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { [00:02:36] | ^ [00:02:36] | == [00:02:36] mmdf.c:2473:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:36] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:36] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:36] mmdf.c:2473:11: note: place parentheses around the assignment to silence this warning [00:02:36] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:36] | ^ [00:02:36] | ( ) [00:02:36] mmdf.c:2473:11: note: use '==' to turn this assignment into an equality comparison [00:02:36] 2473 | if (j = min (i,f->protect - f->filepos)) { [00:02:36] | ^ [00:02:36] | == [00:02:36] 96 warnings generated. [00:02:36] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` tenex.c -o tenex.so [00:02:37] tenex.c:211:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 211 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:37] | ^~~~ [00:02:37] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:211:56: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 211 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:37] | ^~~~~~~ [00:02:37] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:324:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:37] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:37] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:324:11: note: place parentheses around the assignment to silence this warning [00:02:37] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:37] | ^ [00:02:37] | ( ) [00:02:37] tenex.c:324:11: note: use '==' to turn this assignment into an equality comparison [00:02:37] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:37] | ^ [00:02:37] | == [00:02:37] tenex.c:350:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 350 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:37] | ^~~ [00:02:37] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:350:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 350 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:37] | ^~~~~~~ [00:02:37] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:427:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 427 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:433:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 433 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:37] | ^~~~~~~~~~~~~~~ [00:02:37] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:433:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 433 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:37] | ^~~~~~~ [00:02:37] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:500:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 500 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:37] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:501:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 501 | mail_sequence (stream,sequence))) [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:37] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:511:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 511 | LOCAL->buf = (char *) fs_get (LOCAL->buflen + 1); [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:538:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 538 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:37] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:539:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 539 | mail_sequence (stream,sequence))) [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:37] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:564:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 564 | LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:574:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 574 | *length = strcrlfcpy (&LOCAL->buf,&LOCAL->buflen,s,i); [00:02:37] | ^ [00:02:37] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:37] 33 | unsigned char *src,unsigned long srcl); [00:02:37] | ^ [00:02:37] tenex.c:609:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 609 | LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:632:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 632 | strcrlfcpy (&LOCAL->text.data,&LOCAL->text.size,s,i); [00:02:37] | ^ [00:02:37] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:37] 33 | unsigned char *src,unsigned long srcl); [00:02:37] | ^ [00:02:37] tenex.c:772:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:37] 772 | if (j = hdrlen + txtlen) { [00:02:37] | ~~^~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:772:8: note: place parentheses around the assignment to silence this warning [00:02:37] 772 | if (j = hdrlen + txtlen) { [00:02:37] | ^ [00:02:37] | ( ) [00:02:37] tenex.c:772:8: note: use '==' to turn this assignment into an equality comparison [00:02:37] 772 | if (j = hdrlen + txtlen) { [00:02:37] | ^ [00:02:37] | == [00:02:37] tenex.c:774:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 774 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:37] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:37] | ^ [00:02:37] tenex.c:775:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 775 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:37] 105 | size_t strlen(const char *) __pure; [00:02:37] | ^ [00:02:37] tenex.c:775:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 775 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:37] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:781:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 781 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:37] 105 | size_t strlen(const char *) __pure; [00:02:37] | ^ [00:02:37] tenex.c:781:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 781 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:37] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:37] | ^ [00:02:37] tenex.c:797:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 797 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:798:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 798 | MM_LOG (LOCAL->buf,WARN); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:833:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 833 | mail_uid_sequence (stream,sequence) : [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:37] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:834:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 834 | mail_sequence (stream,sequence)) : LONGT) && [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:37] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:895:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 895 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:37] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:37] | ^ [00:02:37] tenex.c:911:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 911 | sprintf (LOCAL->buf, [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:914:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 914 | MM_LOG (LOCAL->buf,WARN); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:918:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 918 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:920:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 920 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:961:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 961 | if (!tenex_isvalid (mailbox,LOCAL->buf)) switch (errno) { [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] tenex.c:176:37: note: passing argument to parameter 'tmp' here [00:02:37] 176 | int tenex_isvalid (char *name,char *tmp) [00:02:37] | ^ [00:02:37] tenex.c:968:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 968 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:969:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 969 | MM_LOG (LOCAL->buf,ERROR); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:973:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 973 | sprintf (LOCAL->buf,"Invalid Tenex-format mailbox name: %.80s",mailbox); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:974:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 974 | MM_LOG (LOCAL->buf,ERROR); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:978:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 978 | sprintf (LOCAL->buf,"Not a Tenex-format mailbox: %.80s",mailbox); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:979:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 979 | MM_LOG (LOCAL->buf,ERROR); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:982:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 982 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:37] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:983:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 983 | mail_sequence (stream,sequence))) return NIL; [00:02:37] | ^~~~~~~~ [00:02:37] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:37] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:37] | ^ [00:02:37] tenex.c:986:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 986 | sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:987:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 987 | MM_LOG (LOCAL->buf,ERROR); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:1009:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1009 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:37] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:37] | ^ [00:02:37] tenex.c:1014:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1014 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:1015:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1015 | MM_LOG (LOCAL->buf,ERROR); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:37] 1605 | void mm_log (char *string,long errflg); [00:02:37] | ^ [00:02:37] tenex.c:1072:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1072 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:37] | ^~~~~~~ [00:02:37] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:1072:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1072 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); [00:02:37] | ^~~~~~~ [00:02:37] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:37] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:37] | ^ [00:02:37] tenex.c:1122:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1122 | if (!mail_parse_date (&elt,date)) { [00:02:37] | ^~~~ [00:02:37] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:37] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:37] | ^ [00:02:37] tenex.c:1244:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1244 | if (!(s = strchr (LOCAL->buf,'\012'))) { [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:37] 85 | char *strchr(const char *, int) __pure; [00:02:37] | ^ [00:02:37] tenex.c:1244:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1244 | if (!(s = strchr (LOCAL->buf,'\012'))) { [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:1253:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:37] 85 | char *strchr(const char *, int) __pure; [00:02:37] | ^ [00:02:37] tenex.c:1253:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:37] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:1253:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:37] | ^~~ [00:02:37] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:37] 85 | char *strchr(const char *, int) __pure; [00:02:37] | ^ [00:02:37] tenex.c:1253:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1253 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:37] | ^ ~~~~~~~~~~~~~~~~ [00:02:37] tenex.c:1276:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1276 | (elt->private.msg.full.text.size = strtoul (s,(char **) &s,10)) && [00:02:37] | ^ [00:02:37] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:37] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:37] | ^ [00:02:37] tenex.c:1300:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1300 | j = strtoul (t,NIL,8); /* get user flags value */ [00:02:37] | ^ [00:02:37] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:37] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:37] | ^ [00:02:37] tenex.c:1378:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1378 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:1379:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1379 | fatal (LOCAL->buf); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:37] 32 | void fatal (char *string); [00:02:37] | ^ [00:02:37] tenex.c:1387:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1387 | j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:37] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:37] | ^ [00:02:37] tenex.c:1413:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1413 | sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:37] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:37] | ^ [00:02:37] tenex.c:1421:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1421 | write (LOCAL->fd,LOCAL->buf,12); [00:02:37] | ^~~~~~~~~~ [00:02:37] tenex.c:70:15: note: expanded from macro 'LOCAL' [00:02:37] 70 | #define LOCAL ((TENEXLOCAL *) stream->local) [00:02:37] | ^ [00:02:37] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:37] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:37] | ^ [00:02:37] tenex.c:1456:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:37] 1456 | read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); [00:02:37] | ^ ~~~~~~~~~~ [00:02:37] 63 warnings generated. [00:02:37] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mtx.c -o mtx.so [00:02:38] mtx.c:204:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 204 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:38] | ^~~~ [00:02:38] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:204:56: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 204 | else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; [00:02:38] | ^~~~~~~ [00:02:38] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:317:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:38] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:38] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:317:11: note: place parentheses around the assignment to silence this warning [00:02:38] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:38] | ^ [00:02:38] | ( ) [00:02:38] mtx.c:317:11: note: use '==' to turn this assignment into an equality comparison [00:02:38] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ [00:02:38] | ^ [00:02:38] | == [00:02:38] mtx.c:343:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 343 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:38] | ^~~ [00:02:38] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:343:36: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 343 | if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:38] | ^~~~~~~ [00:02:38] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:421:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 421 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:38] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:424:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 424 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:38] | ^~~~~~~~~~~~~~~ [00:02:38] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:424:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 424 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:38] | ^~~~~~~ [00:02:38] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:487:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 487 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:38] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:488:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 488 | mail_sequence (stream,sequence))) [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:38] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:511:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 511 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); [00:02:38] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:546:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 546 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:38] | ^ ~~~~~~~~~~ [00:02:38] mtx.c:683:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:38] 683 | if (j = hdrlen + txtlen) { [00:02:38] | ~~^~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:683:8: note: place parentheses around the assignment to silence this warning [00:02:38] 683 | if (j = hdrlen + txtlen) { [00:02:38] | ^ [00:02:38] | ( ) [00:02:38] mtx.c:683:8: note: use '==' to turn this assignment into an equality comparison [00:02:38] 683 | if (j = hdrlen + txtlen) { [00:02:38] | ^ [00:02:38] | == [00:02:38] mtx.c:685:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 685 | mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1694:24: note: passing argument to parameter 'string' here [00:02:38] 1694 | char *mail_date (char *string,MESSAGECACHE *elt); [00:02:38] | ^ [00:02:38] mtx.c:686:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 686 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:38] 105 | size_t strlen(const char *) __pure; [00:02:38] | ^ [00:02:38] mtx.c:686:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 686 | sprintf (LOCAL->buf + strlen (LOCAL->buf), [00:02:38] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:692:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 692 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:38] 105 | size_t strlen(const char *) __pure; [00:02:38] | ^ [00:02:38] mtx.c:692:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 692 | if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:38] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:38] | ^ [00:02:38] mtx.c:708:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 708 | sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:709:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 709 | MM_LOG (LOCAL->buf,WARN); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:744:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 744 | mail_uid_sequence (stream,sequence) : [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:38] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:745:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 745 | mail_sequence (stream,sequence)) : LONGT) && [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:38] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:806:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 806 | if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:38] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:38] | ^ [00:02:38] mtx.c:821:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 821 | sprintf (LOCAL->buf, [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:824:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 824 | MM_LOG (LOCAL->buf,WARN); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:828:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 828 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:830:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 830 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:871:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 871 | if (!mtx_isvalid (mailbox,LOCAL->buf)) switch (errno) { [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] mtx.c:169:35: note: passing argument to parameter 'tmp' here [00:02:38] 169 | int mtx_isvalid (char *name,char *tmp) [00:02:38] | ^ [00:02:38] mtx.c:878:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 878 | sprintf (LOCAL->buf,"Can't access destination: %.80s",mailbox); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:879:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 879 | MM_LOG (LOCAL->buf,ERROR); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:883:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 883 | sprintf (LOCAL->buf,"Invalid MTX-format mailbox name: %.80s",mailbox); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:884:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 884 | MM_LOG (LOCAL->buf,ERROR); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:888:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 888 | sprintf (LOCAL->buf,"Not a MTX-format mailbox: %.80s",mailbox); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:889:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 889 | MM_LOG (LOCAL->buf,ERROR); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:892:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 892 | if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:38] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:893:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 893 | mail_sequence (stream,sequence))) return NIL; [00:02:38] | ^~~~~~~~ [00:02:38] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:38] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:38] | ^ [00:02:38] mtx.c:896:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 896 | sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:897:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 897 | MM_LOG (LOCAL->buf,ERROR); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:919:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 919 | if (write (fd,LOCAL->buf,j) < 0) ret = NIL; [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:38] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:38] | ^ [00:02:38] mtx.c:924:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 924 | sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:925:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 925 | MM_LOG (LOCAL->buf,ERROR); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:38] 1605 | void mm_log (char *string,long errflg); [00:02:38] | ^ [00:02:38] mtx.c:982:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 982 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:38] | ^~~~~~~ [00:02:38] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:982:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 982 | if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); [00:02:38] | ^~~~~~~ [00:02:38] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:38] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:38] | ^ [00:02:38] mtx.c:1032:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1032 | if (!mail_parse_date (&elt,date)) { [00:02:38] | ^~~~ [00:02:38] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:38] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:38] | ^ [00:02:38] mtx.c:1132:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1132 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:38] 85 | char *strchr(const char *, int) __pure; [00:02:38] | ^ [00:02:38] mtx.c:1132:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1132 | if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { [00:02:38] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:1141:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:38] 85 | char *strchr(const char *, int) __pure; [00:02:38] | ^ [00:02:38] mtx.c:1141:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:38] | ^ ~~~~~~~~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:1141:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:38] | ^~~ [00:02:38] /usr/include/string.h:85:26: note: passing argument to parameter here [00:02:38] 85 | char *strchr(const char *, int) __pure; [00:02:38] | ^ [00:02:38] mtx.c:1141:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1141 | if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { [00:02:38] | ^ ~~~~~~~~~~~~~~~~ [00:02:38] mtx.c:1164:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1164 | (elt->rfc822_size = strtoul (s,(char **) &s,10)) && (!(s && *s)) && [00:02:38] | ^ [00:02:38] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:38] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:38] | ^ [00:02:38] mtx.c:1188:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1188 | j = strtoul (t,NIL,8); /* get user flags value */ [00:02:38] | ^ [00:02:38] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:38] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:38] | ^ [00:02:38] mtx.c:1266:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1266 | sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:1267:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1267 | fatal (LOCAL->buf); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./ftl.h:32:19: note: passing argument to parameter 'string' here [00:02:38] 32 | void fatal (char *string); [00:02:38] | ^ [00:02:38] mtx.c:1275:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1275 | j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdlib.h:118:34: note: passing argument to parameter here [00:02:38] 118 | strtoul(const char * __restrict, char ** __restrict, int); [00:02:38] | ^ [00:02:38] mtx.c:1301:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1301 | sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:38] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:38] | ^ [00:02:38] mtx.c:1309:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:38] 1309 | write (LOCAL->fd,LOCAL->buf,12); [00:02:38] | ^~~~~~~~~~ [00:02:38] mtx.c:66:15: note: expanded from macro 'LOCAL' [00:02:38] 66 | #define LOCAL ((MTXLOCAL *) stream->local) [00:02:38] | ^ [00:02:38] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:38] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:38] | ^ [00:02:38] 57 warnings generated. [00:02:38] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` news.c -o news.so [00:02:39] news.c:218:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:39] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:39] news.c:218:13: note: place parentheses around the assignment to silence this warning [00:02:39] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:218:13: note: use '==' to turn this assignment into an equality comparison [00:02:39] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:234:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ~~^~~~~~~~~~~~~~~~~~~~~~ [00:02:39] news.c:234:11: note: place parentheses around the assignment to silence this warning [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:234:11: note: use '==' to turn this assignment into an equality comparison [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:234:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ~~^~~~~~~~~~~~~~~~ [00:02:39] news.c:234:44: note: place parentheses around the assignment to silence this warning [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:234:44: note: use '==' to turn this assignment into an equality comparison [00:02:39] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:237:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 237 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:39] | ^~~~ [00:02:39] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:39] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:39] | ^ [00:02:39] news.c:237:29: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 237 | if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); [00:02:39] | ^~~~~~~ [00:02:39] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:39] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:39] | ^ [00:02:39] news.c:240:19: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 240 | if (pmatch_full (name,pattern,'.')) [00:02:39] | ^~~~ [00:02:39] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:39] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:39] | ^ [00:02:39] news.c:240:24: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 240 | if (pmatch_full (name,pattern,'.')) [00:02:39] | ^~~~~~~ [00:02:39] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:39] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:39] | ^ [00:02:39] news.c:243:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:39] | ~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:39] news.c:243:16: note: place parentheses around the assignment to silence this warning [00:02:39] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:243:16: note: use '==' to turn this assignment into an equality comparison [00:02:39] 243 | } while (t = strtok_r (NIL,"\n",&r)); [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:286:34: warning: expression result unused [-Wunused-value] [00:02:39] 286 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:02:39] | ^~~~ [00:02:39] news.c:368:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:39] | ~~^~~~~~~~~~~~~~~~ [00:02:39] news.c:368:12: note: place parentheses around the assignment to silence this warning [00:02:39] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:368:12: note: use '==' to turn this assignment into an equality comparison [00:02:39] 368 | while (s = strchr (s,'.')) *s = '/'; [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:408:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:39] 408 | char *s = name->d_name; [00:02:39] | ^ ~~~~~~~~~~~~ [00:02:39] news.c:409:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:39] | ~~^~~~~~ [00:02:39] news.c:409:12: note: place parentheses around the assignment to silence this warning [00:02:39] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] news.c:409:12: note: use '==' to turn this assignment into an equality comparison [00:02:39] 409 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:39] | ^ [00:02:39] | == [00:02:39] news.c:455:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 455 | mail_uid_sequence (stream,sequence) : [00:02:39] | ^~~~~~~~ [00:02:39] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:39] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:39] | ^ [00:02:39] news.c:456:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 456 | mail_sequence (stream,sequence))) [00:02:39] | ^~~~~~~~ [00:02:39] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:39] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:39] | ^ [00:02:39] news.c:473:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 473 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:39] | ^~~~~~~~ [00:02:39] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:39] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:39] | ^ [00:02:39] news.c:473:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 473 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) [00:02:39] | ^~~~~~~~ [00:02:39] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:39] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:39] | ^ [00:02:39] news.c:494:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 494 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:39] | ^~~~~~~~~~ [00:02:39] news.c:61:15: note: expanded from macro 'LOCAL' [00:02:39] 61 | #define LOCAL ((NEWSLOCAL *) stream->local) [00:02:39] | ^ [00:02:39] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:39] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:39] | ^ [00:02:39] news.c:499:20: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 499 | ((fd = open (LOCAL->buf,O_RDONLY,NIL)) >= 0)) { [00:02:39] | ^~~~~~~~~~ [00:02:39] news.c:61:15: note: expanded from macro 'LOCAL' [00:02:39] 61 | #define LOCAL ((NEWSLOCAL *) stream->local) [00:02:39] | ^ [00:02:39] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:39] 406 | int open(const char *, int, ...); [00:02:39] | ^ [00:02:39] news.c:503:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 503 | d.chunk = LOCAL->buf; [00:02:39] | ^ ~~~~~~~~~~ [00:02:39] news.c:568:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:39] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ~~~~~~~~~~^~~~~~~~~ [00:02:39] news.c:568:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:39] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ~ ^ ~ [00:02:39] news.c:568:21: note: use '=' to turn this equality comparison into an assignment [00:02:39] 568 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ^~ [00:02:39] | = [00:02:39] news.c:588:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:39] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ~~~~~~~~~~^~~~~~~~~ [00:02:39] news.c:588:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:39] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ~ ^ ~ [00:02:39] news.c:588:21: note: use '=' to turn this equality comparison into an assignment [00:02:39] 588 | if ((CHR (&bs) == '\012')) *t++ = SNX (&bs); [00:02:39] | ^~ [00:02:39] | = [00:02:39] 21 warnings generated. [00:02:39] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` phile.c -o phile.so [00:02:39] phile.c:292:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:39] | ~~^~~~~~~~~~~~~~~~ [00:02:39] phile.c:292:9: note: place parentheses around the assignment to silence this warning [00:02:39] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] phile.c:292:9: note: use '==' to turn this assignment into an equality comparison [00:02:39] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; [00:02:39] | ^ [00:02:39] | == [00:02:39] phile.c:305:20: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 305 | LOCAL->env->date = cpystr (tmp); [00:02:39] | ^ ~~~~~~~~~~~~ [00:02:39] phile.c:309:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:39] | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ [00:02:39] phile.c:309:10: note: place parentheses around the assignment to silence this warning [00:02:39] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] phile.c:309:10: note: use '==' to turn this assignment into an equality comparison [00:02:39] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); [00:02:39] | ^ [00:02:39] | == [00:02:39] phile.c:321:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:39] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:39] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:39] phile.c:321:9: note: place parentheses around the assignment to silence this warning [00:02:39] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:39] | ^ [00:02:39] | ( ) [00:02:39] phile.c:321:9: note: use '==' to turn this assignment into an equality comparison [00:02:39] 321 | if (i = phile_type (buf->data,buf->size,&j)) { [00:02:39] | ^ [00:02:39] | == [00:02:39] phile.c:327:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:39] 327 | buf->size = strcrlfcpy (&buf->data,&m,s,buf->size); [00:02:39] | ^ [00:02:39] ./nl.h:33:21: note: passing argument to parameter 'src' here [00:02:39] 33 | unsigned char *src,unsigned long srcl); [00:02:39] | ^ [00:02:39] 5 warnings generated. [00:02:39] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mh.c -o mh.so [00:02:41] mh.c:190:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 190 | if ((mh_allow_inbox && !compare_cstring (name,"INBOX")) || [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:190:49: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 190 | if ((mh_allow_inbox && !compare_cstring (name,"INBOX")) || [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:191:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 191 | !compare_cstring (name,MHINBOX) || [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:191:30: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 191 | !compare_cstring (name,MHINBOX) || [00:02:41] | ^~~~~~~ [00:02:41] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:41] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:41] | ^~~~~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:195:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 195 | ret = (synonly && compare_cstring (name,"INBOX")) ? [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:195:47: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 195 | ret = (synonly && compare_cstring (name,"INBOX")) ? [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:254:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 254 | if (v = strpbrk (s," \t")) { [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:254:8: note: place parentheses around the assignment to silence this warning [00:02:41] 254 | if (v = strpbrk (s," \t")) { [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:254:8: note: use '==' to turn this assignment into an equality comparison [00:02:41] 254 | if (v = strpbrk (s," \t")) { [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:256:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 256 | if (!compare_cstring (s,"Path:")) { [00:02:41] | ^ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:256:28: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 256 | if (!compare_cstring (s,"Path:")) { [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:327:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ~~^~~~~~ [00:02:41] mh.c:327:14: note: place parentheses around the assignment to silence this warning [00:02:41] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:327:14: note: use '==' to turn this assignment into an equality comparison [00:02:41] 327 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:346:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:346:13: note: place parentheses around the assignment to silence this warning [00:02:41] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:346:13: note: use '==' to turn this assignment into an equality comparison [00:02:41] 346 | if (s = strchr (test,'/')) *++s = '\0'; [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:359:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 359 | if (s = strpbrk (test,"%*")) { [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:359:13: note: place parentheses around the assignment to silence this warning [00:02:41] 359 | if (s = strpbrk (test,"%*")) { [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:359:13: note: use '==' to turn this assignment into an equality comparison [00:02:41] 359 | if (s = strpbrk (test,"%*")) { [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:366:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 366 | if (s = strrchr (file,'/')) { [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:366:13: note: place parentheses around the assignment to silence this warning [00:02:41] 366 | if (s = strrchr (file,'/')) { [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:366:13: note: use '==' to turn this assignment into an equality comparison [00:02:41] 366 | if (s = strrchr (file,'/')) { [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:374:27: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 374 | if (!compare_cstring (test,MHINBOX)) [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:374:32: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 374 | if (!compare_cstring (test,MHINBOX)) [00:02:41] | ^~~~~~~ [00:02:41] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:41] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:41] | ^~~~~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:403:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 403 | do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:41] | ^ [00:02:41] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:41] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:403:27: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 403 | do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); [00:02:41] | ^~~~ [00:02:41] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:41] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:404:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:404:14: note: place parentheses around the assignment to silence this warning [00:02:41] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:404:14: note: use '==' to turn this assignment into an equality comparison [00:02:41] 404 | while (s = sm_read (tmp,&sdb)); /* until no more subscriptions */ [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:428:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:41] | ~~~^~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:428:10: note: place parentheses around the assignment to silence this warning [00:02:41] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:428:10: note: use '==' to turn this assignment into an equality comparison [00:02:41] 428 | if (dp = opendir (curdir)) { /* open directory */ [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:429:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:41] | ~~^~~~~~~~~~~~~~ [00:02:41] mh.c:429:14: note: place parentheses around the assignment to silence this warning [00:02:41] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:429:14: note: use '==' to turn this assignment into an equality comparison [00:02:41] 429 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:435:21: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 435 | if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); [00:02:41] | ^~~~ [00:02:41] ./env.h:29:34: note: passing argument to parameter 's' here [00:02:41] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:435:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 435 | if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); [00:02:41] | ^~~ [00:02:41] ./env.h:29:51: note: passing argument to parameter 'pat' here [00:02:41] 29 | long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:437:16: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 437 | if (dmatch (name,pat,'/') && [00:02:41] | ^~~~ [00:02:41] ./env.h:30:29: note: passing argument to parameter 's' here [00:02:41] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:437:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 437 | if (dmatch (name,pat,'/') && [00:02:41] | ^~~ [00:02:41] ./env.h:30:46: note: passing argument to parameter 'pat' here [00:02:41] 30 | long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); [00:02:41] | ^ [00:02:41] mh.c:513:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:41] | ~~~~~^~~~~~~~~~~~~~~ [00:02:41] mh.c:513:12: note: place parentheses around the assignment to silence this warning [00:02:41] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:513:12: note: use '==' to turn this assignment into an equality comparison [00:02:41] 513 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:516:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:41] | ~~^~~~~~~~~~~~~~~~ [00:02:41] mh.c:516:14: note: place parentheses around the assignment to silence this warning [00:02:41] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:516:14: note: use '==' to turn this assignment into an equality comparison [00:02:41] 516 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:553:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:41] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:553:11: note: place parentheses around the assignment to silence this warning [00:02:41] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:553:11: note: use '==' to turn this assignment into an equality comparison [00:02:41] 553 | if (s = strrchr (mh_file (tmp1,newname),'/')) { [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:587:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 587 | (!compare_cstring (stream->mailbox,MHINBOX) || [00:02:41] | ^~~~~~~~~~~~~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:587:40: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 587 | (!compare_cstring (stream->mailbox,MHINBOX) || [00:02:41] | ^~~~~~~ [00:02:41] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:41] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:41] | ^~~~~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:592:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 592 | !compare_cstring (stream->mailbox,"INBOX")) ? T : NIL; [00:02:41] | ^~~~~~~~~~~~~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:592:40: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 592 | !compare_cstring (stream->mailbox,"INBOX")) ? T : NIL; [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:638:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 638 | mail_uid_sequence (stream,sequence) : [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:41] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:639:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 639 | mail_sequence (stream,sequence))) [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:41] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:662:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 662 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:667:20: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 667 | ((fd = open (LOCAL->buf,O_RDONLY,NIL)) >= 0)) { [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:41] 406 | int open(const char *, int, ...); [00:02:41] | ^ [00:02:41] mh.c:671:13: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 671 | d.chunk = LOCAL->buf; [00:02:41] | ^ ~~~~~~~~~~ [00:02:41] mh.c:737:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:41] 737 | if ((CHR (&bs) == '\012')) { [00:02:41] | ~~~~~~~~~~^~~~~~~~~ [00:02:41] mh.c:737:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:41] 737 | if ((CHR (&bs) == '\012')) { [00:02:41] | ~ ^ ~ [00:02:41] mh.c:737:21: note: use '=' to turn this equality comparison into an assignment [00:02:41] 737 | if ((CHR (&bs) == '\012')) { [00:02:41] | ^~ [00:02:41] | = [00:02:41] mh.c:763:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] [00:02:41] 763 | if ((CHR (&bs) == '\012')) { [00:02:41] | ~~~~~~~~~~^~~~~~~~~ [00:02:41] mh.c:763:21: note: remove extraneous parentheses around the comparison to silence this warning [00:02:41] 763 | if ((CHR (&bs) == '\012')) { [00:02:41] | ~ ^ ~ [00:02:41] mh.c:763:21: note: use '=' to turn this equality comparison into an assignment [00:02:41] 763 | if ((CHR (&bs) == '\012')) { [00:02:41] | ^~ [00:02:41] | = [00:02:41] mh.c:886:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ~~^~~~~~~~~~~~~~~~ [00:02:41] mh.c:886:11: note: place parentheses around the assignment to silence this warning [00:02:41] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:886:11: note: use '==' to turn this assignment into an equality comparison [00:02:41] 886 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:899:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 899 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,++old); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:902:19: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 902 | if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:41] 406 | int open(const char *, int, ...); [00:02:41] | ^ [00:02:41] mh.c:926:16: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 926 | mh_setdate (LOCAL->buf,elt); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] mh.c:107:24: note: passing argument to parameter 'file' here [00:02:41] 107 | void mh_setdate (char *file,MESSAGECACHE *elt); [00:02:41] | ^ [00:02:41] mh.c:934:14: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 934 | unlink (LOCAL->buf);/* flush this file */ [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:41] 376 | int unlink(const char *); [00:02:41] | ^ [00:02:41] mh.c:981:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 981 | mail_uid_sequence (stream,sequence) : [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:41] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:982:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:41] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:980:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:41] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:41] 981 | mail_uid_sequence (stream,sequence) : [00:02:41] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:41] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:41] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:41] mh.c:980:11: note: place parentheses around the assignment to silence this warning [00:02:41] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:41] | ^ [00:02:41] | ( [00:02:41] 981 | mail_uid_sequence (stream,sequence) : [00:02:41] 982 | mail_sequence (stream,sequence)) : LONGT) { [00:02:41] | [00:02:41] | ) [00:02:41] mh.c:980:11: note: use '==' to turn this assignment into an equality comparison [00:02:41] 980 | if (ret = sequence ? ((options & EX_UID) ? [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:987:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 987 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:988:14: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 988 | if (unlink (LOCAL->buf)) {/* try to delete the message */ [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:41] 376 | int unlink(const char *); [00:02:41] | ^ [00:02:41] mh.c:989:13: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 989 | sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:991:12: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 991 | mm_log (LOCAL->buf,(long) NIL); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:41] 1605 | void mm_log (char *string,long errflg); [00:02:41] | ^ [00:02:41] mh.c:1009:16: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1009 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:1010:15: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1010 | mm_log (LOCAL->buf,(long) NIL); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:41] 1605 | void mm_log (char *string,long errflg); [00:02:41] | ^ [00:02:41] mh.c:1041:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1041 | if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:41] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:1042:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1042 | mail_sequence (stream,sequence)) [00:02:41] | ^~~~~~~~ [00:02:41] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:41] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:41] | ^ [00:02:41] mh.c:1045:11: warning: passing 'unsigned char[65536]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1045 | sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:41] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:41] | ^ [00:02:41] mh.c:1046:18: warning: passing 'unsigned char[65536]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1046 | if ((fd = open (LOCAL->buf,O_RDONLY,NIL)) < 0) return NIL; [00:02:41] | ^~~~~~~~~~ [00:02:41] mh.c:69:15: note: expanded from macro 'LOCAL' [00:02:41] 69 | #define LOCAL ((MHLOCAL *) stream->local) [00:02:41] | ^ [00:02:41] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:41] 406 | int open(const char *, int, ...); [00:02:41] | ^ [00:02:41] mh.c:1058:10: warning: assigning to 'char *' from 'unsigned char[65536]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1058 | d.chunk = LOCAL->buf; [00:02:41] | ^ ~~~~~~~~~~ [00:02:41] mh.c:1106:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1106 | if (!((!compare_cstring (mailbox,MHINBOX) || [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1106:38: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1106 | if (!((!compare_cstring (mailbox,MHINBOX) || [00:02:41] | ^~~~~~~ [00:02:41] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:41] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:41] | ^~~~~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1107:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1107 | !compare_cstring (mailbox,"INBOX")) && [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1107:31: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1107 | !compare_cstring (mailbox,"INBOX")) && [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1135:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ~~^~~~~~~~~~~~~~~~ [00:02:41] mh.c:1135:9: note: place parentheses around the assignment to silence this warning [00:02:41] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:1135:9: note: use '==' to turn this assignment into an equality comparison [00:02:41] 1135 | if (s = (void *) names) fs_give ((void **) &s); [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:1146:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1146 | if (!mail_parse_date (&elt,date)) { [00:02:41] | ^~~~ [00:02:41] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:41] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:41] | ^ [00:02:41] mh.c:1197:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:41] 1197 | char *s = name->d_name; [00:02:41] | ^ ~~~~~~~~~~~~ [00:02:41] mh.c:1198:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:41] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ~~^~~~~~ [00:02:41] mh.c:1198:12: note: place parentheses around the assignment to silence this warning [00:02:41] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ^ [00:02:41] | ( ) [00:02:41] mh.c:1198:12: note: use '==' to turn this assignment into an equality comparison [00:02:41] 1198 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:41] | ^ [00:02:41] | == [00:02:41] mh.c:1227:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1227:30: warning: passing 'char[9]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:41] | ^~~~~~~ [00:02:41] mh.c:43:17: note: expanded from macro 'MHINBOX' [00:02:41] 43 | #define MHINBOX "#mhinbox" /* corresponds to namespace in env_unix.c */ [00:02:41] | ^~~~~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1227:60: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:41] | ^~~~ [00:02:41] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1227:65: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:41] 1227 | if (!compare_cstring (name,MHINBOX) || !compare_cstring (name,"INBOX")) [00:02:41] | ^~~~~~~ [00:02:41] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:41] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:41] | ^ [00:02:41] mh.c:1260:34: warning: expression result unused [-Wunused-value] [00:02:41] 1260 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; [00:02:41] | ^~~~ [00:02:41] 70 warnings generated. [00:02:41] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mx.c -o mx.so [00:02:42] mx.c:186:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 186 | else if (!compare_cstring (name,"INBOX")) errno = NIL; [00:02:42] | ^~~~ [00:02:42] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:186:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 186 | else if (!compare_cstring (name,"INBOX")) errno = NIL; [00:02:42] | ^~~~~~~ [00:02:42] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:241:31: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] [00:02:42] 241 | if (strcmp (name,MXINDEXNAME+1)) [00:02:42] | ~~~~~~~~~~~^~ [00:02:42] mx.c:241:31: note: use array indexing to silence this warning [00:02:42] 241 | if (strcmp (name,MXINDEXNAME+1)) [00:02:42] | ^ [00:02:42] | & [ ] [00:02:42] mx.c:242:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:42] | ~~^~~~~~~~~ [00:02:42] mx.c:242:14: note: place parentheses around the assignment to silence this warning [00:02:42] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:242:14: note: use '==' to turn this assignment into an equality comparison [00:02:42] 242 | while (c = *name++) if (!isdigit (c)) return NIL; [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:289:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ~~^~~~~~~~~~~~~~~~ [00:02:42] mx.c:289:9: note: place parentheses around the assignment to silence this warning [00:02:42] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:289:9: note: use '==' to turn this assignment into an equality comparison [00:02:42] 289 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:395:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:42] | ~~~~~^~~~~~~~~~~~~~~ [00:02:42] mx.c:395:14: note: place parentheses around the assignment to silence this warning [00:02:42] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:395:14: note: use '==' to turn this assignment into an equality comparison [00:02:42] 395 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:398:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:42] | ~~^~~~~~~~~~~~~~~~ [00:02:42] mx.c:398:16: note: place parentheses around the assignment to silence this warning [00:02:42] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:398:16: note: use '==' to turn this assignment into an equality comparison [00:02:42] 398 | while (d = readdir (dirp)) if (mx_select (d)) { [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:439:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 439 | if (compare_cstring (old,"INBOX")) { [00:02:42] | ^~~ [00:02:42] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:439:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 439 | if (compare_cstring (old,"INBOX")) { [00:02:42] | ^~~~~~~ [00:02:42] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:441:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:42] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:441:13: note: place parentheses around the assignment to silence this warning [00:02:42] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:441:13: note: use '==' to turn this assignment into an equality comparison [00:02:42] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:469:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ~~^~~~~~~~~~~~~~~~ [00:02:42] mx.c:469:13: note: place parentheses around the assignment to silence this warning [00:02:42] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:469:13: note: use '==' to turn this assignment into an equality comparison [00:02:42] 469 | if (a = (void *) names) fs_give ((void **) &a); [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:470:70: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] [00:02:42] 470 | if (lasterror || mx_rename_work (tmp,srcl,tmp1,dstl,MXINDEXNAME+1)) [00:02:42] | ~~~~~~~~~~~^~ [00:02:42] mx.c:470:70: note: use array indexing to silence this warning [00:02:42] 470 | if (lasterror || mx_rename_work (tmp,srcl,tmp1,dstl,MXINDEXNAME+1)) [00:02:42] | ^ [00:02:42] | & [ ] [00:02:42] mx.c:518:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 518 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:42] | ^~~~~~~~~~~~~~~ [00:02:42] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:518:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 518 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:42] | ^~~~~~~ [00:02:42] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:524:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 524 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:42] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:573:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 573 | ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:42] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:574:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 574 | mail_sequence (stream,sequence))) [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:42] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:591:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 591 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,elt->private.uid); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:593:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 593 | if (!elt->rfc822_size && !stat (LOCAL->buf,&sbuf)) { [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/sys/stat.h:396:33: note: passing argument to parameter here [00:02:42] 396 | int stat(const char * __restrict, struct stat * __restrict); [00:02:42] | ^ [00:02:42] mx.c:633:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 633 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = elt->rfc822_size) + 1); [00:02:42] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:648:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 648 | cpytxt (&elt->private.msg.header.text,LOCAL->buf,i); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:02:42] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:02:42] | ^ [00:02:42] mx.c:649:41: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 649 | cpytxt (&elt->private.msg.text.text,LOCAL->buf+i,elt->rfc822_size - i); [00:02:42] | ^~~~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] ./misc.h:85:36: note: passing argument to parameter 'text' here [00:02:42] 85 | char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); [00:02:42] | ^ [00:02:42] mx.c:752:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:42] | ~~^~~~~~~~~~~~~~~~ [00:02:42] mx.c:752:11: note: place parentheses around the assignment to silence this warning [00:02:42] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:752:11: note: use '==' to turn this assignment into an equality comparison [00:02:42] 752 | if (s = (void *) names) fs_give ((void **) &s); [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:767:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 767 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,++old); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:770:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 770 | if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:42] 406 | int open(const char *, int, ...); [00:02:42] | ^ [00:02:42] mx.c:794:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 794 | mx_setdate (LOCAL->buf,elt); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] mx.c:106:24: note: passing argument to parameter 'file' here [00:02:42] 106 | void mx_setdate (char *file,MESSAGECACHE *elt); [00:02:42] | ^ [00:02:42] mx.c:801:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 801 | unlink (LOCAL->buf);/* flush this file */ [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:42] 376 | int unlink(const char *); [00:02:42] | ^ [00:02:42] mx.c:804:8: warning: data argument not used by format string [-Wformat-extra-args] [00:02:42] 803 | sprintf (tmp,"Message copy to MX mailbox failed: %.80s", [00:02:42] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] 804 | s,strerror (errno)); [00:02:42] | ^ [00:02:42] mx.c:848:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 848 | mail_uid_sequence (stream,sequence) : [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:42] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:849:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:42] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:847:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:42] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] 848 | mail_uid_sequence (stream,sequence) : [00:02:42] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:42] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] 850 | mx_lockindex (stream)) { /* lock the index */ [00:02:42] | ~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:847:11: note: place parentheses around the assignment to silence this warning [00:02:42] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:42] | ^ [00:02:42] | ( [00:02:42] 848 | mail_uid_sequence (stream,sequence) : [00:02:42] 849 | mail_sequence (stream,sequence)) : LONGT) && [00:02:42] 850 | mx_lockindex (stream)) { /* lock the index */ [00:02:42] | [00:02:42] | ) [00:02:42] mx.c:847:11: note: use '==' to turn this assignment into an equality comparison [00:02:42] 847 | if (ret = (sequence ? ((options & EX_UID) ? [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:855:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 855 | sprintf (LOCAL->buf,"%s/%lu",stream->mailbox,elt->private.uid); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:856:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 856 | if (unlink (LOCAL->buf)) {/* try to delete the message */ [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:42] 376 | int unlink(const char *); [00:02:42] | ^ [00:02:42] mx.c:857:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 857 | sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:859:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 859 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:42] 1605 | void mm_log (char *string,long errflg); [00:02:42] | ^ [00:02:42] mx.c:875:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 875 | sprintf (LOCAL->buf,"Expunged %lu messages",n); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:876:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 876 | MM_LOG (LOCAL->buf,(long) NIL); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:42] 1605 | void mm_log (char *string,long errflg); [00:02:42] | ^ [00:02:42] mx.c:913:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 913 | sprintf (LOCAL->buf,"Not a MX-format mailbox: %.80s",mailbox); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:42] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:42] | ^ [00:02:42] mx.c:914:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 914 | MM_LOG (LOCAL->buf,ERROR); [00:02:42] | ^~~~~~~~~~ [00:02:42] mx.c:62:15: note: expanded from macro 'LOCAL' [00:02:42] 62 | #define LOCAL ((MXLOCAL *) stream->local) [00:02:42] | ^ [00:02:42] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:42] 1605 | void mm_log (char *string,long errflg); [00:02:42] | ^ [00:02:42] mx.c:921:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 921 | if (!(ret = ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:42] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:922:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 922 | mail_sequence (stream,sequence)))); [00:02:42] | ^~~~~~~~ [00:02:42] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:42] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:42] | ^ [00:02:42] mx.c:939:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:42] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] 940 | >= 0)) { [00:02:42] | ~~~~~ [00:02:42] mx.c:939:10: note: place parentheses around the assignment to silence this warning [00:02:42] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:42] | ^ [00:02:42] | ( [00:02:42] 940 | >= 0)) { [00:02:42] | [00:02:42] | ) [00:02:42] mx.c:939:10: note: use '==' to turn this assignment into an equality comparison [00:02:42] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:944:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 944 | d.chunk = LOCAL->buf; [00:02:42] | ^ ~~~~~~~~~~ [00:02:42] mx.c:949:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 949 | if (j = elt->user_flags) do [00:02:42] | ~~^~~~~~~~~~~~~~~~~ [00:02:42] mx.c:949:10: note: place parentheses around the assignment to silence this warning [00:02:42] 949 | if (j = elt->user_flags) do [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:949:10: note: use '==' to turn this assignment into an equality comparison [00:02:42] 949 | if (j = elt->user_flags) do [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:950:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:42] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:950:12: note: place parentheses around the assignment to silence this warning [00:02:42] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:950:12: note: use '==' to turn this assignment into an equality comparison [00:02:42] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:960:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:42] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:960:12: note: place parentheses around the assignment to silence this warning [00:02:42] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:960:12: note: use '==' to turn this assignment into an equality comparison [00:02:42] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:1003:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 1003 | if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); [00:02:42] | ^~~~~~~ [00:02:42] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:1003:35: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 1003 | if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); [00:02:42] | ^~~~~~~ [00:02:42] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:42] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:42] | ^ [00:02:42] mx.c:1038:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:42] 1038 | else if (date && !(ret = mail_parse_date (&elt,date))) { [00:02:42] | ^~~~ [00:02:42] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:42] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:42] | ^ [00:02:42] mx.c:1116:9: warning: initializing 'char *' with an expression of type 'const char[256]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:42] 1116 | char *s = name->d_name; [00:02:42] | ^ ~~~~~~~~~~~~ [00:02:42] mx.c:1117:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:42] | ~~^~~~~~ [00:02:42] mx.c:1117:12: note: place parentheses around the assignment to silence this warning [00:02:42] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:1117:12: note: use '==' to turn this assignment into an equality comparison [00:02:42] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; [00:02:42] | ^ [00:02:42] | == [00:02:42] mx.c:1188:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:42] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:42] | ~~^~~~~~~~~~~~~~~~~~~~~~~ [00:02:42] mx.c:1188:13: note: place parentheses around the assignment to silence this warning [00:02:42] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:42] | ^ [00:02:42] | ( ) [00:02:42] mx.c:1188:13: note: use '==' to turn this assignment into an equality comparison [00:02:42] 1188 | if (s = strchr (t = ++s,'\n')) { [00:02:42] | ^ [00:02:42] | == [00:02:42] 52 warnings generated. [00:02:42] `cat CCTYPE` -fPIC -DPIC -c `cat SHLIBFLAGS` -c `cat CFLAGS` mix.c -o mix.so [00:02:44] mix.c:334:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ~~^~~~~~~~~~~~~~~~ [00:02:44] mix.c:334:9: note: place parentheses around the assignment to silence this warning [00:02:44] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:334:9: note: use '==' to turn this assignment into an equality comparison [00:02:44] 334 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:478:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:44] | ~~~~~^~~~~~~~~~~~~~~ [00:02:44] mix.c:478:14: note: place parentheses around the assignment to silence this warning [00:02:44] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:478:14: note: use '==' to turn this assignment into an equality comparison [00:02:44] 478 | if (dirp = opendir (tmp)) { /* open directory */ [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:481:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:44] | ~~^~~~~~~~~~~~~~~~ [00:02:44] mix.c:481:16: note: place parentheses around the assignment to silence this warning [00:02:44] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:481:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 481 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:527:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 527 | if (compare_cstring (old,"INBOX")) { [00:02:44] | ^~~ [00:02:44] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:527:30: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 527 | if (compare_cstring (old,"INBOX")) { [00:02:44] | ^~~~~~~ [00:02:44] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:529:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 529 | if (s = strrchr (tmp1,'/')) { [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:529:13: note: place parentheses around the assignment to silence this warning [00:02:44] 529 | if (s = strrchr (tmp1,'/')) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:529:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 529 | if (s = strrchr (tmp1,'/')) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:567:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ~~^~~~~~~~~~~~~~~~ [00:02:44] mix.c:567:13: note: place parentheses around the assignment to silence this warning [00:02:44] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:567:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 567 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:590:26: warning: passing 'const char[256]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:44] 590 | return mix_dirfmttest (name->d_name); [00:02:44] | ^~~~~~~~~~~~ [00:02:44] mix.c:285:28: note: passing argument to parameter 'name' here [00:02:44] 285 | long mix_dirfmttest (char *name) [00:02:44] | ^ [00:02:44] mix.c:606:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 606 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:44] | ^~~~~~~~~~~~~~~ [00:02:44] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:606:53: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 606 | stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); [00:02:44] | ^~~~~~~ [00:02:44] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:608:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 608 | LOCAL->buf = (char *) fs_get (CHUNKSIZE); [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:611:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 611 | mix_dir (LOCAL->buf,stream->mailbox); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:163:22: note: passing argument to parameter 'dst' here [00:02:44] 163 | char *mix_dir (char *dst,char *name); [00:02:44] | ^ [00:02:44] mix.c:613:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 613 | stream->mailbox = cpystr (LOCAL->buf); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./misc.h:84:27: note: passing argument to parameter 'string' here [00:02:44] 84 | char *cpystr (const char *string); [00:02:44] | ^ [00:02:44] mix.c:616:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 616 | ((LOCAL->mfd = open (mix_file (LOCAL->buf,stream->mailbox,MIXMETA), [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:44] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:44] | ^ [00:02:44] mix.c:619:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 619 | ((LOCAL->mfd = open (mix_file (LOCAL->buf,stream->mailbox,MIXMETA), [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:44] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:44] | ^ [00:02:44] mix.c:627:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 627 | LOCAL->index = cpystr (mix_file (LOCAL->buf,stream->mailbox,MIXINDEX)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:44] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:44] | ^ [00:02:44] mix.c:628:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 628 | LOCAL->status = cpystr (mix_file (LOCAL->buf,stream->mailbox,MIXSTATUS)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:44] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:44] | ^ [00:02:44] mix.c:629:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 629 | LOCAL->sortcache = cpystr (mix_file (LOCAL->buf,stream->mailbox, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:164:23: note: passing argument to parameter 'dst' here [00:02:44] 164 | char *mix_file (char *dst,char *dir,char *name); [00:02:44] | ^ [00:02:44] mix.c:634:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:44] | ~~~~~~~^~~~~~~~~~~~~~~~ [00:02:44] mix.c:634:16: note: place parentheses around the assignment to silence this warning [00:02:44] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:634:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 634 | if (silent = stream->silent) LOCAL->internal = T; [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:718:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 718 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:730:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 730 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = j) + 1); [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:735:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 735 | !strncmp (LOCAL->buf,MSGTOK,MSGTSZ) && [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:44] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:44] | ^ [00:02:44] mix.c:752:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/string.h:127:27: note: passing argument to parameter here [00:02:44] 127 | char *strpbrk(const char *, const char *) __pure; [00:02:44] | ^ [00:02:44] mix.c:752:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:752:11: note: place parentheses around the assignment to silence this warning [00:02:44] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:752:11: note: use '==' to turn this assignment into an equality comparison [00:02:44] 752 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:781:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 781 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:805:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 805 | d.chunk = LOCAL->buf; /* initial buffer chunk */ [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:830:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 830 | if (((flags & ST_UID) ? mail_uid_sequence (stream,sequence) : [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:44] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:831:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 831 | mail_sequence (stream,sequence)) && [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:44] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:963:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:44] | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:963:16: note: place parentheses around the assignment to silence this warning [00:02:44] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:963:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 963 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:973:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 973 | sprintf (LOCAL->buf,"Can't copy new mail at message: %lu",i - 1); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:974:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 974 | MM_LOG (LOCAL->buf,WARN); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:988:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 989 | (LOCAL->internal ? NIL : LONGT))) { [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:988:13: note: place parentheses around the assignment to silence this warning [00:02:44] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ^ [00:02:44] | ( [00:02:44] 989 | (LOCAL->internal ? NIL : LONGT))) { [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:988:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 988 | if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1033:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1033 | mail_uid_sequence (stream,sequence) : [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:44] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:1034:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1034 | mail_sequence (stream,sequence))) || stream->rdonly); [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:44] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:1036:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1037 | LOCAL->internal ? NIL : LONGT)) { [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1036:18: note: place parentheses around the assignment to silence this warning [00:02:44] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ^ [00:02:44] | ( [00:02:44] 1037 | LOCAL->internal ? NIL : LONGT)) { [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:1036:18: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1036 | else if (statf = mix_parse (stream,&idxf,LONGT, [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1085:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1085 | sprintf (LOCAL->buf,"Can't locate mix message file %.08lx", [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1087:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1087 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1096:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1096 | else if (mix_file_data (LOCAL->buf,stream->mailbox,cur->fileno) && [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:1098:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1098 | truncate (LOCAL->buf,0) : unlink (LOCAL->buf))) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:456:27: note: passing argument to parameter here [00:02:44] 456 | int truncate(const char *, __off_t); [00:02:44] | ^ [00:02:44] mix.c:1098:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1098 | truncate (LOCAL->buf,0) : unlink (LOCAL->buf))) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/unistd.h:376:25: note: passing argument to parameter here [00:02:44] 376 | int unlink(const char *); [00:02:44] | ^ [00:02:44] mix.c:1099:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1099 | sprintf (LOCAL->buf, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1102:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1102 | MM_LOG (LOCAL->buf,WARN); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1114:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ~~^~~~~~~~~~~~~~~~ [00:02:44] mix.c:1114:13: note: place parentheses around the assignment to silence this warning [00:02:44] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1114:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1114 | if (a = (void *) names) fs_give ((void **) &a); [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1123:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1123:15: note: place parentheses around the assignment to silence this warning [00:02:44] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1123:15: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1123 | if (ret = mix_index_update (stream,idxf,NIL)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1135:26: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1135 | if (nexp) sprintf (s = LOCAL->buf,"Expunged %lu messages",nexp); [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:1137:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1137 | sprintf (s=LOCAL->buf,"Reclaimed %lu bytes of expunged space",reclaimed); [00:02:44] | ^~~~~~~~~~~ [00:02:44] mix.c:1157:23: warning: passing 'const char[256]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:44] 1157 | if (mix_dirfmttest (name->d_name)) { [00:02:44] | ^~~~~~~~~~~~ [00:02:44] mix.c:285:28: note: passing argument to parameter 'name' here [00:02:44] 285 | long mix_dirfmttest (char *name) [00:02:44] | ^ [00:02:44] mix.c:1158:18: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:44] 1158 | for (c = *(s = name->d_name + sizeof (MIXNAME) - 1); c && isxdigit (c); [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1174:9: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:44] 1174 | char *n1 = (*d1)->d_name + sizeof (MIXNAME) - 1; [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1175:9: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] [00:02:44] 1175 | char *n2 = (*d2)->d_name + sizeof (MIXNAME) - 1; [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1227:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1227 | mix_file_data (LOCAL->buf,stream->mailbox,burp->fileno); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:1231:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1231 | if (stat (LOCAL->buf,&sbuf)) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/sys/stat.h:396:33: note: passing argument to parameter here [00:02:44] 396 | int stat(const char * __restrict, struct stat * __restrict); [00:02:44] | ^ [00:02:44] mix.c:1232:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1232 | sprintf (LOCAL->buf,staterr,burp->name,strerror (errno)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1233:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1233 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1236:54: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1236 | else if (mix_burp_check (&burp->set,sbuf.st_size,LOCAL->buf)) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:145:55: note: passing argument to parameter 'file' here [00:02:44] 145 | long mix_burp_check (SEARCHSET *set,size_t size,char *file); [00:02:44] | ^ [00:02:44] mix.c:1240:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:456:27: note: passing argument to parameter here [00:02:44] 456 | int truncate(const char *, __off_t); [00:02:44] | ^ [00:02:44] mix.c:1240:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1240:20: note: place parentheses around the assignment to silence this warning [00:02:44] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1240:20: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1240 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1243:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1243 | sprintf (LOCAL->buf,truncerr,burp->name,strerror (errno)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1244:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1244 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1249:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1249 | else if (((fd = open (LOCAL->buf,O_RDWR,NIL)) < 0) || [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/fcntl.h:406:22: note: passing argument to parameter here [00:02:44] 406 | int open(const char *, int, ...); [00:02:44] | ^ [00:02:44] mix.c:1251:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1251 | sprintf (LOCAL->buf,"Error opening mix message file %.80s: %.80s", [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1253:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1253 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1257:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1257 | sprintf (LOCAL->buf,staterr,burp->name,strerror (errno)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1258:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1258 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1263:52: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1263 | else if (mix_burp_check (&burp->set,sbuf.st_size,LOCAL->buf)) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:145:55: note: passing argument to parameter 'file' here [00:02:44] 145 | long mix_burp_check (SEARCHSET *set,size_t size,char *file); [00:02:44] | ^ [00:02:44] mix.c:1268:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1268 | strncmp (LOCAL->buf,MSGTOK,MSGTSZ)) { [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/string.h:116:26: note: passing argument to parameter here [00:02:44] 116 | int strncmp(const char *, const char *, size_t) __pure; [00:02:44] | ^ [00:02:44] mix.c:1269:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1269 | sprintf (LOCAL->buf,"Bad message token in mix message file at %lu", [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1271:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1271 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1311:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1311 | sprintf (LOCAL->buf,truncerr,burp->name,strerror (errno)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1312:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1312 | MM_LOG (LOCAL->buf,WARN); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:1344:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1344 | } while (set = set->next); [00:02:44] | ~~~~^~~~~~~~~~~ [00:02:44] mix.c:1344:16: note: place parentheses around the assignment to silence this warning [00:02:44] 1344 | } while (set = set->next); [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1344:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1344 | } while (set = set->next); [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1361:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1361 | long ret = mix_isvalid (mailbox,LOCAL->buf); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:234:36: note: passing argument to parameter 'meta' here [00:02:44] 234 | long mix_isvalid (char *name,char *meta) [00:02:44] | ^ [00:02:44] mix.c:1379:68: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1379 | else if (!(ret = ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1763:59: note: passing argument to parameter 'sequence' here [00:02:44] 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:1380:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1380 | mail_sequence (stream,sequence)))); [00:02:44] | ^~~~~~~~ [00:02:44] ./mail.h:1762:55: note: passing argument to parameter 'sequence' here [00:02:44] 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); [00:02:44] | ^ [00:02:44] mix.c:1382:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1383 | !astream->rdonly && [00:02:44] | ~~~~~~~~~~~~~~~~~~~ [00:02:44] 1384 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1385 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1386 | LONGT : NIL) { [00:02:44] | ~~~~~~~~~~~ [00:02:44] mix.c:1382:16: note: place parentheses around the assignment to silence this warning [00:02:44] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ^ [00:02:44] | ( [00:02:44] 1383 | !astream->rdonly && [00:02:44] 1384 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:44] 1385 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:44] 1386 | LONGT : NIL) { [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:1382:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1382 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1397:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1397 | sprintf (local->buf,MSRFMT,MSGTOK,(unsigned long) 0,0,0,0,0,0,0,'+',0,0, [00:02:44] | ^~~~~~~~~~ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1399:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1399 | hdrsize = strlen (local->buf); [00:02:44] | ^~~~~~~~~~ [00:02:44] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:44] 105 | size_t strlen(const char *) __pure; [00:02:44] | ^ [00:02:44] mix.c:1408:43: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:44] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:44] | ^~~~~ [00:02:44] mix.c:157:55: note: passing argument to parameter 'size' here [00:02:44] 157 | FILE *mix_data_open (MAILSTREAM *stream,int *fd,long *size, [00:02:44] | ^ [00:02:44] mix.c:1408:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:44] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1408:14: note: place parentheses around the assignment to silence this warning [00:02:44] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1408:14: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1408 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1420:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1420 | if ((LOCAL->msgfd = open (mix_file_data (LOCAL->buf, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:1432:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1432 | d.chunk = LOCAL->buf; [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:1437:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1437 | if (j = elt->user_flags) do [00:02:44] | ~~^~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1437:12: note: place parentheses around the assignment to silence this warning [00:02:44] 1437 | if (j = elt->user_flags) do [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1437:12: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1437 | if (j = elt->user_flags) do [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1460:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1460 | if (ret = (mix_meta_update (astream) && [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1461 | mix_index_update (astream,idxf,LONGT))) { [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1460:10: note: place parentheses around the assignment to silence this warning [00:02:44] 1460 | if (ret = (mix_meta_update (astream) && [00:02:44] | ^ [00:02:44] | ( [00:02:44] 1461 | mix_index_update (astream,idxf,LONGT))) { [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:1460:10: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1460 | if (ret = (mix_meta_update (astream) && [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1524:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:44] | ^~~~~~~ [00:02:44] ./misc.h:106:37: note: passing argument to parameter 's1' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:1524:40: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:44] | ^~~~~~~ [00:02:44] ./misc.h:106:55: note: passing argument to parameter 's2' here [00:02:44] 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); [00:02:44] | ^ [00:02:44] mix.c:1524:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1525 | NIL : mix_create (NIL,"INBOX")) [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1524:13: note: place parentheses around the assignment to silence this warning [00:02:44] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:44] | ^ [00:02:44] | ( [00:02:44] 1525 | NIL : mix_create (NIL,"INBOX")) [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:1524:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1524 | if (ret = compare_cstring (mailbox,"INBOX") ? [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1541:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1542 | !astream->rdonly && [00:02:44] | ~~~~~~~~~~~~~~~~~~~ [00:02:44] 1543 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1544 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] 1545 | LONGT : NIL) { [00:02:44] | ~~~~~~~~~~~ [00:02:44] mix.c:1541:13: note: place parentheses around the assignment to silence this warning [00:02:44] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ^ [00:02:44] | ( [00:02:44] 1542 | !astream->rdonly && [00:02:44] 1543 | (((MIXLOCAL *) astream->local)->expok = T) && [00:02:44] 1544 | (statf = mix_parse (astream,&idxf,LONGT,NIL))) ? [00:02:44] 1545 | LONGT : NIL) { [00:02:44] | [00:02:44] | ) [00:02:44] mix.c:1541:13: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1541 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1555:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1555 | sprintf (local->buf,MSRFMT,MSGTOK,(unsigned long) 0,0,0,0,0,0,0,'+',0,0, [00:02:44] | ^~~~~~~~~~ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:1557:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1557 | hdrsize = strlen (local->buf); [00:02:44] | ^~~~~~~~~~ [00:02:44] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:44] 105 | size_t strlen(const char *) __pure; [00:02:44] | ^ [00:02:44] mix.c:1561:45: warning: passing 'unsigned long *' to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] [00:02:44] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:44] | ^~~~~ [00:02:44] mix.c:157:55: note: passing argument to parameter 'size' here [00:02:44] 157 | FILE *mix_data_open (MAILSTREAM *stream,int *fd,long *size, [00:02:44] | ^ [00:02:44] mix.c:1561:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:44] | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1561:16: note: place parentheses around the assignment to silence this warning [00:02:44] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1561:16: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1561 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1569:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1569 | else if (date && !(ret = mail_parse_date (&elt,date))) { [00:02:44] | ^~~~ [00:02:44] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:44] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:44] | ^ [00:02:44] mix.c:1576:30: warning: passing 'char[1024]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1576 | mail_parse_date (&elt,tmp); [00:02:44] | ^~~ [00:02:44] ./mail.h:1696:56: note: passing argument to parameter 'string' here [00:02:44] 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); [00:02:44] | ^ [00:02:44] mix.c:1750:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1750:14: note: place parentheses around the assignment to silence this warning [00:02:44] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1750:14: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1750 | else if (s = mix_meta_slurp (stream,&i)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1757:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1757:8: note: place parentheses around the assignment to silence this warning [00:02:44] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1757:8: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1757 | if (s = strstr (t = s,"\015\012")) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1786:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:1786:14: note: place parentheses around the assignment to silence this warning [00:02:44] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:1786:14: note: use '==' to turn this assignment into an equality comparison [00:02:44] 1786 | if (t = strchr (k = t,' ')) *t++ = '\0'; [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:1831:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1831 | while ((s = mix_read_record (*idxf,LOCAL->buf,LOCAL->buflen,"index")) && [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:44] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:44] | ^ [00:02:44] mix.c:1973:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 1973 | if (stat (mix_file_data (LOCAL->buf,stream->mailbox, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:2055:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2055 | sprintf (LOCAL->buf, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:2058:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2058 | MM_LOG (LOCAL->buf,ERROR); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./mail.h:1605:20: note: passing argument to parameter 'string' here [00:02:44] 1605 | void mm_log (char *string,long errflg); [00:02:44] | ^ [00:02:44] mix.c:2068:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2068 | while ((t = s = mix_read_record (statf,LOCAL->buf,LOCAL->buflen, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:44] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:44] | ^ [00:02:44] mix.c:2164:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2164 | LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2169:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2169 | (read (LOCAL->mfd,s = LOCAL->buf,sbuf.st_size) != sbuf.st_size)) [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:2204:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2204 | sprintf (LOCAL->buf,SEQFMT,LOCAL->metaseq = mix_modseq (LOCAL->metaseq)); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:2205:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2205 | sprintf (LOCAL->buf + strlen (LOCAL->buf),MTAFMT, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:44] 105 | size_t strlen(const char *) __pure; [00:02:44] | ^ [00:02:44] mix.c:2205:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2205 | sprintf (LOCAL->buf + strlen (LOCAL->buf),MTAFMT, [00:02:44] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/stdio.h:301:33: note: passing argument to parameter here [00:02:44] 301 | int (sprintf)(char * __restrict, const char * __restrict, ...); [00:02:44] | ^ [00:02:44] mix.c:2207:56: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2207 | for (i = 0, c = 'K', s = ss = LOCAL->buf + strlen (LOCAL->buf); [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] /usr/include/string.h:105:28: note: passing argument to parameter here [00:02:44] 105 | size_t strlen(const char *) __pure; [00:02:44] | ^ [00:02:44] mix.c:2208:26: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2208 | (i < NUSERFLAGS) && (t = stream->user_flags[i]); ++i) { [00:02:44] | ^ ~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2222:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2222 | ret = (write (LOCAL->mfd,LOCAL->buf,i) == i) ? LONGT : NIL; [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] ./env_unix.h:86:31: note: passing argument to parameter 'buf' here [00:02:44] 86 | long safe_write (int fd,char *buf,long nbytes); [00:02:44] | ^ [00:02:44] mix.c:2417:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2417 | if ((*fd = open (mix_file_data (LOCAL->buf,stream->mailbox,LOCAL->newmsg), [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:2434:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2434 | (LOCAL->buf,stream->mailbox, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:165:28: note: passing argument to parameter 'dst' here [00:02:44] 165 | char *mix_file_data (char *dst,char *dir,unsigned long data); [00:02:44] | ^ [00:02:44] mix.c:2458:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:44] | ~~~~~^~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2458:14: note: place parentheses around the assignment to silence this warning [00:02:44] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:2458:14: note: use '==' to turn this assignment into an equality comparison [00:02:44] 2458 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:2499:44: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2499 | while ((s = t = mix_read_record (srtcf,LOCAL->buf,LOCAL->buflen, [00:02:44] | ^~~~~~~~~~ [00:02:44] mix.c:108:15: note: expanded from macro 'LOCAL' [00:02:44] 108 | #define LOCAL ((MIXLOCAL *) stream->local) [00:02:44] | ^ [00:02:44] mix.c:161:38: note: passing argument to parameter 'buf' here [00:02:44] 161 | char *mix_read_record (FILE *f,char *buf,unsigned long buflen,char *type); [00:02:44] | ^ [00:02:44] mix.c:2522:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2522:15: note: place parentheses around the assignment to silence this warning [00:02:44] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:2522:15: note: use '==' to turn this assignment into an equality comparison [00:02:44] 2522 | if (i = mail_msgno (stream,uid)) { [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:2598:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2598 | LOCAL->buf = (char *) [00:02:44] | ^ ~~~~~~~~ [00:02:44] 2599 | fs_get ((LOCAL->buflen = reflen) + 1); [00:02:44] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2610:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2610 | for (s = LOCAL->buf,sl = NIL, [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:2618:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] [00:02:44] 2618 | sl->text.data = cpystr (s); [00:02:44] | ^ ~~~~~~~~~~ [00:02:44] mix.c:2701:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 2701 | if (sl = s->references) /* count length of references */ [00:02:44] | ~~~^~~~~~~~~~~~~~~ [00:02:44] mix.c:2701:9: note: place parentheses around the assignment to silence this warning [00:02:44] 2701 | if (sl = s->references) /* count length of references */ [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:2701:9: note: use '==' to turn this assignment into an equality comparison [00:02:44] 2701 | if (sl = s->references) /* count length of references */ [00:02:44] | ^ [00:02:44] | == [00:02:44] mix.c:2756:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] [00:02:44] 2756 | if (s = strchr (buf,'\012')) { [00:02:44] | ~~^~~~~~~~~~~~~~~~~~~~~ [00:02:44] mix.c:2756:11: note: place parentheses around the assignment to silence this warning [00:02:44] 2756 | if (s = strchr (buf,'\012')) { [00:02:44] | ^ [00:02:44] | ( ) [00:02:44] mix.c:2756:11: note: use '==' to turn this assignment into an equality comparison [00:02:44] 2756 | if (s = strchr (buf,'\012')) { [00:02:44] | ^ [00:02:44] | == [00:02:44] 119 warnings generated. [00:02:44] `cat CCTYPE` -shared -Wl,-soname,`cat SHLIBNAME` -o `cat SHLIBNAME` osdep.so mail.so misc.so newsrc.so smanager.so utf8.so utf8aux.so siglocal.so dummy.so pseudo.so netmsg.so flstring.so fdstring.so rfc822.so nntp.so smtp.so imap4r1.so pop3.so unix.so mbx.so mmdf.so tenex.so mtx.so news.so phile.so mh.so mx.so mix.so `cat LDFLAGS` [00:02:45] ln -fs `cat SHLIBNAME` libc-client.so [00:02:45] `cat CCTYPE` -shared -Wl,-soname,`cat SHLIBNAME` -o `cat SHLIBNAME` osdep.so mail.so misc.so newsrc.so smanager.so utf8.so utf8aux.so siglocal.so dummy.so pseudo.so netmsg.so flstring.so fdstring.so rfc822.so nntp.so smtp.so imap4r1.so pop3.so unix.so mbx.so mmdf.so tenex.so mtx.so news.so phile.so mh.so mx.so mix.so `cat LDFLAGS` [00:02:45] ln -fs `cat SHLIBNAME` libc-client.so [00:02:45] echo bsf > OSTYPE [00:02:45] touch rebuild [00:02:45] sh -c 'rm -rf rebuild || true' [00:02:45] =========================================================================== [00:02:45] =================================================== [00:02:45] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:02:46] ===> panda-cclient-20130621_3 depends on file: /usr/local/lib/libcrypto.so.12 - found [00:02:46] =========================================================================== [00:02:46] =================================================== [00:02:46] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:02:46] ===> Staging for panda-cclient-20130621_3 [00:02:46] ===> Generating temporary packing list [00:02:46] /bin/mkdir -p /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/c-client.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/dummy.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/env.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/env_unix.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/fdstring.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/flockcyg.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/flocksim.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/flstring.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/fs.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/ftl.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/imap4r1.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/linkage.c /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/linkage.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/mail.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/misc.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/netmsg.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/newsrc.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/nl.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/nntp.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/osdep.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/pseudo.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/rfc822.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/smtp.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/sslio.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/tcp.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/tcp_unix.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/unix.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/utf8.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/utf8aux.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -s -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/libc-client.so.2010 /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/lib [00:02:46] /bin/ln -sf libc-client.so.2010 /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/lib/libc-client.so [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/c-client.a /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/lib/libc-client.a [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/CFLAGS /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/LDFLAGS /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/panda-imap-3452f1598a8b4eeb44b38aead1c1598e379b05de/c-client/OSCFLAGS /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] install -m 0644 /wrkdirs/usr/ports/mail/panda-cclient/work/portrevision.h /wrkdirs/usr/ports/mail/panda-cclient/work/stage/usr/local/include/c-client [00:02:46] ====> Compressing man pages (compress-man) [00:02:46] =========================================================================== [00:02:47] =================================================== [00:02:47] ===== env: 'PKG_NOTES=ports_top_git_hash ports_top_checkout_unclean port_checkout_unclean' 'PKG_NOTE_ports_top_git_hash=1d8282cf0d487fbe69084c8a5abfdb361c840b53' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_checkout_unclean=no' NO_DEPENDS=yes USER=root UID=0 GID=0 [00:02:47] ===> Building packages for panda-cclient-20130621_3 [00:02:47] ===> Building panda-cclient-20130621_3 [00:02:52] =========================================================================== [00:02:53] =>> Cleaning up wrkdir [00:02:53] ===> Cleaning for panda-cclient-20130621_3 [00:02:54] build of mail/panda-cclient | panda-cclient-20130621_3 ended at 2026-04-09T17:32:08+02:00 [00:02:54] build time: 00:02:54 [00:02:54] times end [shell] (user/sys/real): 0m0.023s 0m0.036s 2m54.000s [00:02:54] times end [child] (user/sys/real): 0m57.288s 0m7.135s 2m54.000s