=>> Building mail/panda-imap build started at Thu Jan 22 08:14:34 EST 2026 port directory: /usr/ports/mail/panda-imap package name: panda-imap-20130621_4 building for: FreeBSD pkg.DaveG.ca 14.3-RELEASE-p7 FreeBSD 14.3-RELEASE-p7 1403000 amd64 maintained by: thierry@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 3273 Aug 27 2024 /usr/ports/mail/panda-imap/Makefile Ports top last git commit: 076a295eb33c Ports top unclean checkout: no Port dir last git commit: dd20c06e00c3 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1403000 Job Id: 11 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1403000 UNAME_v=FreeBSD 14.3-RELEASE-p7 1403000 UNAME_r=14.3-RELEASE-p7 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_14_3_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_14_3_x64-HEAD-ALL/11/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_14_3_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_14_3_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for panda-imap-20130621_4: DOCS=on: Build and/or install documentation SSL=on: SSL protocol support SSL_AND_PLAINTEXT=off: Allow plain text passwords and SSL ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- thierry@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/mail/panda-imap/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/panda-imap/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/panda-imap/work/.cache HOME=/wrkdirs/usr/ports/mail/panda-imap/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/panda-imap/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/panda-imap/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/mail/panda-imap/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/panda-imap/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/panda-imap/work/.cache HOME=/wrkdirs/usr/ports/mail/panda-imap/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/panda-imap/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/panda-imap/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=" " 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" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" DOCS="" NO_DOCS="@comment " SSL="" NO_SSL="@comment " SSL_AND_PLAINTEXT="@comment " NO_SSL_AND_PLAINTEXT="" OSREL=14.3 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/panda-imap" EXAMPLESDIR="share/examples/panda-imap" DATADIR="share/panda-imap" WWWDIR="www/panda-imap" ETCDIR="etc/panda-imap" --End PLIST_SUB-- --SUB_LIST-- DOCS="" NO_DOCS="@comment " SSL="" NO_SSL="@comment " SSL_AND_PLAINTEXT="@comment " NO_SSL_AND_PLAINTEXT="" PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/panda-imap DOCSDIR=/usr/local/share/doc/panda-imap EXAMPLESDIR=/usr/local/share/examples/panda-imap WWWDIR=/usr/local/www/panda-imap ETCDIR=/usr/local/etc/panda-imap --End SUB_LIST-- ---Begin make.conf--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited pipebuf (-y) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> panda-imap-20130621_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.5.1.pkg [pkg.DaveG.ca] Installing pkg-2.5.1... [pkg.DaveG.ca] Extracting pkg-2.5.1: .......... done ===> panda-imap-20130621_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of panda-imap-20130621_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by panda-imap-20130621_4 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by panda-imap-20130621_4 for building => SHA256 Checksum OK for jonabbey-panda-imap-20130621-01eaaa96c85c5791d5cffdf20c360b329bc44d88_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by panda-imap-20130621_4 for building ===> Extracting for panda-imap-20130621_4 => SHA256 Checksum OK for jonabbey-panda-imap-20130621-01eaaa96c85c5791d5cffdf20c360b329bc44d88_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for panda-imap-20130621_4 ===> Applying FreeBSD patches for panda-imap-20130621_4 from /usr/ports/mail/panda-imap/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> panda-imap-20130621_4 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> panda-imap-20130621_4 depends on file: /usr/local/bin/ccache - found ===> Returning to build of panda-imap-20130621_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> panda-imap-20130621_4 depends on shared library: libc-client.so.2010 - not found ===> Installing existing package /packages/All/panda-cclient-20130621_3.pkg [pkg.DaveG.ca] Installing panda-cclient-20130621_3... [pkg.DaveG.ca] Extracting panda-cclient-20130621_3: .......... done ===== Message from panda-cclient-20130621_3: -- Warning: You have chosen to include SSL support. Applications/ports that use the cclient library but do not support SSL may stop working or have problems linking. Linking them explicitly with ssl (-lssl -lcrypto) may or may not help. ===> panda-imap-20130621_4 depends on shared library: libc-client.so.2010 - found (/usr/local/lib/libc-client.so.2010) ===> Returning to build of panda-imap-20130621_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for panda-imap-20130621_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for panda-imap-20130621_4 Your imap-uw port matches the version of your cclient port. Fine. SSL check passed. We want SSL support, and cclient has it. Good. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building in full compliance with RFC 3501 security + requirements: ++ TLS/SSL encryption is supported ++ Unencrypted plaintext passwords are prohibited +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Applying an process to sources... tools/an "ln -s" src/c-client c-client tools/an "ln -s" src/ansilib c-client tools/an "ln -s" src/charset c-client tools/an "ln -s" src/osdep/unix c-client tools/an "ln -s" src/mtest mtest tools/an "ln -s" src/ipopd ipopd tools/an "ln -s" src/imapd imapd tools/an "ln -s" src/mailutil mailutil tools/an "ln -s" src/mlock mlock tools/an "ln -s" src/dmail dmail tools/an "ln -s" src/tmail tmail ln -s tools/an . touch ip6 make build EXTRACFLAGS='-I/usr/local/include/c-client' EXTRALDFLAGS='-L/usr/local/lib -lc-client' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix.nopwd IP=4 EXTRASPECIALS='' BUILDTYPE=bsf IP=6 PASSWDTYPE=pam SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib PAMLDFLAGS=-lpam" Building bundled tools... cd mtest;make cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c mtest.c -o mtest.o mtest.c:108:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 108 | if (suffix = strchr (tmp,',')) suffix[0] = '\0'; | ~~~~~~~^~~~~~~~~~~~~~~~~~ mtest.c:108:18: note: place parentheses around the assignment to silence this warning 108 | if (suffix = strchr (tmp,',')) suffix[0] = '\0'; | ^ | ( ) mtest.c:108:18: note: use '==' to turn this assignment into an equality comparison 108 | if (suffix = strchr (tmp,',')) suffix[0] = '\0'; | ^ | == mtest.c:121:10: 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] 121 | ucase (tmp); | ^~~ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ mtest.c:129:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 129 | if (s = sm_read (tmpx,&sdb)) { | ~~^~~~~~~~~~~~~~~~~~~~~ mtest.c:129:13: note: place parentheses around the assignment to silence this warning 129 | if (s = sm_read (tmpx,&sdb)) { | ^ | ( ) mtest.c:129:13: note: use '==' to turn this assignment into an equality comparison 129 | if (s = sm_read (tmpx,&sdb)) { | ^ | == mtest.c:132:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 132 | while (s = sm_read (tmpx,&sdb)); | ~~^~~~~~~~~~~~~~~~~~~~~ mtest.c:132:11: note: place parentheses around the assignment to silence this warning 132 | while (s = sm_read (tmpx,&sdb)); | ^ | ( ) mtest.c:132:11: note: use '==' to turn this assignment into an equality comparison 132 | while (s = sm_read (tmpx,&sdb)); | ^ | == mtest.c:162:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 162 | if (arg = strchr (cmd,' ')) *arg++ = '\0'; | ~~~~^~~~~~~~~~~~~~~~~~ mtest.c:162:13: note: place parentheses around the assignment to silence this warning 162 | if (arg = strchr (cmd,' ')) *arg++ = '\0'; | ^ | ( ) mtest.c:162:13: note: use '==' to turn this assignment into an equality comparison 162 | if (arg = strchr (cmd,' ')) *arg++ = '\0'; | ^ | == mtest.c:163: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] 163 | switch (*ucase (cmd)) { /* dispatch based on command */ | ^~~ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ mtest.c:202:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 202 | if (s = sm_read (tmp,&sdb)) { | ~~^~~~~~~~~~~~~~~~~~~~ mtest.c:202:8: note: place parentheses around the assignment to silence this warning 202 | if (s = sm_read (tmp,&sdb)) { | ^ | ( ) mtest.c:202:8: note: use '==' to turn this assignment into an equality comparison 202 | if (s = sm_read (tmp,&sdb)) { | ^ | == mtest.c:205:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 205 | while (s = sm_read (tmp,&sdb)); | ~~^~~~~~~~~~~~~~~~~~~~ mtest.c:205:13: note: place parentheses around the assignment to silence this warning 205 | while (s = sm_read (tmp,&sdb)); | ^ | ( ) mtest.c:205:13: note: use '==' to turn this assignment into an equality comparison 205 | while (s = sm_read (tmp,&sdb)); | ^ | == mtest.c:387: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] 387 | mail_parse_date (&selt,ov->date); | ^~~~~~~~ /usr/local/include/c-client/mail.h:1696:56: note: passing argument to parameter 'string' here 1696 | long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); | ^ mtest.c:402:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 402 | if (i = elt->user_flags) { | ~~^~~~~~~~~~~~~~~~~ mtest.c:402:11: note: place parentheses around the assignment to silence this warning 402 | if (i = elt->user_flags) { | ^ | ( ) mtest.c:402:11: note: use '==' to turn this assignment into an equality comparison 402 | if (i = elt->user_flags) { | ^ | == mtest.c:440:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 440 | if (i = cache->user_flags) { | ~~^~~~~~~~~~~~~~~~~~~ mtest.c:440:9: note: place parentheses around the assignment to silence this warning 440 | if (i = cache->user_flags) { | ^ | ( ) mtest.c:440:9: note: use '==' to turn this assignment into an equality comparison 440 | if (i = cache->user_flags) { | ^ | == mtest.c:477:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 477 | if (par = body->parameter) do | ~~~~^~~~~~~~~~~~~~~~~ mtest.c:477:13: note: place parentheses around the assignment to silence this warning 477 | if (par = body->parameter) do | ^ | ( ) mtest.c:477:13: note: use '==' to turn this assignment into an equality comparison 477 | if (par = body->parameter) do | ^ | == mtest.c:479:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 479 | while (par = par->next); | ~~~~^~~~~~~~~~~ mtest.c:479:16: note: place parentheses around the assignment to silence this warning 479 | while (par = par->next); | ^ | ( ) mtest.c:479:16: note: use '==' to turn this assignment into an equality comparison 479 | while (par = par->next); | ^ | == mtest.c:534:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 534 | if (i = imap_cap (stream)->auth) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:534:8: note: place parentheses around the assignment to silence this warning 534 | if (i = imap_cap (stream)->auth) { | ^ | ( ) mtest.c:534:8: note: use '==' to turn this assignment into an equality comparison 534 | if (i = imap_cap (stream)->auth) { | ^ | == mtest.c:537:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 537 | while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:537:16: note: place parentheses around the assignment to silence this warning 537 | while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { | ^ | ( ) mtest.c:537:16: note: use '==' to turn this assignment into an equality comparison 537 | while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { | ^ | == mtest.c:583:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 583 | if (i = imap_cap (stream)->extlevel) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:583:8: note: place parentheses around the assignment to silence this warning 583 | if (i = imap_cap (stream)->extlevel) { | ^ | ( ) mtest.c:583:8: note: use '==' to turn this assignment into an equality comparison 583 | if (i = imap_cap (stream)->extlevel) { | ^ | == mtest.c:719:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 719 | if (s = strchr (user,'\n')) *s = '\0'; | ~~^~~~~~~~~~~~~~~~~~~~ mtest.c:719:11: note: place parentheses around the assignment to silence this warning 719 | if (s = strchr (user,'\n')) *s = '\0'; | ^ | ( ) mtest.c:719:11: note: use '==' to turn this assignment into an equality comparison 719 | if (s = strchr (user,'\n')) *s = '\0'; | ^ | == mtest.c:802: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] 802 | msg->date = (char *) fs_get (1+strlen (line)); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:803: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] 803 | strcpy (msg->date,line); | ^~~~~~~~~ /usr/include/string.h:87:31: note: passing argument to parameter here 87 | char *strcpy(char * __restrict, const char * __restrict); | ^ mtest.c:806:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 806 | if (stream = smtp_open (hostlist,debug)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:806:16: note: place parentheses around the assignment to silence this warning 806 | if (stream = smtp_open (hostlist,debug)) { | ^ | ( ) mtest.c:806:16: note: use '==' to turn this assignment into an equality comparison 806 | if (stream = smtp_open (hostlist,debug)) { | ^ | == mtest.c:813:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 813 | if (stream = nntp_open (newslist,debug)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtest.c:813:16: note: place parentheses around the assignment to silence this warning 813 | if (stream = nntp_open (newslist,debug)) { | ^ | ( ) mtest.c:813:16: note: use '==' to turn this assignment into an equality comparison 813 | if (stream = nntp_open (newslist,debug)) { | ^ | == 21 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o mtest mtest.o -L/usr/local/lib -lc-client cd ipopd;make cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c ipop2d.c -o ipop2d.o ipop2d.c:149: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] 149 | ucase (s); /* canonicalize case */ | ^ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ ipop2d.c:299:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 299 | if (s = strchr (u,'*')) *s++ = '\0'; | ~~^~~~~~~~~~~~~~~~ ipop2d.c:299:11: note: place parentheses around the assignment to silence this warning 299 | if (s = strchr (u,'*')) *s++ = '\0'; | ^ | ( ) ipop2d.c:299:11: note: use '==' to turn this assignment into an equality comparison 299 | if (s = strchr (u,'*')) *s++ = '\0'; | ^ | == ipop2d.c:358:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 358 | if (j = (stream = mail_open (stream,t,NIL)) ? stream->nmsgs : 0) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipop2d.c:358:9: note: place parentheses around the assignment to silence this warning 358 | if (j = (stream = mail_open (stream,t,NIL)) ? stream->nmsgs : 0) { | ^ | ( ) ipop2d.c:358:9: note: use '==' to turn this assignment into an equality comparison 358 | if (j = (stream = mail_open (stream,t,NIL)) ? stream->nmsgs : 0) { | ^ | == ipop2d.c:432:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 432 | if (t = mail_fetch_text (stream,msg[current],NIL,&i,FT_RETURNSTRINGSTRUCT)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipop2d.c:432:11: note: place parentheses around the assignment to silence this warning 432 | if (t = mail_fetch_text (stream,msg[current],NIL,&i,FT_RETURNSTRINGSTRUCT)) | ^ | ( ) ipop2d.c:432:11: note: use '==' to turn this assignment into an equality comparison 432 | if (t = mail_fetch_text (stream,msg[current],NIL,&i,FT_RETURNSTRINGSTRUCT)) | ^ | == 4 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o ipop2d ipop2d.o -L/usr/local/lib -lc-client cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c ipop3d.c -o ipop3d.o ipop3d.c:129: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] 129 | while (auth && compare_cstring (auth->name,"CRAM-MD5")) auth = auth->next; | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:37: note: passing argument to parameter 's1' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ ipop3d.c:129:48: 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] 129 | while (auth && compare_cstring (auth->name,"CRAM-MD5")) auth = auth->next; | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ ipop3d.c:186: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] 186 | ucase (s); /* canonicalize case */ | ^ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ ipop3d.c:195:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 195 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ~~^~~~~~~~~~~~~~~~~~~~~ ipop3d.c:195:8: note: place parentheses around the assignment to silence this warning 195 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ | ( ) ipop3d.c:195:8: note: use '==' to turn this assignment into an equality comparison 195 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ | == ipop3d.c:197:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 197 | if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipop3d.c:197:8: note: place parentheses around the assignment to silence this warning 197 | if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) | ^ | ( ) ipop3d.c:197:8: note: use '==' to turn this assignment into an equality comparison 197 | if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) | ^ | == ipop3d.c:222:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 222 | if (initial = strtok (NIL,"\015\012")) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ipop3d.c:222:18: note: place parentheses around the assignment to silence this warning 222 | if (initial = strtok (NIL,"\015\012")) { | ^ | ( ) ipop3d.c:222:18: note: use '==' to turn this assignment into an equality comparison 222 | if (initial = strtok (NIL,"\015\012")) { | ^ | == ipop3d.c:275:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 275 | if (t = ssl_start_tls (pgmname)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ ipop3d.c:275:10: note: place parentheses around the assignment to silence this warning 275 | if (t = ssl_start_tls (pgmname)) { | ^ | ( ) ipop3d.c:275:10: note: use '==' to turn this assignment into an equality comparison 275 | if (t = ssl_start_tls (pgmname)) { | ^ | == ipop3d.c:291:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 291 | if (s = strchr (t,':')) { | ~~^~~~~~~~~~~~~~~~ ipop3d.c:291:12: note: place parentheses around the assignment to silence this warning 291 | if (s = strchr (t,':')) { | ^ | ( ) ipop3d.c:291:12: note: use '==' to turn this assignment into an equality comparison 291 | if (s = strchr (t,':')) { | ^ | == ipop3d.c:664:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 664 | if (t = strchr (user,'*')) *t++ ='\0'; | ~~^~~~~~~~~~~~~~~~~~~ ipop3d.c:664:11: note: place parentheses around the assignment to silence this warning 664 | if (t = strchr (user,'*')) *t++ ='\0'; | ^ | ( ) ipop3d.c:664:11: note: use '==' to turn this assignment into an equality comparison 664 | if (t = strchr (user,'*')) *t++ ='\0'; | ^ | == ipop3d.c:780:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 780 | if (j = stream->nmsgs) { /* if mailbox non-empty */ | ~~^~~~~~~~~~~~~~~ ipop3d.c:780:11: note: place parentheses around the assignment to silence this warning 780 | if (j = stream->nmsgs) { /* if mailbox non-empty */ | ^ | ( ) ipop3d.c:780:11: note: use '==' to turn this assignment into an equality comparison 780 | if (j = stream->nmsgs) { /* if mailbox non-empty */ | ^ | == 10 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o ipop3d ipop3d.o -L/usr/local/lib -lc-client cd imapd;make cc -DNFSKLUDGE -I/usr/local/include/c-client -DANOFILE=\"/usr/local/etc/anonymous.newsgroups\" -DALERTFILE=\"/usr/local/etc/imapd.alert\" -DNNTPFILE=\"/usr/local//etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/usr/local/etc/nologin\" -c imapd.c -o imapd.o imapd.c:313: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] 313 | (((s = strrchr (argv[0],'/')) || (s = strrchr (argv[0],'\\'))) ? | ^ ~~~~~~~~~~~~~~~~~~~~~ imapd.c:313:41: 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] 313 | (((s = strrchr (argv[0],'/')) || (s = strrchr (argv[0],'\\'))) ? | ^ ~~~~~~~~~~~~~~~~~~~~~~ imapd.c:318: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] 318 | rfc822_date (tmp); /* get date/time at startup */ | ^~~ /usr/local/include/c-client/env.h:32:25: note: passing argument to parameter 'date' here 32 | void rfc822_date (char *date); | ^ imapd.c:338: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] 338 | if (s = strchr (proxy,'\n')) *s = '\0'; | ^ ~~~~~~~~~~~~~~~~~~~ imapd.c:338:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 338 | if (s = strchr (proxy,'\n')) *s = '\0'; | ~~^~~~~~~~~~~~~~~~~~~~~ imapd.c:338:8: note: place parentheses around the assignment to silence this warning 338 | if (s = strchr (proxy,'\n')) *s = '\0'; | ^ | ( ) imapd.c:338:8: note: use '==' to turn this assignment into an equality comparison 338 | if (s = strchr (proxy,'\n')) *s = '\0'; | ^ | == imapd.c:345: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] 345 | s = myusername_full (&i); /* get user name and flags */ | ^ ~~~~~~~~~~~~~~~~~~~~ imapd.c:353:9: warning: assigning to 'unsigned char *' from 'char[10]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 353 | s = "ANONYMOUS"; | ^ ~~~~~~~~~~~ imapd.c:357: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] 357 | user = cpystr (s); /* copy user name */ | ^ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:357: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] 357 | user = cpystr (s); /* copy user name */ | ^ ~~~~~~~~~~ imapd.c:358: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] 358 | pass = cpystr ("*"); /* set fake password */ | ^ ~~~~~~~~~~~~ imapd.c:367: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] 367 | PSOUT (user); | ^~~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:381: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] 381 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:384:11: warning: enumeration values 'OPEN' and 'LOGOUT' not handled in switch [-Wswitch] 384 | switch (state) { /* do this after the banner */ | ^~~~~ imapd.c:403: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] 403 | slurp (cmdbuf,CMDLEN,TIMEOUT); | ^~~~~~ imapd.c:133:19: note: passing argument to parameter 's' here 133 | void slurp (char *s,int n,unsigned long timeout); | ^ imapd.c:410:21: 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] 410 | if (t = strchr (cmdbuf,'\012')) { | ^~~~~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:410: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] 410 | if (t = strchr (cmdbuf,'\012')) { | ^ ~~~~~~~~~~~~~~~~~~~~~~ imapd.c:410:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 410 | if (t = strchr (cmdbuf,'\012')) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:410:11: note: place parentheses around the assignment to silence this warning 410 | if (t = strchr (cmdbuf,'\012')) { | ^ | ( ) imapd.c:410:11: note: use '==' to turn this assignment into an equality comparison 410 | if (t = strchr (cmdbuf,'\012')) { | ^ | == imapd.c:416:23: 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] 416 | if (t = strchr (cmdbuf,' ')) { | ^~~~~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:416: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] 416 | if (t = strchr (cmdbuf,' ')) { | ^ ~~~~~~~~~~~~~~~~~~~ imapd.c:416:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 416 | if (t = strchr (cmdbuf,' ')) { | ~~^~~~~~~~~~~~~~~~~~~~~ imapd.c:416:13: note: place parentheses around the assignment to silence this warning 416 | if (t = strchr (cmdbuf,' ')) { | ^ | ( ) imapd.c:416:13: note: use '==' to turn this assignment into an equality comparison 416 | if (t = strchr (cmdbuf,' ')) { | ^ | == imapd.c:426: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] 426 | sprintf (tmp,response,t ? (char *) cmdbuf : "*"); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:427: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] 427 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:429: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] 429 | else if (!(tag = parse_tag (cmdbuf,&s))) { | ^ ~~~~~~~~~~~~~~~~~~~~~ imapd.c:456: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] 456 | arg = strchr (s+4,' '); /* find argument */ | ^~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:456: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] 456 | arg = strchr (s+4,' '); /* find argument */ | ^ ~~~~~~~~~~~~~~~~ imapd.c:460: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] 460 | arg = strchr (s,' '); /* find argument */ | ^ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:460: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] 460 | arg = strchr (s,' '); /* find argument */ | ^ ~~~~~~~~~~~~~~ imapd.c:466: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] 466 | cmd = cpystr (s); /* save current command */ | ^ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:466: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] 466 | cmd = cpystr (s); /* save current command */ | ^ ~~~~~~~~~~ imapd.c:468: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] 468 | if (arg && ((i = strlen (arg)) > 3) && | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:474: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] 474 | litplus.size = strtoul (arg + i + 1,NIL,10); | ^~~~~~~~~~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:481:17: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 481 | unsigned char *cl = cpystr (tcp_clienthost ()); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:484: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] 484 | if (t = strchr (cl,' ')) { | ^~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:484: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] 484 | if (t = strchr (cl,' ')) { | ^ ~~~~~~~~~~~~~~~ imapd.c:484:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 484 | if (t = strchr (cl,' ')) { | ~~^~~~~~~~~~~~~~~~~ imapd.c:484:8: note: place parentheses around the assignment to silence this warning 484 | if (t = strchr (cl,' ')) { | ^ | ( ) imapd.c:484:8: note: use '==' to turn this assignment into an equality comparison 484 | if (t = strchr (cl,' ')) { | ^ | == imapd.c:488: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] 488 | else cls = strlen (cl); | ^~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:491: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] 491 | !compare_cstring(bb[i], cl + cls - bbs)) | ^~~~~ /usr/local/include/c-client/misc.h:106:37: note: passing argument to parameter 's1' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:499: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] 499 | if (!strcmp (cmd,"NOOP")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:504: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] 504 | else if (!strcmp (cmd,"LOGOUT")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:516: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] 516 | else if (!strcmp (cmd,"CAPABILITY")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:538: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] 538 | if (!strcmp (cmd,"AUTHENTICATE")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:548: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] 548 | else if (!strcmp (ucase (s),"ANONYMOUS") && !stat (ANOFILE,&sbuf)) { | ^~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:549: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] 549 | if (!(s = imap_responder ("",0,NIL))) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:553: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] 553 | user = cpystr ("ANONYMOUS"); | ^ ~~~~~~~~~~~~~~~~~~~~ imapd.c:554: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] 554 | pass = cpystr ("*"); | ^ ~~~~~~~~~~~~ imapd.c:564: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] 564 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ^ /usr/local/include/c-client/mail.h:1805:24: note: passing argument to parameter 'mechanism' here 1805 | char *mail_auth (char *mechanism,authresponse_t resp,int argc,char *argv[]); | ^ imapd.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] 564 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:564:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 564 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:564:18: note: place parentheses around the assignment to silence this warning 564 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ^ | ( ) imapd.c:564:18: note: use '==' to turn this assignment into an equality comparison 564 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ^ | == imapd.c:565: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] 565 | pass = cpystr ("*"); | ^ ~~~~~~~~~~~~ imapd.c:575: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] 575 | char *msg = (char *) fs_get (strlen (cmd) + strlen (s) + 2); | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:575:58: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 575 | char *msg = (char *) fs_get (strlen (cmd) + strlen (s) + 2); | ^ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:578: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] 578 | cmd = msg; | ^ ~~~ imapd.c:580: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] 580 | auth && compare_cstring (s,auth->name); auth = auth->next); | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:605: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] 605 | else if (!strcmp (cmd,"LOGIN")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:609:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 609 | if (!((user = cpystr (snarf (&arg))) && | ^~~~~~~~~~~~ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:609: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] 609 | if (!((user = cpystr (snarf (&arg))) && | ^ ~~~~~~~~~~~~~~~~~~~~~ imapd.c:610: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] 610 | (pass = cpystr (snarf (&arg))))) response = misarg; | ^~~~~~~~~~~~ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:610: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] 610 | (pass = cpystr (snarf (&arg))))) response = misarg; | ^ ~~~~~~~~~~~~~~~~~~~~~ imapd.c:613: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] 613 | else if (!compare_cstring (user,"ANONYMOUS") && | ^~~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:624: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] 624 | if (s = strchr (user,'*')) *s++ ='\0'; | ^~~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:624: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] 624 | if (s = strchr (user,'*')) *s++ ='\0'; | ^ ~~~~~~~~~~~~~~~~~ imapd.c:624:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 624 | if (s = strchr (user,'*')) *s++ ='\0'; | ~~^~~~~~~~~~~~~~~~~~~ imapd.c:624:12: note: place parentheses around the assignment to silence this warning 624 | if (s = strchr (user,'*')) *s++ ='\0'; | ^ | ( ) imapd.c:624:12: note: use '==' to turn this assignment into an equality comparison 624 | if (s = strchr (user,'*')) *s++ ='\0'; | ^ | == imapd.c:626: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] 626 | if (server_login (user,pass,s,argc,argv)) { | ^~~~ /usr/local/include/c-client/env.h:39:26: note: passing argument to parameter 'user' here 39 | long server_login (char *user,char *pass,char *authuser,int argc,char *argv[]); | ^ imapd.c:626: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] 626 | if (server_login (user,pass,s,argc,argv)) { | ^~~~ /usr/local/include/c-client/env.h:39:37: note: passing argument to parameter 'pass' here 39 | long server_login (char *user,char *pass,char *authuser,int argc,char *argv[]); | ^ imapd.c:626: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] 626 | if (server_login (user,pass,s,argc,argv)) { | ^ /usr/local/include/c-client/env.h:39:48: note: passing argument to parameter 'authuser' here 39 | long server_login (char *user,char *pass,char *authuser,int argc,char *argv[]); | ^ imapd.c:640: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] 640 | else if (!strcmp (cmd,"STARTTLS")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:642:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 642 | else if (lsterr = ssl_start_tls (pgmname)) response = lose; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:642:20: note: place parentheses around the assignment to silence this warning 642 | else if (lsterr = ssl_start_tls (pgmname)) response = lose; | ^ | ( ) imapd.c:642:20: note: use '==' to turn this assignment into an equality comparison 642 | else if (lsterr = ssl_start_tls (pgmname)) response = lose; | ^ | == imapd.c:653: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] 653 | if (!strcmp (cmd,"FETCH") || !strcmp (cmd,"UID FETCH")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:653:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 653 | if (!strcmp (cmd,"FETCH") || !strcmp (cmd,"UID FETCH")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:654: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] 654 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:654: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] 654 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:655: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] 655 | (t = strtok_r (NIL,"\015\012",&sstate)))) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:658: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] 658 | mail_sequence (stream,s)) fetch (t,uid); | ^ imapd.c:155:19: note: passing argument to parameter 't' here 155 | void fetch (char *t,unsigned long uid); | ^ imapd.c:662: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] 662 | else if (!strcmp (cmd,"STORE") || !strcmp (cmd,"UID STORE")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:662: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] 662 | else if (!strcmp (cmd,"STORE") || !strcmp (cmd,"UID STORE")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:664: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] 664 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:664: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] 664 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:665: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] 665 | (v = strtok_r (NIL," ",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:666: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] 666 | (t = strtok_r (NIL,"\015\012",&sstate)))) response = misarg; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:671: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] 671 | if (!strcmp (ucase (v),"FLAGS") || !strcmp (v,"FLAGS.SILENT")) { | ^~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:671: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] 671 | if (!strcmp (ucase (v),"FLAGS") || !strcmp (v,"FLAGS.SILENT")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:672: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] 672 | strcpy (tmp,"\\Answered \\Flagged \\Deleted \\Draft \\Seen"); | ^~~ /usr/include/string.h:87:31: note: passing argument to parameter here 87 | char *strcpy(char * __restrict, const char * __restrict); | ^ imapd.c:674: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] 674 | (i < NUSERFLAGS) && (v = stream->user_flags[i]); i++) | ^ ~~~~~~~~~~~~~~~~~~~~~ imapd.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] 675 | if (strlen (v) < | ^ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:676: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] 676 | ((size_t) (MAILTMPLEN - ((u += strlen (u)) + 2 - tmp)))) { | ^ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:678: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] 678 | strcpy (u,v); | ^ /usr/include/string.h:87:31: note: passing argument to parameter here 87 | char *strcpy(char * __restrict, const char * __restrict); | ^ imapd.c:678: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] 678 | strcpy (u,v); | ^ /usr/include/string.h:87:56: note: passing argument to parameter here 87 | char *strcpy(char * __restrict, const char * __restrict); | ^ imapd.c:680: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] 680 | mail_flag (stream,s,tmp,f & ~ST_SET); | ^ /usr/local/include/c-client/mail.h:1674:42: note: passing argument to parameter 'sequence' here 1674 | void mail_flag (MAILSTREAM *stream,char *sequence,char *flag,long flags); | ^ imapd.c:680:28: 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] 680 | mail_flag (stream,s,tmp,f & ~ST_SET); | ^~~ /usr/local/include/c-client/mail.h:1674:57: note: passing argument to parameter 'flag' here 1674 | void mail_flag (MAILSTREAM *stream,char *sequence,char *flag,long flags); | ^ imapd.c:682: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] 682 | else if (!strcmp (v,"-FLAGS") || !strcmp (v,"-FLAGS.SILENT")) | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:682:48: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 682 | else if (!strcmp (v,"-FLAGS") || !strcmp (v,"-FLAGS.SILENT")) | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:684: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] 684 | else if (strcmp (v,"+FLAGS") && strcmp (v,"+FLAGS.SILENT")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:684: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] 684 | else if (strcmp (v,"+FLAGS") && strcmp (v,"+FLAGS.SILENT")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:690: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] 690 | mail_flag (stream,s,t,f); | ^ /usr/local/include/c-client/mail.h:1674:42: note: passing argument to parameter 'sequence' here 1674 | void mail_flag (MAILSTREAM *stream,char *sequence,char *flag,long flags); | ^ imapd.c:690: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] 690 | mail_flag (stream,s,t,f); | ^ /usr/local/include/c-client/mail.h:1674:57: note: passing argument to parameter 'flag' here 1674 | void mail_flag (MAILSTREAM *stream,char *sequence,char *flag,long flags); | ^ imapd.c:701: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] 701 | else if (!strcmp (cmd,"CHECK")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:711: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] 711 | else if (!(anonymous || (strcmp (cmd,"EXPUNGE") && | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:712: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] 712 | strcmp (cmd,"UID EXPUNGE")))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:716: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] 716 | mail_expunge_full (stream,arg,arg ? EX_UID : NIL); | ^~~ /usr/local/include/c-client/mail.h:1681:50: note: passing argument to parameter 'sequence' here 1681 | long mail_expunge_full (MAILSTREAM *stream,char *sequence,long options); | ^ imapd.c:722: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] 722 | else if (!strcmp (cmd,"CLOSE") || !strcmp (cmd,"UNSELECT")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:722: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] 722 | else if (!strcmp (cmd,"CLOSE") || !strcmp (cmd,"UNSELECT")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:738: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] 738 | (!strcmp (cmd,"COPY") || !strcmp (cmd,"UID COPY"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:738: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] 738 | (!strcmp (cmd,"COPY") || !strcmp (cmd,"UID COPY"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:740: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] 740 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:740: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] 740 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:741: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] 741 | (arg = strtok_r (NIL,"\015\012",&sstate)) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:751: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] 751 | else if (!mail_copy_full (stream,s,t,uid ? CP_UID : NIL)) { | ^ /usr/local/include/c-client/mail.h:1682:47: note: passing argument to parameter 'sequence' here 1682 | long mail_copy_full (MAILSTREAM *stream,char *sequence,char *mailbox, | ^ imapd.c:751: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] 751 | else if (!mail_copy_full (stream,s,t,uid ? CP_UID : NIL)) { | ^ /usr/local/include/c-client/mail.h:1682:62: note: passing argument to parameter 'mailbox' here 1682 | long mail_copy_full (MAILSTREAM *stream,char *sequence,char *mailbox, | ^ imapd.c:758: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] 758 | else if (!strcmp (cmd,"SORT") || !strcmp (cmd,"UID SORT")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:758: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] 758 | else if (!strcmp (cmd,"SORT") || !strcmp (cmd,"UID SORT")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:760: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] 760 | if (!(arg && (*arg == '(') && (t = strchr (s = arg + 1,')')) && | ^~~~~~~~~~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:760:37: 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] 760 | if (!(arg && (*arg == '(') && (t = strchr (s = arg + 1,')')) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:768: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] 768 | if (!(s = strtok_r (ucase (s)," ",&sstate))) response = badatt; | ^~~~~~~~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:768: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] 768 | if (!(s = strtok_r (ucase (s)," ",&sstate))) response = badatt; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:773: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] 773 | if (!strcmp (s,"REVERSE")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:775: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] 775 | if (!(s = strtok_r (NIL," ",&sstate))) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:776:9: 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] 776 | s = ""; /* end of attributes */ | ^ ~~ imapd.c:780: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] 780 | if (!strcmp (s,"DATE")) pg->function = SORTDATE; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:781: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] 781 | else if (!strcmp (s,"ARRIVAL")) pg->function = SORTARRIVAL; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:782: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] 782 | else if (!strcmp (s,"FROM")) pg->function = SORTFROM; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:783: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] 783 | else if (!strcmp (s,"SUBJECT")) pg->function = SORTSUBJECT; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:784: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] 784 | else if (!strcmp (s,"TO")) pg->function = SORTTO; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:785: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] 785 | else if (!strcmp (s,"CC")) pg->function = SORTCC; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:786: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] 786 | else if (!strcmp (s,"SIZE")) pg->function = SORTSIZE; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:788: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] 788 | } while (s = strtok_r (NIL," ",&sstate)); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:788:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 788 | } while (s = strtok_r (NIL," ",&sstate)); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:788:19: note: place parentheses around the assignment to silence this warning 788 | } while (s = strtok_r (NIL," ",&sstate)); | ^ | ( ) imapd.c:788:19: note: use '==' to turn this assignment into an equality comparison 788 | } while (s = strtok_r (NIL," ",&sstate)); | ^ | == imapd.c:792:55: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 792 | else if (!((t = snarf (&arg)) && (cs = cpystr (t)) && arg && | ^ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:798:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 798 | else if (slst = mail_sort (stream,cs,spg,pgm,uid ? SE_UID:NIL)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:798:22: note: place parentheses around the assignment to silence this warning 798 | else if (slst = mail_sort (stream,cs,spg,pgm,uid ? SE_UID:NIL)) { | ^ | ( ) imapd.c:798:22: note: use '==' to turn this assignment into an equality comparison 798 | else if (slst = mail_sort (stream,cs,spg,pgm,uid ? SE_UID:NIL)) { | ^ | == imapd.c:815: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] 815 | else if (!strcmp (cmd,"THREAD") || !strcmp (cmd,"UID THREAD")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:815: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] 815 | else if (!strcmp (cmd,"THREAD") || !strcmp (cmd,"UID THREAD")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:820: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] 820 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:820: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] 820 | if (!(arg && (s = strtok_r (arg," ",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:822: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] 822 | (arg = strtok_r (NIL,"\015\012",&sstate)))) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:828:36: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 828 | if (thr = mail_thread (stream,s,cs,spg,uid ? SE_UID : NIL)) { | ^ /usr/local/include/c-client/mail.h:1742:51: note: passing argument to parameter 'type' here 1742 | THREADNODE *mail_thread (MAILSTREAM *stream,char *type,char *charset, | ^ imapd.c:828:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 828 | if (thr = mail_thread (stream,s,cs,spg,uid ? SE_UID : NIL)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:828:14: note: place parentheses around the assignment to silence this warning 828 | if (thr = mail_thread (stream,s,cs,spg,uid ? SE_UID : NIL)) { | ^ | ( ) imapd.c:828:14: note: use '==' to turn this assignment into an equality comparison 828 | if (thr = mail_thread (stream,s,cs,spg,uid ? SE_UID : NIL)) { | ^ | == imapd.c:841: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] 841 | else if (!strcmp (cmd,"SEARCH") || !strcmp (cmd,"UID SEARCH")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:841: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] 841 | else if (!strcmp (cmd,"SEARCH") || !strcmp (cmd,"UID SEARCH")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:906:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 906 | if (s = snarf (&arg)) charset = cpystr (s); | ~~^~~~~~~~~~~~~~ imapd.c:906:12: note: place parentheses around the assignment to silence this warning 906 | if (s = snarf (&arg)) charset = cpystr (s); | ^ | ( ) imapd.c:906:12: note: use '==' to turn this assignment into an equality comparison 906 | if (s = snarf (&arg)) charset = cpystr (s); | ^ | == imapd.c:906: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] 906 | if (s = snarf (&arg)) charset = cpystr (s); | ^ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:1024: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] 1024 | if (!(strcmp (cmd,"SELECT") && strcmp (cmd,"EXAMINE") && | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1024: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] 1024 | if (!(strcmp (cmd,"SELECT") && strcmp (cmd,"EXAMINE") && | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1025: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] 1025 | strcmp (cmd,"BBOARD"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1029: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] 1029 | else if (nameok (NIL,s = bboardname (cmd,s))) { | ^~~ imapd.c:199:25: note: passing argument to parameter 'cmd' here 199 | char *bboardname (char *cmd,char *name); | ^ imapd.c:1029: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] 1029 | else if (nameok (NIL,s = bboardname (cmd,s))) { | ^ imapd.c:199:35: note: passing argument to parameter 'name' here 199 | char *bboardname (char *cmd,char *name); | ^ imapd.c:1029: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] 1029 | else if (nameok (NIL,s = bboardname (cmd,s))) { | ^ ~~~~~~~~~~~~~~~~~~ imapd.c:1029: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] 1029 | else if (nameok (NIL,s = bboardname (cmd,s))) { | ^~~~~~~~~~~~~~~~~~~~~~ imapd.c:198:30: note: passing argument to parameter 'name' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1030: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] 1030 | DRIVER *factory = mail_valid (NIL,s,NIL); | ^ /usr/local/include/c-client/mail.h:1618:46: note: passing argument to parameter 'mailbox' here 1618 | DRIVER *mail_valid (MAILSTREAM *stream,char *mailbox,char *purpose); | ^ imapd.c:1041: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] 1041 | (stream = mail_open (stream,s,f | OP_SILENT)) && | ^ /usr/local/include/c-client/mail.h:1633:49: note: passing argument to parameter 'name' here 1633 | MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | ^ imapd.c:1047: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] 1047 | (t = mail_fetch_text (stream,1,NIL,&i,NIL)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1050: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] 1050 | strncpy (tmp,t,i)[i] = '\0'; | ^~~ /usr/include/string.h:112:32: note: passing argument to parameter here 112 | char *strncpy(char * __restrict, const char * __restrict, size_t); | ^ imapd.c:1050: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] 1050 | strncpy (tmp,t,i)[i] = '\0'; | ^ /usr/include/string.h:112:57: note: passing argument to parameter here 112 | char *strncpy(char * __restrict, const char * __restrict, size_t); | ^ imapd.c:1052:20: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1052 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ^~~ /usr/include/string.h:122:27: note: passing argument to parameter here 122 | char *strpbrk(const char *, const char *) __pure; | ^ imapd.c:1052: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] 1052 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ^ ~~~~~~~~~~~~~~~~~~~~ imapd.c:1052:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1052 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ~~^~~~~~~~~~~~~~~~~~~~~~ imapd.c:1052:9: note: place parentheses around the assignment to silence this warning 1052 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ^ | ( ) imapd.c:1052:9: note: use '==' to turn this assignment into an equality comparison 1052 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ^ | == imapd.c:1054:33: 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] 1054 | if ((tstream = mail_open (NIL,tmp,f | OP_SILENT)) && | ^~~ /usr/local/include/c-client/mail.h:1633:49: note: passing argument to parameter 'name' here 1633 | MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | ^ imapd.c:1066: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] 1066 | else if (!factory && isnewsproxy (s)) { | ^ imapd.c:200:25: note: passing argument to parameter 'name' here 200 | long isnewsproxy (char *name); | ^ imapd.c:1067:17: 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] 1067 | sprintf (tmp,"{%.300s/nntp}%.300s",nntpproxy,(char *) s+6); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1068:35: 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] 1068 | stream = mail_open (stream,tmp,f); | ^~~ /usr/local/include/c-client/mail.h:1633:49: note: passing argument to parameter 'name' here 1633 | MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | ^ imapd.c:1071: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] 1071 | else stream = mail_open (stream,s,f); | ^ /usr/local/include/c-client/mail.h:1633:49: note: passing argument to parameter 'name' here 1633 | MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | ^ imapd.c:1077: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] 1077 | if (!compare_cstring (s,"#MHINBOX")) | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1079:50: 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] 1079 | else lastsel = cpystr (compare_cstring (s,"INBOX") ? | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1098: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] 1098 | else if (!(anonymous || strcmp (cmd,"APPEND"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1108: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] 1108 | if (!mail_append_multiple (NIL,s,append_msg,(void *) &ad)) { | ^ /usr/local/include/c-client/mail.h:1686:53: note: passing argument to parameter 'mailbox' here 1686 | long mail_append_multiple (MAILSTREAM *stream,char *mailbox,append_t af, | ^ imapd.c:1123: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] 1123 | else if (!strcmp (cmd,"LIST") || !strcmp (cmd,"RLIST")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1123: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] 1123 | else if (!strcmp (cmd,"LIST") || !strcmp (cmd,"RLIST")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1129: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] 1129 | else if (nameok (s,t)) { | ^ imapd.c:198:20: note: passing argument to parameter 'ref' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1129: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] 1129 | else if (nameok (s,t)) { | ^ imapd.c:198:30: note: passing argument to parameter 'name' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1130: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] 1130 | if (newsproxypattern (s,t,tmp,LONGT)) { | ^ imapd.c:201:30: note: passing argument to parameter 'ref' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1130: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] 1130 | if (newsproxypattern (s,t,tmp,LONGT)) { | ^ imapd.c:201:40: note: passing argument to parameter 'pat' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1130:32: 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] 1130 | if (newsproxypattern (s,t,tmp,LONGT)) { | ^~~ imapd.c:201:50: note: passing argument to parameter 'pattern' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1132:26: 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] 1132 | mail_list (NIL,"",tmp); | ^~~ /usr/local/include/c-client/mail.h:1623:52: note: passing argument to parameter 'pat' here 1623 | void mail_list (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1135: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] 1135 | else mail_list (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1623:42: note: passing argument to parameter 'ref' here 1623 | void mail_list (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1135: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] 1135 | else mail_list (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1623:52: note: passing argument to parameter 'pat' here 1623 | void mail_list (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1141: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] 1141 | else if (!strcmp (cmd,"SCAN")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1147: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] 1147 | else if (nameok (s,t)) { | ^ imapd.c:198:20: note: passing argument to parameter 'ref' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1147: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] 1147 | else if (nameok (s,t)) { | ^ imapd.c:198:30: note: passing argument to parameter 'name' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1148: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] 1148 | if (newsproxypattern (s,t,tmp,NIL)) | ^ imapd.c:201:30: note: passing argument to parameter 'ref' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1148: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] 1148 | if (newsproxypattern (s,t,tmp,NIL)) | ^ imapd.c:201:40: note: passing argument to parameter 'pat' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1148:32: 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] 1148 | if (newsproxypattern (s,t,tmp,NIL)) | ^~~ imapd.c:201:50: note: passing argument to parameter 'pattern' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1150: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] 1150 | else mail_scan (NIL,s,t,u); | ^ /usr/local/include/c-client/mail.h:1622:42: note: passing argument to parameter 'ref' here 1622 | void mail_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); | ^ imapd.c:1150: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] 1150 | else mail_scan (NIL,s,t,u); | ^ /usr/local/include/c-client/mail.h:1622:52: note: passing argument to parameter 'pat' here 1622 | void mail_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); | ^ imapd.c:1150: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] 1150 | else mail_scan (NIL,s,t,u); | ^ /usr/local/include/c-client/mail.h:1622:62: note: passing argument to parameter 'contents' here 1622 | void mail_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); | ^ imapd.c:1156: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] 1156 | else if (!strcmp (cmd,"LSUB") || !strcmp (cmd,"RLSUB")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1156: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] 1156 | else if (!strcmp (cmd,"LSUB") || !strcmp (cmd,"RLSUB")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1162: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] 1162 | else if (nameok (s,t)) { | ^ imapd.c:198:20: note: passing argument to parameter 'ref' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1162: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] 1162 | else if (nameok (s,t)) { | ^ imapd.c:198:30: note: passing argument to parameter 'name' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1163: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] 1163 | if (newsproxypattern (s,t,tmp,NIL)) newsrc_lsub (NIL,tmp); | ^ imapd.c:201:30: note: passing argument to parameter 'ref' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1163: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] 1163 | if (newsproxypattern (s,t,tmp,NIL)) newsrc_lsub (NIL,tmp); | ^ imapd.c:201:40: note: passing argument to parameter 'pat' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1163:32: 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] 1163 | if (newsproxypattern (s,t,tmp,NIL)) newsrc_lsub (NIL,tmp); | ^~~ imapd.c:201:50: note: passing argument to parameter 'pattern' here 201 | long newsproxypattern (char *ref,char *pat,char *pattern,long flag); | ^ imapd.c:1163:59: 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] 1163 | if (newsproxypattern (s,t,tmp,NIL)) newsrc_lsub (NIL,tmp); | ^~~ /usr/local/include/c-client/newsrc.h:37:44: note: passing argument to parameter 'pattern' here 37 | void newsrc_lsub (MAILSTREAM *stream,char *pattern); | ^ imapd.c:1164: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] 1164 | else mail_lsub (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1624:42: note: passing argument to parameter 'ref' here 1624 | void mail_lsub (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1164: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] 1164 | else mail_lsub (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1624:52: note: passing argument to parameter 'pat' here 1624 | void mail_lsub (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1171: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] 1171 | else if (!strcmp (cmd,"FIND")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1173: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] 1173 | if (!(arg && (s = strtok_r (arg," \015\012",&sstate)) && | ^~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:1173: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] 1173 | if (!(arg && (s = strtok_r (arg," \015\012",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1175: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] 1175 | (arg = strtok_r (NIL,"\015\012",&sstate)) && | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1180: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] 1180 | else if (strpbrk (s,"%?")) response = | ^ /usr/include/string.h:122:27: note: passing argument to parameter here 122 | char *strpbrk(const char *, const char *) __pure; | ^ imapd.c:1182: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] 1182 | else if (nameok (NIL,s)) { | ^ imapd.c:198:30: note: passing argument to parameter 'name' here 198 | long nameok (char *ref,char *name); | ^ imapd.c:1185: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] 1185 | if (!strcmp (cmd,"FIND MAILBOXES") && !anonymous) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1186: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] 1186 | mail_lsub (NIL,NIL,s); | ^ /usr/local/include/c-client/mail.h:1624:52: note: passing argument to parameter 'pat' here 1624 | void mail_lsub (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1187: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] 1187 | else if (!strcmp (cmd,"FIND ALL.MAILBOXES")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1190: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] 1190 | mail_list (NIL,NIL,s); | ^ /usr/local/include/c-client/mail.h:1623:52: note: passing argument to parameter 'pat' here 1623 | void mail_list (MAILSTREAM *stream,char *ref,char *pat); | ^ imapd.c:1199: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] 1199 | else if (!strcmp (cmd,"STATUS")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1201: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] 1201 | (t = strchr (arg,')')) && (t - arg) && !t[1])) | ^~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:1201: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] 1201 | (t = strchr (arg,')')) && (t - arg) && !t[1])) | ^ ~~~~~~~~~~~~~~~~ imapd.c:1207: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] 1207 | t = strtok_r (ucase (arg)," ",&sstate); | ^~~~~~~~~~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:1207: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] 1207 | t = strtok_r (ucase (arg)," ",&sstate); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1209: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] 1209 | if (!strcmp (t,"MESSAGES")) f |= SA_MESSAGES; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1210:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1210 | else if (!strcmp (t,"RECENT")) f |= SA_RECENT; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1211:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1211 | else if (!strcmp (t,"UNSEEN")) f |= SA_UNSEEN; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1212:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1212 | else if (!strcmp (t,"UIDNEXT")) f |= SA_UIDNEXT; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1213:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1213 | else if (!strcmp (t,"UIDVALIDITY")) f |= SA_UIDVALIDITY; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1216: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] 1216 | PSOUT (t); | ^ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1219: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] 1219 | } while (t = strtok_r (NIL," ",&sstate)); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1219:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1219 | } while (t = strtok_r (NIL," ",&sstate)); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1219:17: note: place parentheses around the assignment to silence this warning 1219 | } while (t = strtok_r (NIL," ",&sstate)); | ^ | ( ) imapd.c:1219:17: note: use '==' to turn this assignment into an equality comparison 1219 | } while (t = strtok_r (NIL," ",&sstate)); | ^ | == imapd.c:1222: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] 1222 | if (!compare_cstring (s,"INBOX")) s = "INBOX"; | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1222:42: warning: assigning to 'unsigned char *' from 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1222 | if (!compare_cstring (s,"INBOX")) s = "INBOX"; | ^ ~~~~~~~ imapd.c:1223: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] 1223 | else if (!compare_cstring (s,"#MHINBOX")) s = "#MHINBOX"; | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1223:50: warning: assigning to 'unsigned char *' from 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1223 | else if (!compare_cstring (s,"#MHINBOX")) s = "#MHINBOX"; | ^ ~~~~~~~~~~ imapd.c:1226:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1226 | else if (lastsel && (!strcmp (s,lastsel) || | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1227:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1227 | (stream && !strcmp (s,stream->mailbox)))) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1231: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] 1231 | PSOUT (s); | ^ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1235:26: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1235 | sprintf (tmp + strlen (tmp)," MESSAGES %lu",stream->nmsgs); | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1235: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] 1235 | sprintf (tmp + strlen (tmp)," MESSAGES %lu",stream->nmsgs); | ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1237:26: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1237 | sprintf (tmp + strlen (tmp)," RECENT %lu",stream->recent); | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1237: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] 1237 | sprintf (tmp + strlen (tmp)," RECENT %lu",stream->recent); | ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1241:26: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1241 | sprintf (tmp + strlen (tmp)," UNSEEN %lu",unseen); | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1241: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] 1241 | sprintf (tmp + strlen (tmp)," UNSEEN %lu",unseen); | ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1244:26: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1244 | sprintf (tmp + strlen (tmp)," UIDNEXT %lu",stream->uid_last+1); | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1244: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] 1244 | sprintf (tmp + strlen (tmp)," UIDNEXT %lu",stream->uid_last+1); | ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1246:25: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1246 | sprintf (tmp + strlen(tmp)," UIDVALIDITY %lu", | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1246: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] 1246 | sprintf (tmp + strlen(tmp)," UIDVALIDITY %lu", | ^~~~~~~~~~~~~~~~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1249: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] 1249 | strcat (tmp,")\015\012"); | ^~~ /usr/include/string.h:79:31: note: passing argument to parameter here 79 | char *strcat(char * __restrict, const char * __restrict); | ^ imapd.c:1251: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] 1251 | pastring (s); | ^ imapd.c:186:22: note: passing argument to parameter 's' here 186 | void pastring (char *s); | ^ imapd.c:1252: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] 1252 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1254: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] 1254 | else if (isnewsproxy (s)) { | ^ imapd.c:200:25: note: passing argument to parameter 'name' here 200 | long isnewsproxy (char *name); | ^ imapd.c:1255:17: 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] 1255 | sprintf (tmp,"{%.300s/nntp}%.300s",nntpproxy,(char *) s+6); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1256:30: 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] 1256 | if (!mail_status (NIL,tmp,f)) response = lose; | ^~~ /usr/local/include/c-client/mail.h:1631:44: note: passing argument to parameter 'mbx' here 1631 | long mail_status (MAILSTREAM *stream,char *mbx,long flags); | ^ imapd.c:1258: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] 1258 | else if (!mail_status (NIL,s,f)) response = lose; | ^ /usr/local/include/c-client/mail.h:1631:44: note: passing argument to parameter 'mbx' here 1631 | long mail_status (MAILSTREAM *stream,char *mbx,long flags); | ^ imapd.c:1265: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] 1265 | else if (!(anonymous || strcmp (cmd,"SUBSCRIBE"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1269: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] 1269 | if (compare_cstring (s,"MAILBOX")) response = badarg; | ^~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1272: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] 1272 | else mail_subscribe (NIL,s); | ^ /usr/local/include/c-client/mail.h:1625:47: note: passing argument to parameter 'mailbox' here 1625 | long mail_subscribe (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1274: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] 1274 | else if (isnewsproxy (s)) newsrc_update (NIL,s+6,':'); | ^ imapd.c:200:25: note: passing argument to parameter 'name' here 200 | long isnewsproxy (char *name); | ^ imapd.c:1274:49: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1274 | else if (isnewsproxy (s)) newsrc_update (NIL,s+6,':'); | ^~~ /usr/local/include/c-client/newsrc.h:38:46: note: passing argument to parameter 'group' here 38 | long newsrc_update (MAILSTREAM *stream,char *group,char state); | ^ imapd.c:1275: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] 1275 | else mail_subscribe (NIL,s); | ^ /usr/local/include/c-client/mail.h:1625:47: note: passing argument to parameter 'mailbox' here 1625 | long mail_subscribe (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1280: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] 1280 | else if (!(anonymous || strcmp (cmd,"UNSUBSCRIBE"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1284: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] 1284 | if (compare_cstring (s,"MAILBOX")) response = badarg; | ^~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1287: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] 1287 | else if (isnewsproxy (s)) newsrc_update (NIL,s+6,'!'); | ^ imapd.c:200:25: note: passing argument to parameter 'name' here 200 | long isnewsproxy (char *name); | ^ imapd.c:1287:51: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1287 | else if (isnewsproxy (s)) newsrc_update (NIL,s+6,'!'); | ^~~ /usr/local/include/c-client/newsrc.h:38:46: note: passing argument to parameter 'group' here 38 | long newsrc_update (MAILSTREAM *stream,char *group,char state); | ^ imapd.c:1288: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] 1288 | else mail_unsubscribe (NIL,s); | ^ /usr/local/include/c-client/mail.h:1626:49: note: passing argument to parameter 'mailbox' here 1626 | long mail_unsubscribe (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1290: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] 1290 | else mail_unsubscribe (NIL,s); | ^ /usr/local/include/c-client/mail.h:1626:49: note: passing argument to parameter 'mailbox' here 1626 | long mail_unsubscribe (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1295: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] 1295 | else if (!strcmp (cmd,"NAMESPACE")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1304:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1304 | if (n = ns[i]) { | ~~^~~~~~~ imapd.c:1304:14: note: place parentheses around the assignment to silence this warning 1304 | if (n = ns[i]) { | ^ | ( ) imapd.c:1304:14: note: use '==' to turn this assignment into an equality comparison 1304 | if (n = ns[i]) { | ^ | == imapd.c:1324:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1324 | if (p = n->param) do { | ~~^~~~~~~~~~ imapd.c:1324:11: note: place parentheses around the assignment to silence this warning 1324 | if (p = n->param) do { | ^ | ( ) imapd.c:1324:11: note: use '==' to turn this assignment into an equality comparison 1324 | if (p = n->param) do { | ^ | == imapd.c:1331:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1331 | } while (p = p->next); | ~~^~~~~~~~~ imapd.c:1331:16: note: place parentheses around the assignment to silence this warning 1331 | } while (p = p->next); | ^ | ( ) imapd.c:1331:16: note: use '==' to turn this assignment into an equality comparison 1331 | } while (p = p->next); | ^ | == imapd.c:1333:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1333 | } while (n = n->next); | ~~^~~~~~~~~ imapd.c:1333:14: note: place parentheses around the assignment to silence this warning 1333 | } while (n = n->next); | ^ | ( ) imapd.c:1333:14: note: use '==' to turn this assignment into an equality comparison 1333 | } while (n = n->next); | ^ | == imapd.c:1346: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] 1346 | else if (!(anonymous || strcmp (cmd,"CREATE"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1349: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] 1349 | else mail_create (NIL,s); | ^ /usr/local/include/c-client/mail.h:1627:44: note: passing argument to parameter 'mailbox' here 1627 | long mail_create (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1354: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] 1354 | else if (!(anonymous || strcmp (cmd,"DELETE"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1358: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] 1358 | if (lastsel && (!strcmp (s,lastsel) || | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1359: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] 1359 | (stream && !strcmp (s,stream->mailbox)))) | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1361: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] 1361 | else mail_delete (NIL,s); | ^ /usr/local/include/c-client/mail.h:1628:44: note: passing argument to parameter 'mailbox' here 1628 | long mail_delete (MAILSTREAM *stream,char *mailbox); | ^ imapd.c:1367: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] 1367 | else if (!(anonymous || strcmp (cmd,"RENAME"))) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1371: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] 1371 | if (!compare_cstring (s,"INBOX")) s = "INBOX"; | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1371:42: warning: assigning to 'unsigned char *' from 'char[6]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1371 | if (!compare_cstring (s,"INBOX")) s = "INBOX"; | ^ ~~~~~~~ imapd.c:1372: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] 1372 | else if (!compare_cstring (s,"#MHINBOX")) s = "#MHINBOX"; | ^~~~~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ imapd.c:1372:50: warning: assigning to 'unsigned char *' from 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1372 | else if (!compare_cstring (s,"#MHINBOX")) s = "#MHINBOX"; | ^ ~~~~~~~~~~ imapd.c:1373: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] 1373 | if (lastsel && (!strcmp (s,lastsel) || | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1374: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] 1374 | (stream && !strcmp (s,stream->mailbox)))) | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1376: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] 1376 | else mail_rename (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1629:44: note: passing argument to parameter 'old' here 1629 | long mail_rename (MAILSTREAM *stream,char *old,char *newname); | ^ imapd.c:1376: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] 1376 | else mail_rename (NIL,s,t); | ^ /usr/local/include/c-client/mail.h:1629:54: note: passing argument to parameter 'newname' here 1629 | long mail_rename (MAILSTREAM *stream,char *old,char *newname); | ^ imapd.c:1383: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] 1383 | else if (!strcmp (cmd,"IDLE")) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:1415: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] 1415 | sprintf (tmp,"* OK Timeout in %lu minutes\015\012", | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1417: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] 1417 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1421: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] 1421 | sprintf (tmp,"* %lu EXISTS\015\012* %lu RECENT\015\012", | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1423: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] 1423 | PSOUT (tmp); /* prod client to wake up */ | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1432: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] 1432 | slurp (tmp,MAILTMPLEN,INPUTTIMEOUT); | ^~~ imapd.c:133:19: note: passing argument to parameter 's' here 133 | void slurp (char *s,int n,unsigned long timeout); | ^ imapd.c:1443: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] 1443 | sprintf (tmp,"* %lu EXPUNGE\015\012",donefake--); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1444: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] 1444 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1446: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] 1446 | sprintf (tmp,"* %lu EXISTS\015\012* %lu RECENT\015\012", | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1448: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] 1448 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1467:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1467 | while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1467:11: note: place parentheses around the assignment to silence this warning 1467 | while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { | ^ | ( ) imapd.c:1467:11: note: use '==' to turn this assignment into an equality comparison 1467 | while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { | ^ | == imapd.c:1471:17: 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] 1471 | if (PSINR (tmp,i)) litplus.size -= i; | ^~~ /usr/local/include/c-client/mail.h:1839:19: note: passing argument to parameter 's' here 1839 | long PSINR (char *s,unsigned long n); | ^ imapd.c:1480:9: 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] 1480 | slurp (tmp,MAILTMPLEN,INPUTTIMEOUT); | ^~~ imapd.c:133:19: note: passing argument to parameter 's' here 133 | void slurp (char *s,int n,unsigned long timeout); | ^ imapd.c:1482:18: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1482 | if (t = strchr (tmp,'\012')) { | ^~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:1482: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] 1482 | if (t = strchr (tmp,'\012')) { | ^ ~~~~~~~~~~~~~~~~~~~ imapd.c:1482:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1482 | if (t = strchr (tmp,'\012')) { | ~~^~~~~~~~~~~~~~~~~~~~~ imapd.c:1482:8: note: place parentheses around the assignment to silence this warning 1482 | if (t = strchr (tmp,'\012')) { | ^ | ( ) imapd.c:1482:8: note: use '==' to turn this assignment into an equality comparison 1482 | if (t = strchr (tmp,'\012')) { | ^ | == imapd.c:1487:22: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1487 | if (((i = strlen (tmp)) > 3) && (tmp[i - 1] == '}') && | ^~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:1493: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] 1493 | litplus.size = strtoul (tmp + i + 1,NIL,10); | ^~~~~~~~~~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:1508: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] 1508 | sprintf (tmp,response,lstref ? "*" : tag); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1509:9: 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] 1509 | PSOUT (tmp); /* start response */ | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1512:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1512 | PSOUT (user); | ^~~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1515: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] 1515 | sprintf (tmp,response,tag); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1516: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] 1516 | PSOUT (tmp); /* start response */ | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1525: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] 1525 | sprintf (tmp,response,tag); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1526:9: 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] 1526 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1529: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] 1529 | ((s = strchr (cmd,' ')) ? s+1 : cmd),cauidvalidity); | ^~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:1529: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] 1529 | ((s = strchr (cmd,' ')) ? s+1 : cmd),cauidvalidity); | ^ ~~~~~~~~~~~~~~~~ imapd.c:1528: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] 1528 | sprintf (tmp,"[%.80sUID %lu ",(char *) | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1530: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] 1530 | PSOUT (tmp); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1546: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] 1546 | PSOUT (cmd); | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1560: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] 1560 | sprintf (tmp,response,tag,cmd,lasterror ()); | ^~~ /usr/include/stdio.h:285:31: note: passing argument to parameter here 285 | int sprintf(char * __restrict, const char * __restrict, ...); | ^ imapd.c:1561:9: 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] 1561 | PSOUT (tmp); /* output response */ | ^~~ /usr/local/include/c-client/mail.h:1842:18: note: passing argument to parameter 's' here 1842 | int PSOUT (char *s); | ^ imapd.c:1586:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1586 | if (lgoh = (logouthook_t) mail_parameters (NIL,GET_LOGOUTHOOK,NIL)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:1586:12: note: place parentheses around the assignment to silence this warning 1586 | if (lgoh = (logouthook_t) mail_parameters (NIL,GET_LOGOUTHOOK,NIL)) | ^ | ( ) imapd.c:1586:12: note: use '==' to turn this assignment into an equality comparison 1586 | if (lgoh = (logouthook_t) mail_parameters (NIL,GET_LOGOUTHOOK,NIL)) | ^ | == imapd.c:1936:36: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1936 | if (user) s = sout (sout (s,"."),user); | ^~~~ imapd.c:131:27: note: passing argument to parameter 't' here 131 | char *sout (char *s,char *t); | ^ imapd.c:1956:36: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1956 | s = sout (sout (s,"\nuser="),user); | ^~~~ imapd.c:131:27: note: passing argument to parameter 't' here 131 | char *sout (char *s,char *t); | ^ imapd.c:1974: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] 1974 | if (cmd) s = sout (sout (s,", last command="),cmd); | ^~~ imapd.c:131:27: note: passing argument to parameter 't' here 131 | char *sout (char *s,char *t); | ^ imapd.c:1976: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] 1976 | else if (cmd) s = sout (sout (s,cmd)," in progress"); | ^~~ imapd.c:131:27: note: passing argument to parameter 't' here 131 | char *sout (char *s,char *t); | ^ imapd.c:2137:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2137 | if (*size = i) break; /* got atom if non-empty */ | ~~~~~~^~~ imapd.c:2137:15: note: place parentheses around the assignment to silence this warning 2137 | if (*size = i) break; /* got atom if non-empty */ | ^ | ( ) imapd.c:2137:15: note: use '==' to turn this assignment into an equality comparison 2137 | if (*size = i) break; /* got atom if non-empty */ | ^ | == imapd.c:2157: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] 2157 | if ((*size = i = strtoul (s,(char **) &t,10)) > MAXCLIENTLIT) { | ^ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:2176: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] 2176 | inliteral (s = litstk[litsp++] = (char *) fs_get (i+1),i); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2176: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] 2176 | inliteral (s = litstk[litsp++] = (char *) fs_get (i+1),i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2042:23: note: passing argument to parameter 's' here 2042 | void inliteral (char *s,unsigned long n) | ^ imapd.c:2178: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] 2178 | slurp (*arg = t,CMDLEN - (t - cmdbuf),INPUTTIMEOUT); | ^~~~~~~~ imapd.c:2023:19: note: passing argument to parameter 's' here 2023 | void slurp (char *s,int n,unsigned long timeout) | ^ imapd.c:2180: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] 2180 | if (!strchr (t,'\012')) return flush (); | ^ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:2182: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] 2182 | if (!strtok_r (t,"\015\012",&sstate)) *t = '\0'; | ^ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:2184: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] 2184 | if (((i = strlen (t)) > 3) && (t[i - 1] == '}') && | ^ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:2190:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2190 | litplus.size = strtoul (t + i + 1,NIL,10); | ^~~~~~~~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:2195:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2195 | if (*del = *t) { /* have a delimiter? */ | ~~~~~^~~~ imapd.c:2195:12: note: place parentheses around the assignment to silence this warning 2195 | if (*del = *t) { /* have a delimiter? */ | ^ | ( ) imapd.c:2195:12: note: use '==' to turn this assignment into an equality comparison 2195 | if (*del = *t) { /* have a delimiter? */ | ^ | == imapd.c:2294:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2294 | if (c = *t) { /* have a delimiter? */ | ~~^~~~ imapd.c:2294:11: note: place parentheses around the assignment to silence this warning 2294 | if (c = *t) { /* have a delimiter? */ | ^ | ( ) imapd.c:2294:11: note: use '==' to turn this assignment into an equality comparison 2294 | if (c = *t) { /* have a delimiter? */ | ^ | == imapd.c:2324: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] 2324 | while ((c == ' ') && (t = parse_astring (s,&i,&c))) { | ^~ imapd.c:2126:25: note: passing argument to parameter 'del' here 2126 | unsigned char *del) | ^ imapd.c:2324: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] 2324 | while ((c == ' ') && (t = parse_astring (s,&i,&c))) { | ^ ~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2336:9: 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] 2336 | if (t = *s) { /* need to reload strtok state? */ | ^ ~~ imapd.c:2336:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2336 | if (t = *s) { /* need to reload strtok state? */ | ~~^~~~ imapd.c:2336:9: note: place parentheses around the assignment to silence this warning 2336 | if (t = *s) { /* need to reload strtok state? */ | ^ | ( ) imapd.c:2336:9: note: use '==' to turn this assignment into an equality comparison 2336 | if (t = *s) { /* need to reload strtok state? */ | ^ | == imapd.c:2407: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] 2407 | if (!(tail = strpbrk ((s = *arg)," )"))) tail = *arg + strlen (*arg); | ^~~~~~~~~~ /usr/include/string.h:122:27: note: passing argument to parameter here 122 | char *strpbrk(const char *, const char *) __pure; | ^ imapd.c:2407: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] 2407 | if (!(tail = strpbrk ((s = *arg)," )"))) tail = *arg + strlen (*arg); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2407:68: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2407 | if (!(tail = strpbrk ((s = *arg)," )"))) tail = *arg + strlen (*arg); | ^~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:2423: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] 2423 | if (!strcmp (s+1,"LL")) ret = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2424: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] 2424 | else if (!strcmp (s+1,"NSWERED")) ret = pgm->answered = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2428: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] 2428 | if (!strcmp (s+1,"CC") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2430: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] 2430 | else if (!strcmp (s+1,"EFORE") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2432: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] 2432 | else if (!strcmp (s+1,"ODY") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2436: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] 2436 | if (!strcmp (s+1,"C") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2440: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] 2440 | if (!strcmp (s+1,"ELETED")) ret = pgm->deleted = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2441: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] 2441 | if (!strcmp (s+1,"RAFT")) ret = pgm->draft = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2444: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] 2444 | if (!strcmp (s+1,"LAGGED")) ret = pgm->flagged = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2445: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] 2445 | else if (!strcmp (s+1,"ROM") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2449: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] 2449 | if (!strcmp (s+1,"EADER") && c == ' ' && *(v = tail + 1) && | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2453: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] 2453 | *hdr = mail_newsearchheader (s,t); | ^ /usr/local/include/c-client/mail.h:1777:43: note: passing argument to parameter 'line' here 1777 | SEARCHHEADER *mail_newsearchheader (char *line,char *text); | ^ imapd.c:2453: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] 2453 | *hdr = mail_newsearchheader (s,t); | ^ /usr/local/include/c-client/mail.h:1777:54: note: passing argument to parameter 'text' here 1777 | SEARCHHEADER *mail_newsearchheader (char *line,char *text); | ^ imapd.c:2460: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] 2460 | if (!strcmp (s+1,"EYWORD") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2464: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] 2464 | if (!strcmp (s+1,"ARGER") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2468: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] 2468 | if (!strcmp (s+1,"EW")) ret = pgm->recent = pgm->unseen = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2469: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] 2469 | else if (!strcmp (s+1,"OT") && c == ' ' && *++tail) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2477: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] 2477 | if (!strcmp (s+1,"LD")) ret = pgm->old = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2478: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] 2478 | else if (!strcmp (s+1,"N") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2480: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] 2480 | else if (!strcmp (s+1,"R") && c == ' ') { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2488: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] 2488 | else if (!strcmp (s+1,"LDER") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2492: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] 2492 | if (!strcmp (s+1,"ECENT")) ret = pgm->recent = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2495: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] 2495 | if (!strcmp (s+1,"EEN")) ret = pgm->seen = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2496: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] 2496 | else if (!strcmp (s+1,"ENTBEFORE") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2498: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] 2498 | else if (!strcmp (s+1,"ENTON") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2500: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] 2500 | else if (!strcmp (s+1,"ENTSINCE") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2502: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] 2502 | else if (!strcmp (s+1,"INCE") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2504: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] 2504 | else if (!strcmp (s+1,"MALLER") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2506: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] 2506 | else if (!strcmp (s+1,"UBJECT") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2510: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] 2510 | if (!strcmp (s+1,"EXT") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2512: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] 2512 | else if (!strcmp (s+1,"O") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2517: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] 2517 | if (!strcmp (s+1,"ID") && c== ' ' && *++tail) { | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2526: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] 2526 | else if (!strcmp (s+1,"NANSWERED")) ret = pgm->unanswered = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2527: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] 2527 | else if (!strcmp (s+1,"NDELETED")) ret = pgm->undeleted = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2528: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] 2528 | else if (!strcmp (s+1,"NDRAFT")) ret = pgm->undraft = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2529: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] 2529 | else if (!strcmp (s+1,"NFLAGGED")) ret = pgm->unflagged = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2530: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] 2530 | else if (!strcmp (s+1,"NKEYWORD") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2532: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] 2532 | else if (!strcmp (s+1,"NSEEN")) ret = pgm->unseen = T; | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2535: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] 2535 | if (!strcmp (s+1,"OUNGER") && c == ' ' && *++tail) | ^~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2698: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] 2698 | char *s = parse_astring (arg,&i,&c); | ^~ imapd.c:2126:25: note: passing argument to parameter 'del' here 2126 | unsigned char *del) | ^ imapd.c:2698: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] 2698 | char *s = parse_astring (arg,&i,&c); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2708: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] 2708 | if (!*arg) *arg = (char *) (*string)->text.data + i; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2755: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] 2755 | if (!strcmp (ucase (t),"ALL")) | ^ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ imapd.c:2755: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] 2755 | if (!strcmp (ucase (t),"ALL")) | ^~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2760:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2760 | if (list = (*t == '(')) t++; /* skip open paren */ | ~~~~~^~~~~~~~~~~~~ imapd.c:2760:12: note: place parentheses around the assignment to silence this warning 2760 | if (list = (*t == '(')) t++; /* skip open paren */ | ^ | ( ) imapd.c:2760:12: note: use '==' to turn this assignment into an equality comparison 2760 | if (list = (*t == '(')) t++; /* skip open paren */ | ^ | == imapd.c:2762: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] 2762 | if (s = strtok_r (t," ",&sstate)) do { | ^ ~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2762:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2762 | if (s = strtok_r (t," ",&sstate)) do { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2762:9: note: place parentheses around the assignment to silence this warning 2762 | if (s = strtok_r (t," ",&sstate)) do { | ^ | ( ) imapd.c:2762:9: note: use '==' to turn this assignment into an equality comparison 2762 | if (s = strtok_r (t," ",&sstate)) do { | ^ | == imapd.c:2763: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] 2763 | if (list && (i = strlen (s)) && (s[i-1] == ')')) { | ^ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:2768: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] 2768 | if (!strcmp (s,"UID")) { /* no-op if implicit */ | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2771: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] 2771 | else if (!strcmp (s,"FLAGS")) f[k++] = fetch_flags; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2772: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] 2772 | else if (!strcmp (s,"INTERNALDATE")) f[k++] = fetch_internaldate; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2773: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] 2773 | else if (!strcmp (s,"RFC822.SIZE")) f[k++] = fetch_rfc822_size; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2774: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] 2774 | else if (!strcmp (s,"ENVELOPE")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2778: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] 2778 | else if (!strcmp (s,"BODY")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2782: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] 2782 | else if (!strcmp (s,"BODYSTRUCTURE")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2786: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] 2786 | else if (!strcmp (s,"RFC822")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2790: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] 2790 | else if (!strcmp (s,"RFC822.HEADER")) f[k++] = fetch_rfc822_header; | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2791: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] 2791 | else if (!strcmp (s,"RFC822.TEXT")) { | ^ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ imapd.c:2796: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] 2796 | else if (!strncmp (s,"BODY[",5) || !strncmp (s,"BODY.PEEK[",10) || | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2796: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] 2796 | else if (!strncmp (s,"BODY[",5) || !strncmp (s,"BODY.PEEK[",10) || | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2797: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] 2797 | !strncmp (s,"BINARY[",7) || !strncmp (s,"BINARY.PEEK[",12) || | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2797: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] 2797 | !strncmp (s,"BINARY[",7) || !strncmp (s,"BINARY.PEEK[",12) || | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2798: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] 2798 | !strncmp (s,"BINARY.SIZE[",12)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2838: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] 2838 | if (!strncmp (v,"MIME",4)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2851: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] 2851 | if (!strncmp (v,"HEADER",6)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2856: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] 2856 | if (!strncmp (v,".FIELDS",7)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2858: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] 2858 | if (!strncmp (v,".NOT",4)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2862:22: 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] 2862 | if (*v || !(v = strtok_r (NIL,"\015\012",&sstate)) || | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:2871: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] 2871 | else if (!strncmp (v,"TEXT",4)) { | ^ /usr/include/string.h:111:26: note: passing argument to parameter here 111 | int strncmp(const char *, const char *, size_t) __pure; | ^ imapd.c:2894:48: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2894 | !(isdigit (v[1]) && ((ta->first = strtoul (v+1,(char **) &v,10)) || | ^~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:2896: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] 2896 | (*v++ == '.') && (ta->last = strtoul (v,(char **) &v,10)) && | ^ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:2905:9: 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] 2905 | sstate = v + 1; /* reset strtok mechanism */ | ^ ~~~~~ imapd.c:2913: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] 2913 | strtok_r (v," ",&sstate); | ^ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:2924:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2924 | if (s && *s) ta->section = cpystr (s); | ^ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:2931: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] 2931 | } while ((s = strtok_r (NIL," ",&sstate)) && (k < MAXFETCH) && list); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:3070: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] 3070 | BODY *body = mail_body (stream,i,ta->section); | ^~~~~~~~~~~ /usr/local/include/c-client/mail.h:1693:19: note: passing argument to parameter 'section' here 1693 | unsigned char *section); | ^ imapd.c:3083:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3083 | if (cst.data = rfc822_base64 (st.data,st.size,&cst.size)) break; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:3083:20: note: place parentheses around the assignment to silence this warning 3083 | if (cst.data = rfc822_base64 (st.data,st.size,&cst.size)) break; | ^ | ( ) imapd.c:3083:20: note: use '==' to turn this assignment into an equality comparison 3083 | if (cst.data = rfc822_base64 (st.data,st.size,&cst.size)) break; | ^ | == imapd.c:3091:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3091 | if (cst.data = rfc822_qprint (st.data,st.size,&cst.size)) break; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:3091:20: note: place parentheses around the assignment to silence this warning 3091 | if (cst.data = rfc822_qprint (st.data,st.size,&cst.size)) break; | ^ | ( ) imapd.c:3091:20: note: use '==' to turn this assignment into an equality comparison 3091 | if (cst.data = rfc822_qprint (st.data,st.size,&cst.size)) break; | ^ | == imapd.c:3287:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3287 | if (u = elt->user_flags) do /* any user flags? */ | ~~^~~~~~~~~~~~~~~~~ imapd.c:3287:9: note: place parentheses around the assignment to silence this warning 3287 | if (u = elt->user_flags) do /* any user flags? */ | ^ | ( ) imapd.c:3287:9: note: use '==' to turn this assignment into an equality comparison 3287 | if (u = elt->user_flags) do /* any user flags? */ | ^ | == imapd.c:3288:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3288 | if (t = stream->user_flags[find_rightmost_bit (&u)]) put_flag (&c,t); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:3288:11: note: place parentheses around the assignment to silence this warning 3288 | if (t = stream->user_flags[find_rightmost_bit (&u)]) put_flag (&c,t); | ^ | ( ) imapd.c:3288:11: note: use '==' to turn this assignment into an equality comparison 3288 | if (t = stream->user_flags[find_rightmost_bit (&u)]) put_flag (&c,t); | ^ | == imapd.c:3444: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] 3444 | pnstring (env->date); /* output envelope fields */ | ^~~~~~~~~ imapd.c:185:22: note: passing argument to parameter 's' here 185 | void pnstring (char *s); | ^ imapd.c:3481:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3481 | if (part = body->nested.part) | ~~~~~^~~~~~~~~~~~~~~~~~~ imapd.c:3481:16: note: place parentheses around the assignment to silence this warning 3481 | if (part = body->nested.part) | ^ | ( ) imapd.c:3481:16: note: use '==' to turn this assignment into an equality comparison 3481 | if (part = body->nested.part) | ^ | == imapd.c:3566:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3566 | if (part = body->nested.part) | ~~~~~^~~~~~~~~~~~~~~~~~~ imapd.c:3566:16: note: place parentheses around the assignment to silence this warning 3566 | if (part = body->nested.part) | ^ | ( ) imapd.c:3566:16: note: use '==' to turn this assignment into an equality comparison 3566 | if (part = body->nested.part) | ^ | == imapd.c:3620:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3620 | if (param = param->next) PBOUT (' '); | ~~~~~~^~~~~~~~~~~~~ imapd.c:3620:17: note: place parentheses around the assignment to silence this warning 3620 | if (param = param->next) PBOUT (' '); | ^ | ( ) imapd.c:3620:17: note: use '==' to turn this assignment into an equality comparison 3620 | if (param = param->next) PBOUT (' '); | ^ | == imapd.c:3646:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3646 | } while (a = a->next); /* until end of address */ | ~~^~~~~~~~~ imapd.c:3646:16: note: place parentheses around the assignment to silence this warning 3646 | } while (a = a->next); /* until end of address */ | ^ | ( ) imapd.c:3646:16: note: use '==' to turn this assignment into an equality comparison 3646 | } while (a = a->next); /* until end of address */ | ^ | == imapd.c:3665:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3665 | if (cur = cur->next) PBOUT (','); | ~~~~^~~~~~~~~~~ imapd.c:3665:13: note: place parentheses around the assignment to silence this warning 3665 | if (cur = cur->next) PBOUT (','); | ^ | ( ) imapd.c:3665:13: note: use '==' to turn this assignment into an equality comparison 3665 | if (cur = cur->next) PBOUT (','); | ^ | == imapd.c:3805:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3805 | } while (s = s->next); | ~~^~~~~~~~~ imapd.c:3805:14: note: place parentheses around the assignment to silence this warning 3805 | } while (s = s->next); | ^ | ( ) imapd.c:3805:14: note: use '==' to turn this assignment into an equality comparison 3805 | } while (s = s->next); | ^ | == imapd.c:3822:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3822 | } while (s = s->next); | ~~^~~~~~~~~ imapd.c:3822:16: note: place parentheses around the assignment to silence this warning 3822 | } while (s = s->next); | ^ | ( ) imapd.c:3822:16: note: use '==' to turn this assignment into an equality comparison 3822 | } while (s = s->next); | ^ | == imapd.c:3880:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3880 | if (s = txt->data) while (i && ((PBOUT ((c = *s++) ? c : 0x80) != EOF))) --i; | ~~^~~~~~~~~~~ imapd.c:3880:9: note: place parentheses around the assignment to silence this warning 3880 | if (s = txt->data) while (i && ((PBOUT ((c = *s++) ? c : 0x80) != EOF))) --i; | ^ | ( ) imapd.c:3880:9: note: use '==' to turn this assignment into an equality comparison 3880 | if (s = txt->data) while (i && ((PBOUT ((c = *s++) ? c : 0x80) != EOF))) --i; | ^ | == imapd.c:3897:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3897 | if (t = thr->next) { /* any subsequent nodes? */ | ~~^~~~~~~~~~~ imapd.c:3897:13: note: place parentheses around the assignment to silence this warning 3897 | if (t = thr->next) { /* any subsequent nodes? */ | ^ | ( ) imapd.c:3897:13: note: use '==' to turn this assignment into an equality comparison 3897 | if (t = thr->next) { /* any subsequent nodes? */ | ^ | == imapd.c:3950:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3950 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ~~^~~~~~~~~~~~~~~~~~~~~ imapd.c:3950:11: note: place parentheses around the assignment to silence this warning 3950 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ | ( ) imapd.c:3950:11: note: use '==' to turn this assignment into an equality comparison 3950 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ | == imapd.c:3984: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] 3984 | for (s = ref, t = oktab[i]; *t && !compare_uchar (*s,*t); s++, t++); | ^ ~~~ imapd.c:3984: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] 3984 | for (s = ref, t = oktab[i]; *t && !compare_uchar (*s,*t); s++, t++); | ^ ~~~~~~~~ imapd.c:3993: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] 3993 | for (s = name, t = oktab[i]; *t && !compare_uchar (*s,*t); s++, t++); | ^ ~~~~ imapd.c:3993:22: 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] 3993 | for (s = name, t = oktab[i]; *t && !compare_uchar (*s,*t); s++, t++); | ^ ~~~~~~~~ imapd.c:4139: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] 4139 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence))) | ^~~~~~~~ /usr/local/include/c-client/mail.h:1763:59: note: passing argument to parameter 'sequence' here 1763 | long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); | ^ imapd.c:4139: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] 4139 | mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence))) | ^~~~~~~~ /usr/local/include/c-client/mail.h:1762:55: note: passing argument to parameter 'sequence' here 1762 | long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); | ^ imapd.c:4145:36: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4145 | if (mail_elt (stream,i)->spare = mail_elt (stream,i)->sequence) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imapd.c:4145:36: note: place parentheses around the assignment to silence this warning 4145 | if (mail_elt (stream,i)->spare = mail_elt (stream,i)->sequence) { | ^ | ( ) imapd.c:4145:36: note: use '==' to turn this assignment into an equality comparison 4145 | if (mail_elt (stream,i)->spare = mail_elt (stream,i)->sequence) { | ^ | == imapd.c:4200:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4200 | if (i = elt->user_flags) do | ~~^~~~~~~~~~~~~~~~~ imapd.c:4200:13: note: place parentheses around the assignment to silence this warning 4200 | if (i = elt->user_flags) do | ^ | ( ) imapd.c:4200:13: note: use '==' to turn this assignment into an equality comparison 4200 | if (i = elt->user_flags) do | ^ | == imapd.c:4232:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4232 | if (t = ad->flags) fs_give ((void **) &ad->flags); | ~~^~~~~~~~~~~ imapd.c:4232:9: note: place parentheses around the assignment to silence this warning 4232 | if (t = ad->flags) fs_give ((void **) &ad->flags); | ^ | ( ) imapd.c:4232:9: note: use '==' to turn this assignment into an equality comparison 4232 | if (t = ad->flags) fs_give ((void **) &ad->flags); | ^ | == imapd.c:4233:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4233 | if (t = ad->date) fs_give ((void **) &ad->date); | ~~^~~~~~~~~~ imapd.c:4233:9: note: place parentheses around the assignment to silence this warning 4233 | if (t = ad->date) fs_give ((void **) &ad->date); | ^ | ( ) imapd.c:4233:9: note: use '==' to turn this assignment into an equality comparison 4233 | if (t = ad->date) fs_give ((void **) &ad->date); | ^ | == imapd.c:4234:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4234 | if (t = ad->msg) fs_give ((void **) &ad->msg); | ~~^~~~~~~~~ imapd.c:4234:9: note: place parentheses around the assignment to silence this warning 4234 | if (t = ad->msg) fs_give ((void **) &ad->msg); | ^ | ( ) imapd.c:4234:9: note: use '==' to turn this assignment into an equality comparison 4234 | if (t = ad->msg) fs_give ((void **) &ad->msg); | ^ | == imapd.c:4248: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] 4248 | t = ++arg; /* pointer to flag list contents */ | ^ ~~~~~ imapd.c:4255: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] 4255 | if (*arg == '"') *date = ad->date = cpystr (snarf (&arg)); | ^~~~~~~~~~~~ /usr/local/include/c-client/misc.h:84:27: note: passing argument to parameter 'string' here 84 | char *cpystr (const char *string); | ^ imapd.c:4260: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] 4260 | else if (!(i = strtoul (arg+1,&t,10))) | ^~~~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:4268: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] 4268 | slurp (ad->arg,CMDLEN - (ad->arg - cmdbuf),INPUTTIMEOUT); | ^~~~~~~ imapd.c:2023:19: note: passing argument to parameter 's' here 2023 | void slurp (char *s,int n,unsigned long timeout) | ^ imapd.c:4269: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] 4269 | if (strchr (ad->arg,'\012')) { | ^~~~~~~ /usr/include/string.h:80:26: note: passing argument to parameter here 80 | char *strchr(const char *, int) __pure; | ^ imapd.c:4271: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] 4271 | if (!strtok_r (ad->arg,"\015\012",&sstate)) *ad->arg = '\0'; | ^~~~~~~ /usr/include/string.h:134:22: note: passing argument to parameter here 134 | char *strtok_r(char *, const char *, char **); | ^ imapd.c:4273: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] 4273 | if (((j = strlen (ad->arg)) > 3) && (ad->arg[j - 1] == '}') && | ^~~~~~~ /usr/include/string.h:100:28: note: passing argument to parameter here 100 | size_t strlen(const char *) __pure; | ^ imapd.c:4279: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] 4279 | litplus.size = strtoul (ad->arg + j + 1,NIL,10); | ^~~~~~~~~~~~~~~ /usr/include/stdlib.h:120:34: note: passing argument to parameter here 120 | strtoul(const char * __restrict, char ** __restrict, int); | ^ imapd.c:4649: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] 4649 | strncpy (password,pass,256); /* and password */ | ^~~~ /usr/include/string.h:112:57: note: passing argument to parameter here 112 | char *strncpy(char * __restrict, const char * __restrict, size_t); | ^ 437 warnings generated. cc -DNFSKLUDGE -I/usr/local/include/c-client -DANOFILE=\"/usr/local/etc/anonymous.newsgroups\" -DALERTFILE=\"/usr/local/etc/imapd.alert\" -DNNTPFILE=\"/usr/local//etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/usr/local/etc/nologin\" -o imapd imapd.o -L/usr/local/lib -lc-client -L/usr/local/lib -lc-client cd mailutil;make cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c mailutil.c -o mailutil.o mailutil.c:287:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 287 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | (debugp ? OP_DEBUG : NIL))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c:287:21: note: place parentheses around the assignment to silence this warning 287 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^ | ( 288 | (debugp ? OP_DEBUG : NIL))) { | | ) mailutil.c:287:21: note: use '==' to turn this assignment into an equality comparison 287 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^ | == mailutil.c:298:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 298 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 299 | (debugp ? OP_DEBUG : NIL))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c:298:21: note: place parentheses around the assignment to silence this warning 298 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^ | ( 299 | (debugp ? OP_DEBUG : NIL))) { | | ) mailutil.c:298:21: note: use '==' to turn this assignment into an equality comparison 298 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^ | == mailutil.c:379:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 379 | if (t = strchr (tmp+1,'\n')) *t = '\0'; | ~~^~~~~~~~~~~~~~~~~~~~~ mailutil.c:379:8: note: place parentheses around the assignment to silence this warning 379 | if (t = strchr (tmp+1,'\n')) *t = '\0'; | ^ | ( ) mailutil.c:379:8: note: use '==' to turn this assignment into an equality comparison 379 | if (t = strchr (tmp+1,'\n')) *t = '\0'; | ^ | == mailutil.c:387:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 387 | while (c = *t1++) { /* swap delimiters then */ | ~~^~~~~~~ mailutil.c:387:13: note: place parentheses around the assignment to silence this warning 387 | while (c = *t1++) { /* swap delimiters then */ | ^ | ( ) mailutil.c:387:13: note: use '==' to turn this assignment into an equality comparison 387 | while (c = *t1++) { /* swap delimiters then */ | ^ | == mailutil.c:399:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 399 | if (source = mail_open (source,tmp+1,(debugp ? OP_DEBUG : NIL) | | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 400 | (rwcopyp ? NIL : OP_READONLY))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c:399:13: note: place parentheses around the assignment to silence this warning 399 | if (source = mail_open (source,tmp+1,(debugp ? OP_DEBUG : NIL) | | ^ | ( 400 | (rwcopyp ? NIL : OP_READONLY))) { | | ) mailutil.c:399:13: note: use '==' to turn this assignment into an equality comparison 399 | if (source = mail_open (source,tmp+1,(debugp ? OP_DEBUG : NIL) | | ^ | == mailutil.c:456: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] 456 | switch (*ucase (criterion)) { | ^~~~~~~~~ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ mailutil.c:598:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 598 | if (s = strchr (tmp,'\n')) *s = '\0'; | ~~^~~~~~~~~~~~~~~~~~~ mailutil.c:598:8: note: place parentheses around the assignment to silence this warning 598 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ | ( ) mailutil.c:598:8: note: use '==' to turn this assignment into an equality comparison 598 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ | == mailutil.c:627:46: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 627 | for (i = 0; i < NUSERFLAGS; ++i) if (t = source->user_flags[i]) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ mailutil.c:627:46: note: place parentheses around the assignment to silence this warning 627 | for (i = 0; i < NUSERFLAGS; ++i) if (t = source->user_flags[i]) { | ^ | ( ) mailutil.c:627:46: note: use '==' to turn this assignment into an equality comparison 627 | for (i = 0; i < NUSERFLAGS; ++i) if (t = source->user_flags[i]) { | ^ | == mailutil.c:898:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 898 | if (s = strchr (username,'\n')) *s = '\0'; | ~~^~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c:898:11: note: place parentheses around the assignment to silence this warning 898 | if (s = strchr (username,'\n')) *s = '\0'; | ^ | ( ) mailutil.c:898:11: note: use '==' to turn this assignment into an equality comparison 898 | if (s = strchr (username,'\n')) *s = '\0'; | ^ | == 9 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o mailutil mailutil.o -L/usr/local/lib -lc-client cd mlock;make || true cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -c mlock.c -o mlock.o mlock.c:60:3: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | write (1,"?",1); /* indicate "impossible" failure */ | ^ mlock.c:75:31: warning: call to undeclared function 'getegid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | if (!grp || (grp->gr_gid != getegid ())) | ^ mlock.c:94:3: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 94 | chdir (dir); | ^ mlock.c:114:7: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | unlink (lock); /* time out lock if enough time has passed */ | ^ mlock.c:123:23: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | (unsigned long) getpid ()); | ^ mlock.c:125:5: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 125 | gethostname (hitch + len,MAXHOSTNAMELEN); | ^ mlock.c:132:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | close (ld); /* close the hitching-post */ | ^ mlock.c:138:11: warning: call to undeclared function 'link'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | i = link (hitch,lock) ? errno : 0; | ^ mlock.c:161:20: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | if (tries--) sleep (1); /* sleep 1 second and try again */ | ^ mlock.c:163:2: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 163 | write (1,"-",1); /* hard failure */ | ^ mlock.c:168:3: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | write (1,"+",1); /* indicate that all is well */ | ^ mlock.c:169:3: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | read (0,tmp,1); /* read continue signal from parent */ | ^ mlock.c:172:34: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | (fsb.st_ino == sb.st_ino)) unlink (lock); | ^ 13 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -o mlock mlock.o cd dmail;make || true cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c dmail.c -o dmail.o dmail.c:118:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dmail.c:118:18: note: place parentheses around the assignment to silence this warning 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ | ( ) dmail.c:118:18: note: use '==' to turn this assignment into an equality comparison 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ | == dmail.c:160:35: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); | ^ dmail.c:160:35: note: include the header or explicitly provide a declaration for 'isdigit' dmail.c:227:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 227 | if (mailbox = strchr (user,'+')) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ dmail.c:227:15: note: place parentheses around the assignment to silence this warning 227 | if (mailbox = strchr (user,'+')) { | ^ | ( ) dmail.c:227:15: note: use '==' to turn this assignment into an equality comparison 227 | if (mailbox = strchr (user,'+')) { | ^ | == dmail.c:229: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] 229 | if (!*mailbox || !compare_cstring ((unsigned char *) mailbox,"INBOX")) | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ dmail.c:565: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] 565 | if (!strcmp (ucase (strncpy (tmp,string,11)),"[TRYCREATE]")) trycreate = T; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ dmail.c:565: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] 565 | if (!strcmp (ucase (strncpy (tmp,string,11)),"[TRYCREATE]")) trycreate = T; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ 6 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c dquota.c -o dquota.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o dmail dmail.o dquota.o -L/usr/local/lib -lc-client cd tmail;make || true cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c tmail.c -o tmail.o tmail.c:118:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tmail.c:118:18: note: place parentheses around the assignment to silence this warning 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ | ( ) tmail.c:118:18: note: use '==' to turn this assignment into an equality comparison 118 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ | == tmail.c:163: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] 163 | !compare_cstring (format->name,"dummy")) | ^~~~~~~~~~~~ /usr/local/include/c-client/misc.h:106:37: note: passing argument to parameter 's1' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ tmail.c:163: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] 163 | !compare_cstring (format->name,"dummy")) | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ tmail.c:168:37: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); | ^ tmail.c:168:37: note: include the header or explicitly provide a declaration for 'isdigit' tmail.c:603:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 603 | if (*t = strchr (s,'+')) { /* have a mailbox specifier? */ | ~~~^~~~~~~~~~~~~~~~ tmail.c:603:10: note: place parentheses around the assignment to silence this warning 603 | if (*t = strchr (s,'+')) { /* have a mailbox specifier? */ | ^ | ( ) tmail.c:603:10: note: use '==' to turn this assignment into an equality comparison 603 | if (*t = strchr (s,'+')) { /* have a mailbox specifier? */ | ^ | == tmail.c:608: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] 608 | if (!**t || !compare_cstring ((unsigned char *) *t,"INBOX")) *t = NIL; | ^~~~~~~ /usr/local/include/c-client/misc.h:106:55: note: passing argument to parameter 's2' here 106 | int compare_cstring (unsigned char *s1,unsigned char *s2); | ^ tmail.c:705: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] 705 | if (!strcmp (ucase (strncpy (tmp,string,11)),"[TRYCREATE]")) trycreate = T; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/c-client/misc.h:82:38: note: passing argument to parameter 'string' here 82 | unsigned char *ucase (unsigned char *string); | ^ tmail.c:705: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] 705 | if (!strcmp (ucase (strncpy (tmp,string,11)),"[TRYCREATE]")) trycreate = T; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ 8 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -c tquota.c -o tquota.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNFSKLUDGE -I/usr/local/include/c-client -o tmail tmail.o tquota.o -L/usr/local/lib -lc-client =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for panda-imap-20130621_4 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/imapd/imapd /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/libexec/ install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/ipopd/ipop2d /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/libexec/ install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/ipopd/ipop3d /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/libexec/ install -s /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/mlock/mlock /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/libexec install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/mtest/mtest /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/bin/mboxtest install -m 444 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/src/imapd/imapd.8 /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/man/man8/imapd.8 install -m 444 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/src/ipopd/ipopd.8 /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/man/man8/ipopd.8 install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/dmail/dmail /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/bin/ install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/mailutil/mailutil /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/bin/ install -s -m 555 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/tmail/tmail /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/bin/ install -m 444 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/src/dmail/dmail.1 /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/man/man1/ install -m 444 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/src/mailutil/mailutil.1 /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/man/man1/ install -m 444 /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/src/tmail/tmail.1 /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/man/man1/ /bin/mkdir -p -m 0755 -p /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/doc/panda-imap /usr/bin/tar -C /wrkdirs/usr/ports/mail/panda-imap/work/panda-imap-01eaaa96c85c5791d5cffdf20c360b329bc44d88/docs -cf - . | (umask 022; /usr/bin/tar -C /wrkdirs/usr/ports/mail/panda-imap/work/stage/usr/local/share/doc/panda-imap -xf -) ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2026-01-22T13:14:34+0000' 'PKG_NOTE_ports_top_git_hash=076a295eb33c' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=dd20c06e00c3' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for panda-imap-20130621_4 ===> Building panda-imap-20130621_4 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for panda-imap-20130621_4 build of mail/panda-imap | panda-imap-20130621_4 ended at Thu Jan 22 08:14:43 EST 2026 build time: 00:00:11