DC-Build-Header: tkrat 1:2.2cvs20100105-true-dfsg-5 / Mon Jul 09 20:34:43 +0000 2012 DC-Task: logfile:/tmp/tkrat_2.2cvs20100105-true-dfsg-5_unstable_clang.log version:1:2.2cvs20100105-true-dfsg-5 modes:clang chroot:unstable source:tkrat esttime: architecture:any DC-Sbuild-call: su user -c 'sbuild -n -A -s --force-orig-source --apt-update -d unstable -v --chroot-setup-commands=/tmp/switch-to-clang tkrat_1:2.2cvs20100105-true-dfsg-5' sbuild (Debian sbuild) 0.62.5 (13 Jul 2011) on ip-10-29-134-79.ec2.internal ╔══════════════════════════════════════════════════════════════════════════════╗ ║ tkrat 1:2.2cvs20100105-true-dfsg-5 (amd64) 09 Jul 2012 20:34 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: tkrat Version: 1:2.2cvs20100105-true-dfsg-5 Source Version: 1:2.2cvs20100105-true-dfsg-5 Distribution: unstable Architecture: amd64 I: NOTICE: Log filtering will replace 'build/tkrat-XK4NYT/tkrat-2.2cvs20100105-true-dfsg' with '«PKGBUILDDIR»' I: NOTICE: Log filtering will replace 'build/tkrat-XK4NYT' with '«BUILDDIR»' I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/unstable-amd64-sbuild-14247a09-3aba-4e68-a513-fb74daf143ef' with '«CHROOT»' ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Ign http://localhost unstable/main Sources/DiffIndex Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Hit http://localhost unstable/main Sources Hit http://localhost unstable/main amd64 Packages Reading package lists... Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... NOTICE: 'tkrat' packaging is maintained in the 'Git' version control system at: git://git.debian.org/git/collab-maint/tkrat.git Need to get 2115 kB of source archives. Get:1 http://localhost/debian/ unstable/main tkrat 1:2.2cvs20100105-true-dfsg-5 (dsc) [1460 B] Get:2 http://localhost/debian/ unstable/main tkrat 1:2.2cvs20100105-true-dfsg-5 (tar) [2103 kB] Get:3 http://localhost/debian/ unstable/main tkrat 1:2.2cvs20100105-true-dfsg-5 (diff) [10.5 kB] Fetched 2115 kB in 0s (17.7 MB/s) Download complete and in download only mode Check arch ────────── ┌──────────────────────────────────────────────────────────────────────────────┐ │ Chroot Setup Commands │ └──────────────────────────────────────────────────────────────────────────────┘ /tmp/switch-to-clang ──────────────────── + echo 'Entering customization script...' Entering customization script... + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Ign http://localhost unstable/main Sources/DiffIndex Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Hit http://localhost unstable/main Sources Hit http://localhost unstable/main amd64 Packages Reading package lists... + echo 'Install of clang' Install of clang + apt-get update Ign http://localhost unstable InRelease Hit http://localhost unstable Release.gpg Hit http://localhost unstable Release Ign http://localhost unstable/main Sources/DiffIndex Ign http://localhost unstable/main amd64 Packages/DiffIndex Hit http://localhost unstable/main Translation-en/DiffIndex Hit http://localhost unstable/main Sources Hit http://localhost unstable/main amd64 Packages Reading package lists... + apt-get install --yes --no-install-recommends clang -t unstable Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libclang-common-dev libffi5 libllvm3.1 Recommended packages: llvm-3.1-dev python The following NEW packages will be installed: clang libclang-common-dev libffi5 libllvm3.1 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB of archives. After this operation, 35.6 MB of additional disk space will be used. Get:1 http://localhost/debian/ unstable/main libffi5 amd64 3.0.10-3 [24.8 kB] Get:2 http://localhost/debian/ unstable/main libllvm3.1 amd64 3.1-2 [7275 kB] Get:3 http://localhost/debian/ unstable/main libclang-common-dev amd64 3.1-8 [84.3 kB] Get:4 http://localhost/debian/ unstable/main clang amd64 3.1-8 [5755 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 13.1 MB in 0s (30.0 MB/s) Selecting previously unselected package libffi5:amd64. (Reading database ... 11729 files and directories currently installed.) Unpacking libffi5:amd64 (from .../libffi5_3.0.10-3_amd64.deb) ... Selecting previously unselected package libllvm3.1:amd64. Unpacking libllvm3.1:amd64 (from .../libllvm3.1_3.1-2_amd64.deb) ... Selecting previously unselected package libclang-common-dev. Unpacking libclang-common-dev (from .../libclang-common-dev_3.1-8_amd64.deb) ... Selecting previously unselected package clang. Unpacking clang (from .../archives/clang_3.1-8_amd64.deb) ... Setting up libffi5:amd64 (3.0.10-3) ... Setting up libllvm3.1:amd64 (3.1-2) ... Setting up libclang-common-dev (3.1-8) ... Setting up clang (3.1-8) ... + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSION=4.7 + cd /usr/bin + rm g++-4.7 gcc-4.7 cpp-4.7 + ln -s clang++ g++-4.7 + ln -s clang gcc-4.7 + ln -s clang cpp-4.7 + cd - /«BUILDDIR» + echo 'Block the installation of new gcc version' Block the installation of new gcc version + dpkg --set-selections + echo 'gcc-4.6 hold' + dpkg --set-selections + echo 'cpp-4.6 hold' + dpkg --set-selections + echo 'g++-4.6 hold' + dpkg --set-selections + echo 'gcc-4.7 hold' + dpkg --set-selections + echo 'cpp-4.7 hold' + dpkg --set-selections + echo 'g++-4.7 hold' + echo 'Check if gcc, g++ & cpp are actually clang' Check if gcc, g++ & cpp are actually clang + grep clang + gcc --version I: Finished running '/tmp/switch-to-clang'. Finished processing commands. ──────────────────────────────────────────────────────────────────────────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/«BUILDDIR»/resolver-CJo4A4/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy debconf: delaying package configuration, since apt-utils is not installed 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/706 B of archives. After this operation, 0 B of additional disk space will be used. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 11809 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Merged Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), cdbs, debhelper (>= 7.4.20), autoconf, autotools-dev, libssl-dev, libpam-dev, tk8.5-dev Merged Build-Conflicts: autoconf2.13 Filtered Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), cdbs, debhelper (>= 7.4.20), autoconf, autotools-dev, libssl-dev, libpam-dev, tk8.5-dev Filtered Build-Conflicts: autoconf2.13 dpkg-deb: building package `sbuild-build-depends-tkrat-dummy' in `/«BUILDDIR»/resolver-oZQdwn/apt_archive/sbuild-build-depends-tkrat-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install tkrat build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: autoconf autotools-dev bsdmainutils cdbs debhelper file fontconfig-config gettext gettext-base groff-base html2text intltool-debian libasprintf0c2 libcroco3 libexpat1 libexpat1-dev libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libgettextpo0 libglib2.0-0 libmagic1 libpam0g-dev libpcre3 libpipeline1 libpopt0 libpthread-stubs0 libpthread-stubs0-dev libssl-dev libssl1.0.0 libunistring0 libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxcb1 libxcb1-dev libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxft-dev libxft2 libxml2 libxrender-dev libxrender1 libxss-dev libxss1 m4 man-db pkg-config po-debconf tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev ttf-dejavu-core x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev zlib1g-dev Suggested packages: autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool wamerican wordlist whois vacation devscripts dh-make gettext-doc groff libxcb-doc libxext-doc less www-browser libmail-box-perl tcl-tclreadline tcl8.5-doc tk8.5-doc Recommended packages: automake automaken curl wget lynx-cur autopoint libglib2.0-data shared-mime-info libssl-doc libx11-doc xml-core libmail-sendmail-perl xterm x-terminal-emulator The following NEW packages will be installed: autoconf autotools-dev bsdmainutils cdbs debhelper file fontconfig-config gettext gettext-base groff-base html2text intltool-debian libasprintf0c2 libcroco3 libexpat1 libexpat1-dev libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libgettextpo0 libglib2.0-0 libmagic1 libpam0g-dev libpcre3 libpipeline1 libpopt0 libpthread-stubs0 libpthread-stubs0-dev libssl-dev libssl1.0.0 libunistring0 libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxcb1 libxcb1-dev libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxft-dev libxft2 libxml2 libxrender-dev libxrender1 libxss-dev libxss1 m4 man-db pkg-config po-debconf sbuild-build-depends-tkrat-dummy tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev ttf-dejavu-core x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev zlib1g-dev 0 upgraded, 70 newly installed, 0 to remove and 0 not upgraded. Need to get 28.5 MB/28.5 MB of archives. After this operation, 77.2 MB of additional disk space will be used. Get:1 http://localhost/debian/ unstable/main libpipeline1 amd64 1.2.1-1 [39.2 kB] Get:2 http://localhost/debian/ unstable/main libpopt0 amd64 1.16-7 [56.4 kB] Get:3 http://localhost/debian/ unstable/main libssl1.0.0 amd64 1.0.1c-3 [1211 kB] Get:4 http://localhost/debian/ unstable/main libasprintf0c2 amd64 0.18.1.1-9 [26.8 kB] Get:5 http://localhost/debian/ unstable/main libmagic1 amd64 5.11-2 [202 kB] Get:6 http://localhost/debian/ unstable/main libpcre3 amd64 1:8.30-5 [242 kB] Get:7 http://localhost/debian/ unstable/main libxml2 amd64 2.8.0+dfsg1-4 [903 kB] Get:8 http://localhost/debian/ unstable/main libglib2.0-0 amd64 2.32.3-1 [2081 kB] Get:9 http://localhost/debian/ unstable/main libcroco3 amd64 0.6.5-1 [151 kB] Get:10 http://localhost/debian/ unstable/main libexpat1 amd64 2.1.0-1 [141 kB] Get:11 http://localhost/debian/ unstable/main libfreetype6 amd64 2.4.9-1 [450 kB] Get:12 http://localhost/debian/ unstable/main ttf-dejavu-core all 2.33-2 [1552 kB] Get:13 http://localhost/debian/ unstable/main fontconfig-config all 2.9.0-6 [232 kB] Get:14 http://localhost/debian/ unstable/main libfontconfig1 amd64 2.9.0-6 [299 kB] Get:15 http://localhost/debian/ unstable/main libunistring0 amd64 0.9.3-5 [434 kB] Get:16 http://localhost/debian/ unstable/main libgettextpo0 amd64 0.18.1.1-9 [145 kB] Get:17 http://localhost/debian/ unstable/main libxau6 amd64 1:1.0.7-1 [18.8 kB] Get:18 http://localhost/debian/ unstable/main libxdmcp6 amd64 1:1.1.1-1 [26.3 kB] Get:19 http://localhost/debian/ unstable/main libxcb1 amd64 1.8.1-1 [50.0 kB] Get:20 http://localhost/debian/ unstable/main libx11-data all 2:1.5.0-1 [189 kB] Get:21 http://localhost/debian/ unstable/main libx11-6 amd64 2:1.5.0-1 [901 kB] Get:22 http://localhost/debian/ unstable/main libxext6 amd64 2:1.3.1-2 [55.3 kB] Get:23 http://localhost/debian/ unstable/main libxrender1 amd64 1:0.9.7-1 [32.2 kB] Get:24 http://localhost/debian/ unstable/main libxft2 amd64 2.3.1-1 [61.0 kB] Get:25 http://localhost/debian/ unstable/main x11-common all 1:7.7+1 [278 kB] Get:26 http://localhost/debian/ unstable/main libxss1 amd64 1:1.2.2-1 [17.5 kB] Get:27 http://localhost/debian/ unstable/main bsdmainutils amd64 9.0.3 [209 kB] Get:28 http://localhost/debian/ unstable/main groff-base amd64 1.21-9 [1153 kB] Get:29 http://localhost/debian/ unstable/main man-db amd64 2.6.2-1 [1061 kB] Get:30 http://localhost/debian/ unstable/main file amd64 5.11-2 [51.8 kB] Get:31 http://localhost/debian/ unstable/main gettext-base amd64 0.18.1.1-9 [154 kB] Get:32 http://localhost/debian/ unstable/main m4 amd64 1.4.16-3 [260 kB] Get:33 http://localhost/debian/ unstable/main autoconf all 2.69-1 [589 kB] Get:34 http://localhost/debian/ unstable/main autotools-dev all 20120608.1 [73.0 kB] Get:35 http://localhost/debian/ unstable/main cdbs all 0.4.116 [79.9 kB] Get:36 http://localhost/debian/ unstable/main html2text amd64 1.3.2a-15 [103 kB] Get:37 http://localhost/debian/ unstable/main gettext amd64 0.18.1.1-9 [1975 kB] Get:38 http://localhost/debian/ unstable/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:39 http://localhost/debian/ unstable/main po-debconf all 1.0.16+nmu2 [224 kB] Get:40 http://localhost/debian/ unstable/main debhelper all 9.20120608 [700 kB] Get:41 http://localhost/debian/ unstable/main libexpat1-dev amd64 2.1.0-1 [229 kB] Get:42 http://localhost/debian/ unstable/main zlib1g-dev amd64 1:1.2.7.dfsg-13 [215 kB] Get:43 http://localhost/debian/ unstable/main libfreetype6-dev amd64 2.4.9-1 [803 kB] Get:44 http://localhost/debian/ unstable/main pkg-config amd64 0.26-1 [59.5 kB] Get:45 http://localhost/debian/ unstable/main libfontconfig1-dev amd64 2.9.0-6 [857 kB] Get:46 http://localhost/debian/ unstable/main libpam0g-dev amd64 1.1.3-7.1 [191 kB] Get:47 http://localhost/debian/ unstable/main libpthread-stubs0 amd64 0.3-3 [3228 B] Get:48 http://localhost/debian/ unstable/main libpthread-stubs0-dev amd64 0.3-3 [3998 B] Get:49 http://localhost/debian/ unstable/main libssl-dev amd64 1.0.1c-3 [1696 kB] Get:50 http://localhost/debian/ unstable/main xorg-sgml-doctools all 1:1.10-1 [24.1 kB] Get:51 http://localhost/debian/ unstable/main x11proto-core-dev all 7.0.23-1 [774 kB] Get:52 http://localhost/debian/ unstable/main libxau-dev amd64 1:1.0.7-1 [21.7 kB] Get:53 http://localhost/debian/ unstable/main libxdmcp-dev amd64 1:1.1.1-1 [42.3 kB] Get:54 http://localhost/debian/ unstable/main x11proto-input-dev all 2.2-1 [172 kB] Get:55 http://localhost/debian/ unstable/main x11proto-kb-dev all 1.0.6-2 [269 kB] Get:56 http://localhost/debian/ unstable/main xtrans-dev all 1.2.7-1 [112 kB] Get:57 http://localhost/debian/ unstable/main libxcb1-dev amd64 1.8.1-1 [86.6 kB] Get:58 http://localhost/debian/ unstable/main libx11-dev amd64 2:1.5.0-1 [1037 kB] Get:59 http://localhost/debian/ unstable/main x11proto-xext-dev all 7.2.1-1 [273 kB] Get:60 http://localhost/debian/ unstable/main libxext-dev amd64 2:1.3.1-2 [115 kB] Get:61 http://localhost/debian/ unstable/main x11proto-render-dev all 2:0.11.1-2 [20.8 kB] Get:62 http://localhost/debian/ unstable/main libxrender-dev amd64 1:0.9.7-1 [40.4 kB] Get:63 http://localhost/debian/ unstable/main libxft-dev amd64 2.3.1-1 [74.5 kB] Get:64 http://localhost/debian/ unstable/main x11proto-scrnsaver-dev all 1.2.2-1 [25.0 kB] Get:65 http://localhost/debian/ unstable/main libxss-dev amd64 1:1.2.2-1 [22.8 kB] Get:66 http://localhost/debian/ unstable/main tcl8.5 amd64 8.5.11-2 [1627 kB] Get:67 http://localhost/debian/ unstable/main tcl8.5-dev amd64 8.5.11-2 [1089 kB] Get:68 http://localhost/debian/ unstable/main tk8.5 amd64 8.5.11-2 [1189 kB] Get:69 http://localhost/debian/ unstable/main tk8.5-dev amd64 8.5.11-2 [1008 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 28.5 MB in 1s (24.1 MB/s) Selecting previously unselected package libpipeline1:amd64. (Reading database ... 11809 files and directories currently installed.) Unpacking libpipeline1:amd64 (from .../libpipeline1_1.2.1-1_amd64.deb) ... Selecting previously unselected package libpopt0:amd64. Unpacking libpopt0:amd64 (from .../libpopt0_1.16-7_amd64.deb) ... Selecting previously unselected package libssl1.0.0:amd64. Unpacking libssl1.0.0:amd64 (from .../libssl1.0.0_1.0.1c-3_amd64.deb) ... Selecting previously unselected package libasprintf0c2:amd64. Unpacking libasprintf0c2:amd64 (from .../libasprintf0c2_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package libmagic1:amd64. Unpacking libmagic1:amd64 (from .../libmagic1_5.11-2_amd64.deb) ... Selecting previously unselected package libpcre3:amd64. Unpacking libpcre3:amd64 (from .../libpcre3_1%3a8.30-5_amd64.deb) ... Selecting previously unselected package libxml2:amd64. Unpacking libxml2:amd64 (from .../libxml2_2.8.0+dfsg1-4_amd64.deb) ... Selecting previously unselected package libglib2.0-0:amd64. Unpacking libglib2.0-0:amd64 (from .../libglib2.0-0_2.32.3-1_amd64.deb) ... Selecting previously unselected package libcroco3:amd64. Unpacking libcroco3:amd64 (from .../libcroco3_0.6.5-1_amd64.deb) ... Selecting previously unselected package libexpat1:amd64. Unpacking libexpat1:amd64 (from .../libexpat1_2.1.0-1_amd64.deb) ... Selecting previously unselected package libfreetype6:amd64. Unpacking libfreetype6:amd64 (from .../libfreetype6_2.4.9-1_amd64.deb) ... Selecting previously unselected package ttf-dejavu-core. Unpacking ttf-dejavu-core (from .../ttf-dejavu-core_2.33-2_all.deb) ... Selecting previously unselected package fontconfig-config. Unpacking fontconfig-config (from .../fontconfig-config_2.9.0-6_all.deb) ... Selecting previously unselected package libfontconfig1:amd64. Unpacking libfontconfig1:amd64 (from .../libfontconfig1_2.9.0-6_amd64.deb) ... Selecting previously unselected package libunistring0:amd64. Unpacking libunistring0:amd64 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package libgettextpo0:amd64. Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package libxau6:amd64. Unpacking libxau6:amd64 (from .../libxau6_1%3a1.0.7-1_amd64.deb) ... Selecting previously unselected package libxdmcp6:amd64. Unpacking libxdmcp6:amd64 (from .../libxdmcp6_1%3a1.1.1-1_amd64.deb) ... Selecting previously unselected package libxcb1:amd64. Unpacking libxcb1:amd64 (from .../libxcb1_1.8.1-1_amd64.deb) ... Selecting previously unselected package libx11-data. Unpacking libx11-data (from .../libx11-data_2%3a1.5.0-1_all.deb) ... Selecting previously unselected package libx11-6:amd64. Unpacking libx11-6:amd64 (from .../libx11-6_2%3a1.5.0-1_amd64.deb) ... Selecting previously unselected package libxext6:amd64. Unpacking libxext6:amd64 (from .../libxext6_2%3a1.3.1-2_amd64.deb) ... Selecting previously unselected package libxrender1:amd64. Unpacking libxrender1:amd64 (from .../libxrender1_1%3a0.9.7-1_amd64.deb) ... Selecting previously unselected package libxft2:amd64. Unpacking libxft2:amd64 (from .../libxft2_2.3.1-1_amd64.deb) ... Selecting previously unselected package x11-common. Unpacking x11-common (from .../x11-common_1%3a7.7+1_all.deb) ... Selecting previously unselected package libxss1:amd64. Unpacking libxss1:amd64 (from .../libxss1_1%3a1.2.2-1_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_9.0.3_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-9_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.2-1_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../archives/file_5.11-2_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package m4. Unpacking m4 (from .../archives/m4_1.4.16-3_amd64.deb) ... Selecting previously unselected package autoconf. Unpacking autoconf (from .../autoconf_2.69-1_all.deb) ... Selecting previously unselected package autotools-dev. Unpacking autotools-dev (from .../autotools-dev_20120608.1_all.deb) ... Selecting previously unselected package cdbs. Unpacking cdbs (from .../archives/cdbs_0.4.116_all.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20120608_all.deb) ... Selecting previously unselected package libexpat1-dev. Unpacking libexpat1-dev (from .../libexpat1-dev_2.1.0-1_amd64.deb) ... Selecting previously unselected package zlib1g-dev:amd64. Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ... Selecting previously unselected package libfreetype6-dev. Unpacking libfreetype6-dev (from .../libfreetype6-dev_2.4.9-1_amd64.deb) ... Selecting previously unselected package pkg-config. Unpacking pkg-config (from .../pkg-config_0.26-1_amd64.deb) ... Selecting previously unselected package libfontconfig1-dev. Unpacking libfontconfig1-dev (from .../libfontconfig1-dev_2.9.0-6_amd64.deb) ... Selecting previously unselected package libpam0g-dev:amd64. Unpacking libpam0g-dev:amd64 (from .../libpam0g-dev_1.1.3-7.1_amd64.deb) ... Selecting previously unselected package libpthread-stubs0:amd64. Unpacking libpthread-stubs0:amd64 (from .../libpthread-stubs0_0.3-3_amd64.deb) ... Selecting previously unselected package libpthread-stubs0-dev:amd64. Unpacking libpthread-stubs0-dev:amd64 (from .../libpthread-stubs0-dev_0.3-3_amd64.deb) ... Selecting previously unselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_1.0.1c-3_amd64.deb) ... Selecting previously unselected package xorg-sgml-doctools. Unpacking xorg-sgml-doctools (from .../xorg-sgml-doctools_1%3a1.10-1_all.deb) ... Selecting previously unselected package x11proto-core-dev. Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.23-1_all.deb) ... Selecting previously unselected package libxau-dev:amd64. Unpacking libxau-dev:amd64 (from .../libxau-dev_1%3a1.0.7-1_amd64.deb) ... Selecting previously unselected package libxdmcp-dev:amd64. Unpacking libxdmcp-dev:amd64 (from .../libxdmcp-dev_1%3a1.1.1-1_amd64.deb) ... Selecting previously unselected package x11proto-input-dev. Unpacking x11proto-input-dev (from .../x11proto-input-dev_2.2-1_all.deb) ... Selecting previously unselected package x11proto-kb-dev. Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.6-2_all.deb) ... Selecting previously unselected package xtrans-dev. Unpacking xtrans-dev (from .../xtrans-dev_1.2.7-1_all.deb) ... Selecting previously unselected package libxcb1-dev:amd64. Unpacking libxcb1-dev:amd64 (from .../libxcb1-dev_1.8.1-1_amd64.deb) ... Selecting previously unselected package libx11-dev:amd64. Unpacking libx11-dev:amd64 (from .../libx11-dev_2%3a1.5.0-1_amd64.deb) ... Selecting previously unselected package x11proto-xext-dev. Unpacking x11proto-xext-dev (from .../x11proto-xext-dev_7.2.1-1_all.deb) ... Selecting previously unselected package libxext-dev:amd64. Unpacking libxext-dev:amd64 (from .../libxext-dev_2%3a1.3.1-2_amd64.deb) ... Selecting previously unselected package x11proto-render-dev. Unpacking x11proto-render-dev (from .../x11proto-render-dev_2%3a0.11.1-2_all.deb) ... Selecting previously unselected package libxrender-dev:amd64. Unpacking libxrender-dev:amd64 (from .../libxrender-dev_1%3a0.9.7-1_amd64.deb) ... Selecting previously unselected package libxft-dev. Unpacking libxft-dev (from .../libxft-dev_2.3.1-1_amd64.deb) ... Selecting previously unselected package x11proto-scrnsaver-dev. Unpacking x11proto-scrnsaver-dev (from .../x11proto-scrnsaver-dev_1.2.2-1_all.deb) ... Selecting previously unselected package libxss-dev:amd64. Unpacking libxss-dev:amd64 (from .../libxss-dev_1%3a1.2.2-1_amd64.deb) ... Selecting previously unselected package tcl8.5. Unpacking tcl8.5 (from .../tcl8.5_8.5.11-2_amd64.deb) ... Selecting previously unselected package tcl8.5-dev. Unpacking tcl8.5-dev (from .../tcl8.5-dev_8.5.11-2_amd64.deb) ... Selecting previously unselected package tk8.5. Unpacking tk8.5 (from .../tk8.5_8.5.11-2_amd64.deb) ... Selecting previously unselected package tk8.5-dev. Unpacking tk8.5-dev (from .../tk8.5-dev_8.5.11-2_amd64.deb) ... Selecting previously unselected package sbuild-build-depends-tkrat-dummy. Unpacking sbuild-build-depends-tkrat-dummy (from .../sbuild-build-depends-tkrat-dummy.deb) ... Setting up libpipeline1:amd64 (1.2.1-1) ... Setting up libpopt0:amd64 (1.16-7) ... Setting up libssl1.0.0:amd64 (1.0.1c-3) ... Setting up libasprintf0c2:amd64 (0.18.1.1-9) ... Setting up libmagic1:amd64 (5.11-2) ... Setting up libpcre3:amd64 (1:8.30-5) ... Setting up libxml2:amd64 (2.8.0+dfsg1-4) ... Setting up libglib2.0-0:amd64 (2.32.3-1) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.5-1) ... Setting up libexpat1:amd64 (2.1.0-1) ... Setting up libfreetype6:amd64 (2.4.9-1) ... Setting up ttf-dejavu-core (2.33-2) ... Setting up fontconfig-config (2.9.0-6) ... Setting up libfontconfig1:amd64 (2.9.0-6) ... Setting up libunistring0:amd64 (0.9.3-5) ... Setting up libgettextpo0:amd64 (0.18.1.1-9) ... Setting up libxau6:amd64 (1:1.0.7-1) ... Setting up libxdmcp6:amd64 (1:1.1.1-1) ... Setting up libxcb1:amd64 (1.8.1-1) ... Setting up libx11-data (2:1.5.0-1) ... Setting up libx11-6:amd64 (2:1.5.0-1) ... Setting up libxext6:amd64 (2:1.3.1-2) ... Setting up libxrender1:amd64 (1:0.9.7-1) ... Setting up libxft2:amd64 (2.3.1-1) ... Setting up x11-common (1:7.7+1) ... All runlevel operations denied by policy invoke-rc.d: policy-rc.d denied execution of start. Setting up libxss1:amd64 (1:1.2.2-1) ... Setting up bsdmainutils (9.0.3) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up groff-base (1.21-9) ... Setting up man-db (2.6.2-1) ... Building database of manual pages ... Setting up file (5.11-2) ... Setting up gettext-base (0.18.1.1-9) ... Setting up m4 (1.4.16-3) ... Setting up autoconf (2.69-1) ... Setting up autotools-dev (20120608.1) ... Setting up cdbs (0.4.116) ... Setting up html2text (1.3.2a-15) ... Setting up gettext (0.18.1.1-9) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (9.20120608) ... Setting up libexpat1-dev (2.1.0-1) ... Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ... Setting up libfreetype6-dev (2.4.9-1) ... Setting up pkg-config (0.26-1) ... Setting up libfontconfig1-dev (2.9.0-6) ... Setting up libpam0g-dev:amd64 (1.1.3-7.1) ... Setting up libpthread-stubs0:amd64 (0.3-3) ... Setting up libpthread-stubs0-dev:amd64 (0.3-3) ... Setting up libssl-dev (1.0.1c-3) ... Setting up xorg-sgml-doctools (1:1.10-1) ... Setting up x11proto-core-dev (7.0.23-1) ... Setting up libxau-dev:amd64 (1:1.0.7-1) ... Setting up libxdmcp-dev:amd64 (1:1.1.1-1) ... Setting up x11proto-input-dev (2.2-1) ... Setting up x11proto-kb-dev (1.0.6-2) ... Setting up xtrans-dev (1.2.7-1) ... Setting up libxcb1-dev:amd64 (1.8.1-1) ... Setting up libx11-dev:amd64 (2:1.5.0-1) ... Setting up x11proto-xext-dev (7.2.1-1) ... Setting up libxext-dev:amd64 (2:1.3.1-2) ... Setting up x11proto-render-dev (2:0.11.1-2) ... Setting up libxrender-dev:amd64 (1:0.9.7-1) ... Setting up libxft-dev (2.3.1-1) ... Setting up x11proto-scrnsaver-dev (1.2.2-1) ... Setting up libxss-dev:amd64 (1:1.2.2-1) ... Setting up tcl8.5 (8.5.11-2) ... update-alternatives: using /usr/bin/tclsh8.5 to provide /usr/bin/tclsh (tclsh) in auto mode Setting up tcl8.5-dev (8.5.11-2) ... Setting up tk8.5 (8.5.11-2) ... update-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode Setting up tk8.5-dev (8.5.11-2) ... Setting up sbuild-build-depends-tkrat-dummy (0.invalid.0) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-xen-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-7 dpkg-dev_1.16.7 g++-4.6_4.6.3-8 g++-4.7_4.7.1-3 gcc-4.6_4.6.3-8 gcc-4.7_4.7.1-3 libc6-dev_2.13-34 libstdc++6_4.7.1-3 libstdc++6-4.6-dev_4.6.3-8 libstdc++6-4.7-dev_4.7.1-3 linux-libc-dev_3.2.21-3 Package versions: apt_0.9.7.1 autoconf_2.69-1 autotools-dev_20120608.1 base-files_6.11 base-passwd_3.5.26 bash_4.2-3 binutils_2.22-7 bsdmainutils_9.0.3 bsdutils_1:2.20.1-5.1 build-essential_11.5 bzip2_1.0.6-3 cdbs_0.4.116 clang_3.1-8 coreutils_8.13-3.2 cpp_4:4.7.1-1 cpp-4.6_4.6.3-8 cpp-4.7_4.7.1-3 dash_0.5.7-3 debconf_1.5.45 debconf-i18n_1.5.45 debfoster_2.7-1.1 debhelper_9.20120608 debian-archive-keyring_2012.4 debianutils_4.3.2 diffutils_1:3.2-6 dpkg_1.16.7 dpkg-dev_1.16.7 e2fslibs_1.42.4-3 e2fsprogs_1.42.4-3 fakeroot_1.18.4-2 file_5.11-2 findutils_4.4.2-4 fontconfig-config_2.9.0-6 g++_4:4.7.1-1 g++-4.6_4.6.3-8 g++-4.7_4.7.1-3 gcc_4:4.7.1-1 gcc-4.4-base_4.4.7-1 gcc-4.5-base_4.5.4-1 gcc-4.6_4.6.3-8 gcc-4.6-base_4.6.3-8 gcc-4.7_4.7.1-3 gcc-4.7-base_4.7.1-3 gettext_0.18.1.1-9 gettext-base_0.18.1.1-9 gnupg_1.4.12-4+b1 gpgv_1.4.12-4+b1 grep_2.12-2 groff-base_1.21-9 gzip_1.5-1.1 hostname_3.11 html2text_1.3.2a-15 initscripts_2.88dsf-28 insserv_1.14.0-4 intltool-debian_0.35.0+20060710.1 libacl1_2.2.51-8 libapt-pkg4.12_0.9.7.1 libasprintf0c2_0.18.1.1-9 libattr1_1:2.4.46-8 libblkid1_2.20.1-5.1 libbz2-1.0_1.0.6-3 libc-bin_2.13-34 libc-dev-bin_2.13-34 libc6_2.13-34 libc6-dev_2.13-34 libclang-common-dev_3.1-8 libclass-isa-perl_0.36-3 libcomerr2_1.42.4-3 libcroco3_0.6.5-1 libdb5.1_5.1.29-5 libdpkg-perl_1.16.7 libexpat1_2.1.0-1 libexpat1-dev_2.1.0-1 libffi5_3.0.10-3 libfile-fcntllock-perl_0.14-2 libfontconfig1_2.9.0-6 libfontconfig1-dev_2.9.0-6 libfreetype6_2.4.9-1 libfreetype6-dev_2.4.9-1 libgc1c2_1:7.1-8 libgcc1_1:4.7.1-3 libgdbm3_1.8.3-11 libgettextpo0_0.18.1.1-9 libglib2.0-0_2.32.3-1 libgmp10_2:5.0.5+dfsg-2 libgomp1_4.7.1-3 libitm1_4.7.1-3 libllvm3.1_3.1-2 liblocale-gettext-perl_1.05-7+b1 liblzma5_5.1.1alpha+20120614-1 libmagic1_5.11-2 libmount1_2.20.1-5.1 libmpc2_0.9-4 libmpfr4_3.1.0-5 libncurses5_5.9-10 libpam-modules_1.1.3-7.1 libpam-modules-bin_1.1.3-7.1 libpam-runtime_1.1.3-7.1 libpam0g_1.1.3-7.1 libpam0g-dev_1.1.3-7.1 libpcre3_1:8.30-5 libpipeline1_1.2.1-1 libpopt0_1.16-7 libpthread-stubs0_0.3-3 libpthread-stubs0-dev_0.3-3 libquadmath0_4.7.1-3 libreadline6_6.2-8 libselinux1_2.1.9-5 libsemanage-common_2.1.6-6 libsemanage1_2.1.6-6 libsepol1_2.1.4-3 libslang2_2.2.4-15 libss2_1.42.4-3 libssl-dev_1.0.1c-3 libssl1.0.0_1.0.1c-3 libstdc++6_4.7.1-3 libstdc++6-4.6-dev_4.6.3-8 libstdc++6-4.7-dev_4.7.1-3 libswitch-perl_2.16-2 libtext-charwidth-perl_0.04-7+b1 libtext-iconv-perl_1.7-5 libtext-wrapi18n-perl_0.06-7 libtimedate-perl_1.2000-1 libtinfo5_5.9-10 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-23 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.1 libx11-6_2:1.5.0-1 libx11-data_2:1.5.0-1 libx11-dev_2:1.5.0-1 libxau-dev_1:1.0.7-1 libxau6_1:1.0.7-1 libxcb1_1.8.1-1 libxcb1-dev_1.8.1-1 libxdmcp-dev_1:1.1.1-1 libxdmcp6_1:1.1.1-1 libxext-dev_2:1.3.1-2 libxext6_2:1.3.1-2 libxft-dev_2.3.1-1 libxft2_2.3.1-1 libxml2_2.8.0+dfsg1-4 libxrender-dev_1:0.9.7-1 libxrender1_1:0.9.7-1 libxss-dev_1:1.2.2-1 libxss1_1:1.2.2-1 linux-libc-dev_3.2.21-3 login_1:4.1.5.1-1 lsb-base_4.1+Debian7 m4_1.4.16-3 make_3.81-8.2 man-db_2.6.2-1 mawk_1.3.3-17 mount_2.20.1-5.1 multiarch-support_2.13-34 ncurses-base_5.9-10 ncurses-bin_5.9-10 passwd_1:4.1.5.1-1 patch_2.6.1-3 perl_5.14.2-12 perl-base_5.14.2-12 perl-modules_5.14.2-12 pkg-config_0.26-1 po-debconf_1.0.16+nmu2 readline-common_6.2-8 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-tkrat-dummy_0.invalid.0 sed_4.2.1-10 sensible-utils_0.0.7 sysv-rc_2.88dsf-28 sysvinit_2.88dsf-28 sysvinit-utils_2.88dsf-28 tar_1.26-4 tcl8.5_8.5.11-2 tcl8.5-dev_8.5.11-2 tk8.5_8.5.11-2 tk8.5-dev_8.5.11-2 ttf-dejavu-core_2.33-2 tzdata_2012c-1 ucf_3.0025+nmu3 util-linux_2.20.1-5.1 x11-common_1:7.7+1 x11proto-core-dev_7.0.23-1 x11proto-input-dev_2.2-1 x11proto-kb-dev_1.0.6-2 x11proto-render-dev_2:0.11.1-2 x11proto-scrnsaver-dev_1.2.2-1 x11proto-xext-dev_7.2.1-1 xorg-sgml-doctools_1:1.10-1 xtrans-dev_1.2.7-1 xz-utils_5.1.1alpha+20120614-1 zlib1g_1:1.2.7.dfsg-13 zlib1g-dev_1:1.2.7.dfsg-13 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Tue Jun 1 06:00:00 2010 UTC using RSA key ID 7B0D48C2 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./tkrat_2.2cvs20100105-true-dfsg-5.dsc dpkg-source: info: extracting tkrat in tkrat-2.2cvs20100105-true-dfsg dpkg-source: info: unpacking tkrat_2.2cvs20100105-true-dfsg.orig.tar.gz dpkg-source: info: unpacking tkrat_2.2cvs20100105-true-dfsg-5.debian.tar.gz dpkg-source: info: applying debianize_configure.patch dpkg-source: info: applying change_auths_order.patch dpkg-source: info: applying color_flags.patch dpkg-source: info: applying debian-changes-1:2.2cvs20100105-true-dfsg-5 Check disc space ──────────────── Sufficient free space for build User Environment ──────────────── HOME=/sbuild-nonexistent LOGNAME=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 SCHROOT_CHROOT_NAME=unstable-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=0 SCHROOT_GROUP=root SCHROOT_SESSION_ID=unstable-amd64-sbuild-14247a09-3aba-4e68-a513-fb74daf143ef SCHROOT_UID=0 SCHROOT_USER=root SHELL=/bin/sh USER=root dpkg-buildpackage ───────────────── dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: source package tkrat dpkg-buildpackage: source version 1:2.2cvs20100105-true-dfsg-5 dpkg-buildpackage: source changed by Mattia Monga dpkg-source --before-build tkrat-2.2cvs20100105-true-dfsg dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean test -x debian/rules dh_testroot rm -f debian/stamp-makefile-build debian/stamp-makefile-install /usr/bin/make -C . -k distclean make[1]: Entering directory `/«PKGBUILDDIR»' make[1]: *** No rule to make target `distclean'. make[1]: Leaving directory `/«PKGBUILDDIR»' make: [makefile-clean] Error 2 (ignored) rm -f debian/stamp-autotools rmdir --ignore-fail-on-non-empty . rmdir: failed to remove `.': Invalid argument make: [makefile-clean] Error 1 (ignored) dh_clean rm -f debian/stamp-autotools-files rm -f configure dpkg-source -b tkrat-2.2cvs20100105-true-dfsg dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building tkrat using existing ./tkrat_2.2cvs20100105-true-dfsg.orig.tar.gz dpkg-source: warning: ignoring deletion of file configure dpkg-source: info: building tkrat in tkrat_2.2cvs20100105-true-dfsg-5.debian.tar.gz dpkg-source: info: building tkrat in tkrat_2.2cvs20100105-true-dfsg-5.dsc debian/rules build test -x debian/rules mkdir -p "." if [ -e ./configure.ac ] || [ -e ./configure.in ]; then cd . && `which autoconf2.65 || which autoconf`; fi touch debian/stamp-autotools-files chmod a+x /«PKGBUILDDIR»/./configure mkdir -p . cd . && CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall" CPPFLAGS="-D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" /«PKGBUILDDIR»/./configure --build=x86_64-linux-gnu --prefix=/usr --includedir="\${prefix}/include" --mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/tkrat2.2 --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking, --disable-silent-rules checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for gawk... no checking for mawk... mawk checking for gzip... /bin/gzip checking for ssh... no checking version of GCC... Debian checking for tclsh8.6... no checking for tclsh8.5... /usr/bin/tclsh8.5 checking for wish8.5... /usr/bin/wish8.5 checking if tclsh is compiled with memory debugging... no checking tcl.h... /usr/include/tcl8.5 checking tk.h... /usr/include/tcl8.5 checking tkConfig.sh... /usr/lib/tk8.5/tkConfig.sh checking how to run the C preprocessor... gcc -E checking for X... libraries , headers checking for X11 header files... couldn't find any! checking for OpenSSL... /usr checking for etags... no checking for crypt in -lc... no checking for crypt in -lcrypt... yes checking for getuserattr in -ls... no checking for library containing strerror... none required checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for utime.h... yes checking whether utime accepts a null argument... yes checking for snprintf... yes checking for strlcpy... no checking for strlcat... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking tm_tzadj in struct tm... no checking tm_gmtoff in struct tm... yes checking long timezone variable... yes checking system version (for imap & dynamic loading)... Linux-2.6.32-5-xen-amd64 checking for dlopen in -ldl... yes checking for pam_start in -lpam... yes checking Names of generated text files... done configure: creating ./config.status config.status: creating Makefile config.status: creating tkrat/Makefile config.status: creating lib/Makefile config.status: creating misc/Makefile config.status: creating util/Makefile config.status: creating doc/Makefile config.status: creating test/run config.status: creating tkrat/tkrat config.status: creating config.h configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking, --disable-silent-rules touch debian/stamp-autotools /usr/bin/make -C . make[1]: Entering directory `/«PKGBUILDDIR»' if test -r imap/OSTYPE ; then \ if test "Makefile" = `ls -t Makefile imap/OSTYPE|head -1` ; then \ cd imap; /usr/bin/make clean; \ fi; \ fi cd imap; \ if test "`cat OSTYPE 2>/dev/null || true`" = "ldb" ; then \ /usr/bin/make SSLTYPE=nopwd SSLDIR=/usr EXTRACFLAGS="-fPIC -I/usr/include/tcl8.5 "; \ else \ /usr/bin/make ldb SSLTYPE=nopwd SSLDIR=/usr EXTRACFLAGS="-fPIC -I/usr/include/tcl8.5 "; \ fi make[2]: Entering directory `/«PKGBUILDDIR»/imap' #make sslnopwd 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 . make build EXTRACFLAGS='-fPIC -I/usr/include/tcl8.5 ' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 EXTRASPECIALS='' BUILDTYPE=lnp \ SPECIALS="GSSDIR=/usr SSLDIR=/usr SSLINCLUDE=/usr/include/openssl SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private LOCKPGM=/usr/sbin/mlock" make[3]: Entering directory `/«PKGBUILDDIR»/imap' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS='-fPIC -I/usr/include/tcl8.5 '\ EXTRALDFLAGS=''\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=std SSLTYPE=nopwd IP=4\ GSSDIR=/usr SSLDIR=/usr SSLINCLUDE=/usr/include/openssl SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private LOCKPGM=/usr/sbin/mlock make[4]: Entering directory `/«PKGBUILDDIR»/imap/c-client' make build EXTRACFLAGS='-fPIC -I/usr/include/tcl8.5 ' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 `cat SPECIALS` OS=lnx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -fno-omit-frame-pointer -O2" \ BASELDFLAGS="-lpam -ldl" make[5]: Entering directory `/«PKGBUILDDIR»/imap/c-client' sh -c 'rm -rf auths.c crexcl.c nfstest.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' Once-only environment setup... echo cc > CCTYPE echo -g -fno-omit-frame-pointer -O2 '-fPIC -I/usr/include/tcl8.5 ' > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" > OSCFLAGS echo -lpam -ldl > LDFLAGS echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE echo lnx > OSTYPE ./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy ./mkauths pla md5 log make[6]: Entering directory `/«PKGBUILDDIR»/imap/c-client' echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS make[6]: Leaving directory `/«PKGBUILDDIR»/imap/c-client' ln -s os_lnx.h osdep.h ln -s os_lnx.c osdepbas.c ln -s log_std.c osdeplog.c ln -s sig_psx.c siglocal.c ln -s crx_nfs.c crexcl.c ln -s ip4_unix.c ip_unix.c sh -c '(test -f /usr/include/sys/statvfs.h -a lnx != sc5 -a lnx != sco) && ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c' Standard password authentication ln -s ckp_pam.c osdepckp.c Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/private\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/lib -lssl -lcrypto >> LDFLAGS Building with SSL and plaintext passwords disabled unless SSL/TLS echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make lnx SSLTYPE=none `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c In file included from osdep.c:40: ./nl_unix.c:41:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!*dst) *dst = (char *) fs_get ((*dstl = i) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:41: In file included from ./env_unix.c:137: ./pmatch.c:33:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!pat[1]) return (delim && strchr (s,delim)) ? NIL : T; ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:1: ./auth_pla.c:59:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_pla.c:59:17: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) { ^ ( ) ./auth_pla.c:59:17: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) { ^ == ./auth_pla.c:87:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_pla.c:87:16: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) ^ ( ) ./auth_pla.c:87:16: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) ^ == ./auth_pla.c:126:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (aid = (*responder) ("",0,&len)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_pla.c:126:11: note: place parentheses around the assignment to silence this warning if (aid = (*responder) ("",0,&len)) { ^ ( ) ./auth_pla.c:126:11: note: use '==' to turn this assignment into an equality comparison if (aid = (*responder) ("",0,&len)) { ^ == In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:97:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:97:17: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) { ^ ( ) ./auth_md5.c:97:17: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) { ^ == ./auth_md5.c:112:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:112:16: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) ^ ( ) ./auth_md5.c:112:16: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) ^ == ./auth_md5.c:147:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:147:12: note: place parentheses around the assignment to silence this warning if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^ ( ) ./auth_md5.c:147:12: note: use '==' to turn this assignment into an equality comparison if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^ == ./auth_md5.c:149:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hash = strrchr (user,' ')) { ~~~~~^~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:149:14: note: place parentheses around the assignment to silence this warning if (hash = strrchr (user,' ')) { ^ ( ) ./auth_md5.c:149:14: note: use '==' to turn this assignment into an equality comparison if (hash = strrchr (user,' ')) { ^ == ./auth_md5.c:152:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ~~~~~~~~~^~~~~~~~ ./auth_md5.c:152:20: note: place parentheses around the assignment to silence this warning if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ ( ) ./auth_md5.c:152:20: note: use '==' to turn this assignment into an equality comparison if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ == ./auth_md5.c:154:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:154:13: note: place parentheses around the assignment to silence this warning if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ ( ) ./auth_md5.c:154:13: note: use '==' to turn this assignment into an equality comparison if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ == ./auth_md5.c:186:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:188:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = user; *s && !isupper (*s); s++); ^ ~~~~ ./auth_md5.c:190:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] lusr = *s ? lcase (cpystr (user)) : NIL; ^~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:191:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = strtok (buf,"\015\012"),lret = NIL; s; ^~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:191:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = strtok (buf,"\015\012"),lret = NIL; s; ^ ~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:192:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ret ? NIL : strtok (NIL,"\015\012")) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:194:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:194:35: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (*s && (*s != '#') && (t = strchr (s,'\t')) && t[1]) { ^ ~~~~~~~~~~~~~~~ ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:196:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,user)) ret = cpystr (t); ^ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from macro 'strcmp' && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:197:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lusr && !lret) if (!strcmp (s,lusr)) lret = t; ~~~~~~~~~~^~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:200:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!ret && lret) ret = cpystr (lret); ^~~~ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:2: ./auth_md5.c:229:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ~~~~~~~~~^~~~~~~~ ./auth_md5.c:229:16: note: place parentheses around the assignment to silence this warning if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ ( ) ./auth_md5.c:229:16: note: use '==' to turn this assignment into an equality comparison if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ == ./auth_md5.c:231:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_md5.c:231:9: note: place parentheses around the assignment to silence this warning if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ ( ) ./auth_md5.c:231:9: note: use '==' to turn this assignment into an equality comparison if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ == In file included from osdep.c:41: In file included from ./env_unix.c:141: In file included from ./auths.c:3: ./auth_log.c:58:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_log.c:58:17: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) { ^ ( ) ./auth_log.c:58:17: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) { ^ == ./auth_log.c:73:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_log.c:73:16: note: place parentheses around the assignment to silence this warning if (challenge = (*challenger) (stream,&clen)) ^ ( ) ./auth_log.c:73:16: note: use '==' to turn this assignment into an equality comparison if (challenge = (*challenger) (stream,&clen)) ^ == ./auth_log.c:99:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_log.c:99:12: note: place parentheses around the assignment to silence this warning if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^ ( ) ./auth_log.c:99:12: note: use '==' to turn this assignment into an equality comparison if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^ == ./auth_log.c:100:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./auth_log.c:100:14: note: place parentheses around the assignment to silence this warning if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^ ( ) ./auth_log.c:100:14: note: use '==' to turn this assignment into an equality comparison if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^ == ./auth_log.c:102:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ~~~~~~~~~^~~~~~~~ ./auth_log.c:102:20: note: place parentheses around the assignment to silence this warning if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ ( ) ./auth_log.c:102:20: note: use '==' to turn this assignment into an equality comparison if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ == In file included from osdep.c:41: ./env_unix.c:378:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (julian = t->tm_yday -julian) ~~~~~~~^~~~~~~~~~~~~~~~~~~~ ./env_unix.c:378:14: note: place parentheses around the assignment to silence this warning if (julian = t->tm_yday -julian) ^ ( ) ./env_unix.c:378:14: note: use '==' to turn this assignment into an equality comparison if (julian = t->tm_yday -julian) ^ == ./env_unix.c:500:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] struct passwd *pw = getpwnam (user); ^~~~ /usr/include/pwd.h:117:47: note: passing argument to parameter '__name' here extern struct passwd *getpwnam (__const char *__name); ^ In file included from osdep.c:41: ./env_unix.c:504:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] pw = getpwnam (s = lcase (cpystr (user))); ^~~~ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ In file included from osdep.c:41: ./env_unix.c:504:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pw = getpwnam (s = lcase (cpystr (user))); ^~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ In file included from osdep.c:41: ./env_unix.c:504:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] pw = getpwnam (s = lcase (cpystr (user))); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/pwd.h:117:47: note: passing argument to parameter '__name' here extern struct passwd *getpwnam (__const char *__name); ^ In file included from osdep.c:41: ./env_unix.c:528:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = auth_md5_pwd (user)) { ~~^~~~~~~~~~~~~~~~~~~~~ ./env_unix.c:528:11: note: place parentheses around the assignment to silence this warning if (s = auth_md5_pwd (user)) { ^ ( ) ./env_unix.c:528:11: note: use '==' to turn this assignment into an equality comparison if (s = auth_md5_pwd (user)) { ^ == ./env_unix.c:530:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = pwuser (user); /* validated, get passwd entry for user */ ^~~~ ./env_unix.c:497:46: note: passing argument to parameter 'user' here static struct passwd *pwuser (unsigned char *user) ^ ./env_unix.c:535:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (pw = pwuser (user)) {/* can get user? */ ^~~~ ./env_unix.c:497:46: note: passing argument to parameter 'user' here static struct passwd *pwuser (unsigned char *user) ^ ./env_unix.c:535:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (pw = pwuser (user)) {/* can get user? */ ~~~^~~~~~~~~~~~~~~ ./env_unix.c:535:15: note: place parentheses around the assignment to silence this warning else if (pw = pwuser (user)) {/* can get user? */ ^ ( ) ./env_unix.c:535:15: note: use '==' to turn this assignment into an equality comparison else if (pw = pwuser (user)) {/* can get user? */ ^ == ./env_unix.c:538:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*pwd == ' ') && pwd[1] && (ret = pwuser (s))) ^ ./env_unix.c:497:46: note: passing argument to parameter 'user' here static struct passwd *pwuser (unsigned char *user) ^ ./env_unix.c:569:58: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (valpwd (authuser,pwd,argc,argv)) pw = pwuser (user); ^~~~ ./env_unix.c:497:46: note: passing argument to parameter 'user' here static struct passwd *pwuser (unsigned char *user) ^ ./env_unix.c:587:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return pw_login (pwuser (user),authuser,user,NIL,argc,argv); ^~~~ ./env_unix.c:497:46: note: passing argument to parameter 'user' here static struct passwd *pwuser (unsigned char *user) ^ ./env_unix.c:626:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (user && auser && *auser && compare_cstring (auser,user)) { ^~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:626:59: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (user && auser && *auser && compare_cstring (auser,user)) { ^~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:629:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (auser,*t++)) ^~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:629:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (auser,*t++)) ^~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:903:47: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:903:54: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (dst,"%s/%s",s,compare_cstring (name+8,"INBOX") ? ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:913:63: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:913:67: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((s = strchr (name+1,'/')) && !compare_cstring (s+1,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:933:55: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:933:59: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((s = strchr (name,'/')) && compare_cstring (s+1,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:947:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name,"INBOX")) name = "INBOX"; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:947:29: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name,"INBOX")) name = "INBOX"; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:961:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name+1,"NBOX")) { ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:961:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name+1,"NBOX")) { ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1078:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (base->lock,'/')) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.c:1078:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (base->lock,'/')) { ^ ( ) ./env_unix.c:1078:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (base->lock,'/')) { ^ == ./env_unix.c:1198:27: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] if (op & LOCK_NB) i = flock (fd,op); ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ In file included from osdep.c:41: ./env_unix.c:1393:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set keywords") && !userFlags[0]) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1393:31: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set keywords") && !userFlags[0]) { ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1406:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set new-folder-format")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1406:28: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set new-folder-format")) { ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1407:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"same-as-inbox")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1407:30: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"same-as-inbox")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1409:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (d->name,"dummy")) ? ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1409:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (d->name,"dummy")) ? ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1411:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"system-standard")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1411:35: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"system-standard")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1415:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d && compare_cstring (d->name,k); d = d->next); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1415:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d && compare_cstring (d->name,k); d = d->next); ^ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1423:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set empty-folder-format")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1423:28: warning: passing 'char [24]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set empty-folder-format")) { ^~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1424:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"same-as-inbox")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1424:30: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"same-as-inbox")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1426:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (d->name,"dummy")) ? ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1426:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (d->name,"dummy")) ? ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1428:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"system-standard")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1428:35: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"system-standard")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1432:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d && compare_cstring (d->name,k); d = d->next); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1432:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d && compare_cstring (d->name,k); d = d->next); ^ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1442:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set local-host")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1442:26: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set local-host")) { ^~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1446:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-active-file")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1446:31: warning: passing 'char [21]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-active-file")) { ^~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1450:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-spool-directory")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1450:31: warning: passing 'char [25]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-spool-directory")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1454:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-state-file")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1454:31: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set news-state-file")) { ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1458:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-export-directory")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1458:31: warning: passing 'char [25]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-export-directory")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1462:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-home-directory")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1462:31: warning: passing 'char [26]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-home-directory")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1466:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-home-directory")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1466:31: warning: passing 'char [26]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-home-directory")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1470:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set system-inbox")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1470:31: warning: passing 'char [17]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set system-inbox")) { ^~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1474:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set mail-subdirectory")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1474:31: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set mail-subdirectory")) { ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1478:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set from-widget")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1478:31: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set from-widget")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1480:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (k,"header-only") ? ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1480:26: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (k,"header-only") ? ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1483:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-command")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1483:31: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-command")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1485:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-path")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1485:31: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-path")) ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1487:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-command")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1487:31: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-command")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1489:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-path")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1489:31: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-path")) ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1491:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-open-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1491:31: warning: passing 'char [21]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-open-timeout")) ^~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1493:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-read-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1493:31: warning: passing 'char [21]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-read-timeout")) ^~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1495:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-write-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1495:31: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set tcp-write-timeout")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1497:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1497:31: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set rsh-timeout")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1499:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1499:31: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ssh-timeout")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1501:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set maximum-login-trials")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1501:31: warning: passing 'char [25]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set maximum-login-trials")) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1503:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set lookahead")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1503:31: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set lookahead")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1505:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set prefetch")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1505:31: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set prefetch")) ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1507:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set close-on-error")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1507:31: warning: passing 'char [19]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set close-on-error")) ^~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1509:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set imap-port")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1509:31: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set imap-port")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1511:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set pop3-port")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1511:31: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set pop3-port")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1513:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set uid-lookahead")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1513:31: warning: passing 'char [18]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set uid-lookahead")) ^~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1515:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set try-ssl-first")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1515:31: warning: passing 'char [18]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set try-ssl-first")) ^~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1518:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set mailbox-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1518:31: warning: passing 'char [23]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set mailbox-protection")) ^~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1520:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set directory-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1520:31: warning: passing 'char [25]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set directory-protection")) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1522:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set lock-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1522:31: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set lock-protection")) ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1524:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1524:31: warning: passing 'char [19]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-protection")) ^~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1526:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1526:31: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-protection")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1528:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1528:31: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-protection")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1530:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-directory-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1530:31: warning: passing 'char [29]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set ftp-directory-protection")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1532:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-directory-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1532:31: warning: passing 'char [32]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set public-directory-protection")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1534:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-directory-protection")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1534:31: warning: passing 'char [32]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set shared-directory-protection")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1536:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set dot-lock-file-timeout")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1536:31: warning: passing 'char [26]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set dot-lock-file-timeout")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1538:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-fcntl-locking")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1538:31: warning: passing 'char [26]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-fcntl-locking")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1540:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-lock-warning")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1540:31: warning: passing 'char [25]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-lock-warning")) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1542:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set hide-dot-files")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1542:31: warning: passing 'char [19]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set hide-dot-files")) ^~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1544:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set list-maximum-level")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1544:31: warning: passing 'char [23]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set list-maximum-level")) ^~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1546:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set trust-dns")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1546:31: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set trust-dns")) ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1548:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set sasl-uses-ptr-name")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1548:31: warning: passing 'char [23]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set sasl-uses-ptr-name")) ^~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1550:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set network-filesystem-stat-bug")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1550:31: warning: passing 'char [32]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set network-filesystem-stat-bug")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1554:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set black-box-directory") && ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1554:28: warning: passing 'char [24]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"set black-box-directory") && ^~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1556:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring(s,"set black-box-default-home-directory")&& ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1556:32: warning: passing 'char [37]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring(s,"set black-box-default-home-directory")&& ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1559:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set anonymous-home-directory") && ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1559:33: warning: passing 'char [29]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set anonymous-home-directory") && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1561:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-plaintext")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1561:33: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set disable-plaintext")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1563:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allowed-login-attempts")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1563:33: warning: passing 'char [27]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allowed-login-attempts")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1565:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set chroot-server")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1565:33: warning: passing 'char [18]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set chroot-server")) ^~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1567:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set restrict-mailbox-access")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1567:33: warning: passing 'char [28]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set restrict-mailbox-access")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1569:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1569:32: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (k,"root")) restrictBox |= RESTRICTROOT; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1570:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"otherusers")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1570:37: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"otherusers")) ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1572:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"all")) restrictBox = -1; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1572:37: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (k,"all")) restrictBox = -1; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1575:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set advertise-the-world")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1575:33: warning: passing 'char [24]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set advertise-the-world")) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1577:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set limited-advertise")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1577:33: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set limited-advertise")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1580:7: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (s,"set disable-automatic-shared-namespaces")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1580:9: warning: passing 'char [40]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (s,"set disable-automatic-shared-namespaces")) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1582:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allow-user-config")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1582:33: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allow-user-config")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1584:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allow-reverse-dns")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:41: ./env_unix.c:1584:33: warning: passing 'char [22]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"set allow-reverse-dns")) ^~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ In file included from osdep.c:43: In file included from ./tcp_unix.c:21: ./ip_unix.c:157:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (he = gethostbyname (lcase (strcpy (tmp,name))))) { ^~~~~~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ In file included from osdep.c:43: In file included from ./tcp_unix.c:21: ./ip_unix.c:157:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (he = gethostbyname (lcase (strcpy (tmp,name))))) { ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/netdb.h:145:53: note: passing argument to parameter '__name' here extern struct hostent *gethostbyname (__const char *__name); ^ In file included from osdep.c:43: ./tcp_unix.c:159:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcp_unix.c:159:13: note: place parentheses around the assignment to silence this warning if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^ ( ) ./tcp_unix.c:159:13: note: use '==' to turn this assignment into an equality comparison if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^ == ./tcp_unix.c:199:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; ~~~~~~~~~~~~~^~~~~ ./tcp_unix.c:199:22: note: place parentheses around the assignment to silence this warning if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; ^ ( ) ./tcp_unix.c:199:22: note: use '==' to turn this assignment into an equality comparison if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; ^ == ./tcp_unix.c:322:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (ti = rshtimeout) { /* set rsh timeout */ ~~~^~~~~~~~~~~~ ./tcp_unix.c:322:15: note: place parentheses around the assignment to silence this warning else if (ti = rshtimeout) { /* set rsh timeout */ ^ ( ) ./tcp_unix.c:322:15: note: use '==' to turn this assignment into an equality comparison else if (ti = rshtimeout) { /* set rsh timeout */ ^ == ./tcp_unix.c:333:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcp_unix.c:333:13: note: place parentheses around the assignment to silence this warning if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); ^ ( ) ./tcp_unix.c:333:13: note: use '==' to turn this assignment into an equality comparison if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); ^ == ./tcp_unix.c:458:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (st = tcp_getline (stream)) { ~~~^~~~~~~~~~~~~~~~~~~~~~ ./tcp_unix.c:458:15: note: place parentheses around the assignment to silence this warning else if (st = tcp_getline (stream)) { ^ ( ) ./tcp_unix.c:458:15: note: use '==' to turn this assignment into an equality comparison else if (st = tcp_getline (stream)) { ^ == ./tcp_unix.c:482:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = min (size,stream->ictr)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./tcp_unix.c:482:9: note: place parentheses around the assignment to silence this warning if (n = min (size,stream->ictr)) { ^ ( ) ./tcp_unix.c:482:9: note: use '==' to turn this assignment into an equality comparison if (n = min (size,stream->ictr)) { ^ == ./tcp_unix.c:902:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcp_unix.c:902:11: note: place parentheses around the assignment to silence this warning if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) { ^ ( ) ./tcp_unix.c:902:11: note: use '==' to turn this assignment into an equality comparison if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) { ^ == In file included from osdep.c:46: ./flocklnx.c:52:38: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (!logged++) syslog (LOG_ERR,tmp); ^~~ osdep.c:448:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else err = ssl_compare_hostnames (host,s) ? NIL : ^~~~ osdep.c:263:51: note: passing argument to parameter 's' here static long ssl_compare_hostnames (unsigned char *s,unsigned char *pat); ^ osdep.c:448:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else err = ssl_compare_hostnames (host,s) ? NIL : ^ osdep.c:263:68: note: passing argument to parameter 'pat' here static long ssl_compare_hostnames (unsigned char *s,unsigned char *pat); ^ osdep.c:560:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (st = ssl_getline (stream)) { ~~~^~~~~~~~~~~~~~~~~~~~~~ osdep.c:560:15: note: place parentheses around the assignment to silence this warning else if (st = ssl_getline (stream)) { ^ ( ) osdep.c:560:15: note: use '==' to turn this assignment into an equality comparison else if (st = ssl_getline (stream)) { ^ == osdep.c:856:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (i = ERR_get_error ()) /* SSL failure */ ~~^~~~~~~~~~~~~~~~~~ osdep.c:856:12: note: place parentheses around the assignment to silence this warning while (i = ERR_get_error ()) /* SSL failure */ ^ ( ) osdep.c:856:12: note: use '==' to turn this assignment into an equality comparison while (i = ERR_get_error ()) /* SSL failure */ ^ == osdep.c:878:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (i = ERR_get_error ()) ~~^~~~~~~~~~~~~~~~~~ osdep.c:878:16: note: place parentheses around the assignment to silence this warning while (i = ERR_get_error ()) ^ ( ) osdep.c:878:16: note: use '==' to turn this assignment into an equality comparison while (i = ERR_get_error ()) ^ == 231 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mail.c mail.c:200:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stream->cache[i] = stream->cache[msgno]) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ mail.c:200:28: note: place parentheses around the assignment to silence this warning if (stream->cache[i] = stream->cache[msgno]) ^ ( ) mail.c:200:28: note: use '==' to turn this assignment into an equality comparison if (stream->cache[i] = stream->cache[msgno]) ^ == mail.c:344:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:344:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:349:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:349:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:351:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = (void *) d) d->flags &= ~DR_DISABLE; ~~~~^~~~~~~~~~~~ mail.c:351:13: note: place parentheses around the assignment to silence this warning if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^ ( ) mail.c:351:13: note: use '==' to turn this assignment into an equality comparison if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^ == mail.c:354:49: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:354:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,(char *) value); ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:356:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = (void *) d) d->flags |= DR_DISABLE; ~~~~^~~~~~~~~~~~ mail.c:356:13: note: place parentheses around the assignment to silence this warning if (ret = (void *) d) d->flags |= DR_DISABLE; ^ ( ) mail.c:356:13: note: use '==' to turn this assignment into an equality comparison if (ret = (void *) d) d->flags |= DR_DISABLE; ^ == mail.c:362:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] a && compare_cstring (a->name,(char *) value); a = a->next); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:362:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] a && compare_cstring (a->name,(char *) value); a = a->next); ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:564:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = smtp_parameters (function,value)) ret = r; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:564:11: note: place parentheses around the assignment to silence this warning if (r = smtp_parameters (function,value)) ret = r; ^ ( ) mail.c:564:11: note: use '==' to turn this assignment into an equality comparison if (r = smtp_parameters (function,value)) ret = r; ^ == mail.c:565:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = env_parameters (function,value)) ret = r; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:565:11: note: place parentheses around the assignment to silence this warning if (r = env_parameters (function,value)) ret = r; ^ ( ) mail.c:565:11: note: use '==' to turn this assignment into an equality comparison if (r = env_parameters (function,value)) ret = r; ^ == mail.c:566:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = tcp_parameters (function,value)) ret = r; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:566:11: note: place parentheses around the assignment to silence this warning if (r = tcp_parameters (function,value)) ret = r; ^ ( ) mail.c:566:11: note: use '==' to turn this assignment into an equality comparison if (r = tcp_parameters (function,value)) ret = r; ^ == mail.c:568:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = (*stream->dtb->parameters) (function,value)) ret = r; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:568:13: note: place parentheses around the assignment to silence this warning if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ ( ) mail.c:568:13: note: use '==' to turn this assignment into an equality comparison if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ == mail.c:572:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = (d->parameters) (function,value)) ret = r; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:572:13: note: place parentheses around the assignment to silence this warning if (r = (d->parameters) (function,value)) ret = r; ^ ( ) mail.c:572:13: note: use '==' to turn this assignment into an equality comparison if (r = (d->parameters) (function,value)) ret = r; ^ == mail.c:686:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strpbrk (s = t,"/:=")) { ~~^~~~~~~~~ mail.c:686:13: note: place parentheses around the assignment to silence this warning if (t = strpbrk (s = t,"/:=")) { ^ ( ) mail.c:686:13: note: use '==' to turn this assignment into an equality comparison if (t = strpbrk (s = t,"/:=")) { ^ == mail.c:702:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strpbrk (v = t,"/:")) { ~~^~~~~~~~~ mail.c:702:10: note: place parentheses around the assignment to silence this warning if (t = strpbrk (v = t,"/:")) { ^ ( ) mail.c:702:10: note: use '==' to turn this assignment into an equality comparison if (t = strpbrk (v = t,"/:")) { ^ == mail.c:709:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:709:26: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"service") && (i < NETMAXSRV) && !*mb->service) ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:710:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] lcase (strcpy (mb->service,v)); ^~~~~~~~~~~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:711:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:711:31: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"user") && (i < NETMAXUSER) && !*mb->user) ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:713:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:713:31: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"authuser") && (i < NETMAXUSER) && ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:719:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"anonymous")) mb->anoflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:719:26: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"anonymous")) mb->anoflag = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:720:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"debug")) mb->dbgflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:720:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"debug")) mb->dbgflag = T; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:721:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:721:31: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"readonly")) mb->readonlyflag = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:722:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"secure")) mb->secflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:722:31: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"secure")) mb->secflag = T; ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:723:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"norsh")) mb->norsh = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:723:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"norsh")) mb->norsh = T; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:724:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"loser")) mb->loser = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:724:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"loser")) mb->loser = T; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:725:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"tls") && !mb->notlsflag) mb->tlsflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:725:31: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"tls") && !mb->notlsflag) mb->tlsflag = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:726:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"notls") && !mb->tlsflag) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:726:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"notls") && !mb->tlsflag) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:728:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"tryssl")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:728:31: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"tryssl")) ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:730:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"ssl")) mb->sslflag = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:730:48: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"ssl")) mb->sslflag = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:731:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:731:48: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"novalidate-cert")) ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:734:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"validate-cert")); ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:734:48: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mailssldriver && !compare_cstring (s,"validate-cert")); ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:737:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"imap") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:737:31: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"imap") || ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:738:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"nntp") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:738:24: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"nntp") || ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:739:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"pop3") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:739:24: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"pop3") || ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:740:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"smtp") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:740:24: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"smtp") || ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:741:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"submit")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:741:24: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"submit")) ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:742:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] lcase (strcpy (mb->service,s)); ^~~~~~~~~~~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:743:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"imap2") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:743:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"imap2") || ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:744:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap2bis") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:744:24: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap2bis") || ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:745:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap4") || ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:745:24: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap4") || ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:746:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap4rev1")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:746:24: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (s,"imap4rev1")) ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:748:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"pop")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:748:31: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"pop")) ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:833:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = d->next); /* until at the end */ ~~^~~~~~~~~ mail.c:833:12: note: place parentheses around the assignment to silence this warning while (d = d->next); /* until at the end */ ^ ( ) mail.c:833:12: note: use '==' to turn this assignment into an equality comparison while (d = d->next); /* until at the end */ ^ == mail.c:866:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = d->next); /* until at the end */ ~~^~~~~~~~~ mail.c:866:12: note: place parentheses around the assignment to silence this warning while (d = d->next); /* until at the end */ ^ ( ) mail.c:866:12: note: use '==' to turn this assignment into an equality comparison while (d = d->next); /* until at the end */ ^ == mail.c:910:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (mailbox,"\015\012")) { ~~^~~~~~~~~ mail.c:910:9: note: place parentheses around the assignment to silence this warning if (s = strpbrk (mailbox,"\015\012")) { ^ ( ) mail.c:910:9: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (mailbox,"\015\012")) { ^ == mail.c:921:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:921:33: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:1101:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stream = mail_open (stream,s+1,options)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1101:18: note: place parentheses around the assignment to silence this warning if (stream = mail_open (stream,s+1,options)) { ^ ( ) mail.c:1101:18: note: use '==' to turn this assignment into an equality comparison if (stream = mail_open (stream,s+1,options)) { ^ == mail.c:1118:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stream = mail_open (stream,mb.mailbox,options)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1118:18: note: place parentheses around the assignment to silence this warning if (stream = mail_open (stream,mb.mailbox,options)) { ^ ( ) mail.c:1118:18: note: use '==' to turn this assignment into an equality comparison if (stream = mail_open (stream,mb.mailbox,options)) { ^ == mail.c:1145:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; ~~^~~~~~~~~ mail.c:1145:13: note: place parentheses around the assignment to silence this warning if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; ^ ( ) mail.c:1145:13: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; ^ == mail.c:1151:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:1151:59: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (d = maildrivers; d && compare_cstring (d->name,tmp); d = d->next); ^~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:1354:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (stream->dtb && mail_uid_sequence (stream,sequence) && ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mail.c:1370:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (stream->dtb && mail_sequence (stream,sequence) && ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mail.c:1395:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ov.date = env->date; ^ ~~~~~~~~~ mail.c:1426:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1426:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1426:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1548:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1548:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1548:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1618:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1618:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1618:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1623:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((b = mail_body (stream,msgno,section)) && ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:1671:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rt.data = (unsigned char *) ~~~~~~~~^~~~~~~~~~~~~~~~~~~ mail.c:1671:19: note: place parentheses around the assignment to silence this warning if (rt.data = (unsigned char *) ^ mail.c:1671:19: note: use '==' to turn this assignment into an equality comparison if (rt.data = (unsigned char *) ^ == mail.c:1708:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1708:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1708:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1713:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((b = mail_body (stream,msgno,section)) && ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:1763:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1763:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1763:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1767:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(section && *section && (b = mail_body (stream,msgno,section)))) ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:1845:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1845:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1845:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1849:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(b = mail_body (stream,msgno,section))) return ""; ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:1903:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1903:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1903:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1909:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((b = mail_body (stream,msgno,section)) && ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:1973:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:1973:15: note: place parentheses around the assignment to silence this warning if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ ( ) mail.c:1973:15: note: use '==' to turn this assignment into an equality comparison if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ == mail.c:1977:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(b = mail_body (stream,msgno,section))) return NIL; ^~~~~~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ mail.c:2115:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (delta = ((last - first) / 2)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ mail.c:2115:12: note: place parentheses around the assignment to silence this warning if (delta = ((last - first) / 2)) { ^ ( ) mail.c:2115:12: note: use '==' to turn this assignment into an equality comparison if (delta = ((last - first) / 2)) { ^ == mail.c:2191:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & ST_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mail.c:2192:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence)) && ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:922:32: note: expanded from macro 'strncmp' && ((__builtin_constant_p (s1) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:803:29: note: expanded from macro 'strcmp' (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:32: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:873:55: note: expanded from macro '__strcmp_cg' (((__const unsigned char *) (__const char *) (s1))[0] \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:878:28: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[1] - __s2[1]); \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:882:25: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[2] - __s2[2]);\ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:885:27: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[3] \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:31: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:817:24: note: expanded from macro 'strcmp' : __strcmp_gc (s1, s2, __s2_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:893:53: note: expanded from macro '__strcmp_gc' (__const unsigned char *) (__const char *) (s1); \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^~ mail.c:2484:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mail.c:2484:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (lcase (strcpy (tmp,mailbox)),"#driver.",8)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: note: passing argument to parameter '__s1' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ mail.c:2537:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:2537:13: note: place parentheses around the assignment to silence this warning if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) ^ ( ) mail.c:2537:13: note: use '==' to turn this assignment into an equality comparison if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) ^ == mail.c:2607:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(i = strtoul (section,(char **) §ion,10)) || ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2612:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pt = b->nested.part) while (--i && (pt = pt->next)); ~~~^~~~~~~~~~~~~~~~ mail.c:2612:11: note: place parentheses around the assignment to silence this warning if (pt = b->nested.part) while (--i && (pt = pt->next)); ^ ( ) mail.c:2612:11: note: use '==' to turn this assignment into an equality comparison if (pt = b->nested.part) while (--i && (pt = pt->next)); ^ == mail.c:2738:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mail.c:2738:76: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); ^ /usr/include/string.h:128:72: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ mail.c:2738:64: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s && *s && (strlen (s) < (size_t)MAILTMPLEN)) s = ucase (strcpy (tmp,s)); ^~~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ mail.c:2744:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(m = strtoul (s,(char **) &s,10))) return NIL; ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2748:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (isdigit (*++s) && (d = strtoul (s,(char **) &s,10)) && ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2750:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] y = strtoul (s,(char **) &s,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2759:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen (s) < (size_t) 5) return NIL; ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mail.c:2787:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] y = strtoul (s,(char **) &s,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2805:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] d = strtoul (s+1,(char **) &s,10); ^~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2807:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] m = strtoul (++s,(char **) &s,10); ^~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2808:32: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0; ^~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:2958:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ ~~^~~~~~~~~~~~~~ mail.c:2958:11: note: place parentheses around the assignment to silence this warning if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ ^ ( ) mail.c:2958:11: note: use '==' to turn this assignment into an equality comparison if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ ^ == mail.c:3138:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!(i = strtoul (sequence,(char **) &sequence,10))) { ^~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:3149:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!(j = strtoul (sequence,(char **) &sequence,10))) { ^~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:3179:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; ~~^~~~~~~~~~~~~~~~~~~~~~~ mail.c:3179:13: note: place parentheses around the assignment to silence this warning if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; ^ ( ) mail.c:3179:13: note: use '==' to turn this assignment into an equality comparison if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; ^ == mail.c:3213:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (lines = lines->next); ~~~~~~^~~~~~~~~~~~~ mail.c:3213:16: note: place parentheses around the assignment to silence this warning while (lines = lines->next); ^ ( ) mail.c:3213:16: note: use '==' to turn this assignment into an equality comparison while (lines = lines->next); ^ == mail.c:3245:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = t - tmp) /* see if found in header */ ~~^~~~~~~~~ mail.c:3245:11: note: place parentheses around the assignment to silence this warning if (i = t - tmp) /* see if found in header */ ^ ( ) mail.c:3245:11: note: use '==' to turn this assignment into an equality comparison if (i = t - tmp) /* see if found in header */ ^ == mail.c:3247:53: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((hdrs->text.size == i) && !compare_csizedtext (tmp,&hdrs->text)) ^~~ ./misc.h:99:40: note: passing argument to parameter 's1' here int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); ^ mail.c:3378:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] BODY *body = mail_body (stream,msgno,section); ^~~~~~~ mail.c:2597:72: note: passing argument to parameter 'section' here BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) ^ mail.c:3484:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h.data = (unsigned char *) s) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ mail.c:3484:14: note: place parentheses around the assignment to silence this warning if (h.data = (unsigned char *) s) { ^ ( ) mail.c:3484:14: note: use '==' to turn this assignment into an equality comparison if (h.data = (unsigned char *) s) { ^ == mail.c:3534:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (st = st->next) s = s->next = mail_newstringlist (); ~~~^~~~~~~~~~ mail.c:3534:12: note: place parentheses around the assignment to silence this warning if (st = st->next) s = s->next = mail_newstringlist (); ^ ( ) mail.c:3534:12: note: use '==' to turn this assignment into an equality comparison if (st = st->next) s = s->next = mail_newstringlist (); ^ == mail.c:3549:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((body = mail_body (stream,msgno,section)) && ^~~~~~~ mail.c:2597:72: note: passing argument to parameter 'section' here BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) ^ mail.c:3614:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (body = body->nested.msg->body) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ mail.c:3614:16: note: place parentheses around the assignment to silence this warning if (body = body->nested.msg->body) ^ ( ) mail.c:3614:16: note: use '==' to turn this assignment into an equality comparison if (body = body->nested.msg->body) ^ == mail.c:3631:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (st.data = (unsigned char *) ~~~~~~~~^~~~~~~~~~~~~~~~~~~ mail.c:3631:14: note: place parentheses around the assignment to silence this warning if (st.data = (unsigned char *) ^ mail.c:3631:14: note: use '==' to turn this assignment into an equality comparison if (st.data = (unsigned char *) ^ == mail.c:3638:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:3638:14: note: place parentheses around the assignment to silence this warning if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { ^ ( ) mail.c:3638:14: note: use '==' to turn this assignment into an equality comparison if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { ^ == mail.c:3698:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_csizedtext (stream->user_flags[i],&st->text)) { ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:99:40: note: passing argument to parameter 's1' here int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); ^ mail.c:3703:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (st = st->next); ~~~^~~~~~~~~~ mail.c:3703:15: note: place parentheses around the assignment to silence this warning } while (st = st->next); ^ ( ) mail.c:3703:15: note: use '==' to turn this assignment into an equality comparison } while (st = st->next); ^ == mail.c:3732:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); ~~~~~~~~~~~~~~^~~~~~~~~~~~~ mail.c:3732:25: note: place parentheses around the assignment to silence this warning if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); ^ ( ) mail.c:3732:25: note: use '==' to turn this assignment into an equality comparison if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); ^ == mail.c:3733:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); ~~~~~~~~~^~~~~~~~ mail.c:3733:20: note: place parentheses around the assignment to silence this warning if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); ^ ( ) mail.c:3733:20: note: use '==' to turn this assignment into an equality comparison if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); ^ == mail.c:3734:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tadr.host = a->host) k += 3 + 2*strlen (a->host); ~~~~~~~~~~^~~~~~~~~ mail.c:3734:21: note: place parentheses around the assignment to silence this warning if (tadr.host = a->host) k += 3 + 2*strlen (a->host); ^ ( ) mail.c:3734:21: note: use '==' to turn this assignment into an equality comparison if (tadr.host = a->host) k += 3 + 2*strlen (a->host); ^ == mail.c:3829:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] switch (*ucase (criterion)) { ^~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ mail.c:3916:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_parse_date (&elt,(char *) s->text.data) && ^~~~~~~~~~~~~~~~~~~~~ mail.c:2720:56: note: passing argument to parameter 's' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) ^ mail.c:3964:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (d = strtok (c,end)) n = strlen (d); ~~^~~~~~~~~~~~~~~~ mail.c:3964:11: note: place parentheses around the assignment to silence this warning if (d = strtok (c,end)) n = strlen (d); ^ ( ) mail.c:3964:11: note: use '==' to turn this assignment into an equality comparison if (d = strtok (c,end)) n = strlen (d); ^ == mail.c:4122:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (env) t = env->date; ^ ~~~~~~~~~ mail.c:4126:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ~~^~~~~~~~~ mail.c:4126:22: note: place parentheses around the assignment to silence this warning for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ ( ) mail.c:4126:22: note: use '==' to turn this assignment into an equality comparison for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ == mail.c:4138:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(t && mail_parse_date (&telt,t) && ^ mail.c:2720:56: note: passing argument to parameter 's' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) ^ mail.c:4161:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ~~^~~~~~~~~ mail.c:4161:22: note: place parentheses around the assignment to silence this warning for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ ( ) mail.c:4161:22: note: use '==' to turn this assignment into an equality comparison for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ == mail.c:4169:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (v = strchr (v,':')) { ~~^~~~~~~~ mail.c:4169:9: note: place parentheses around the assignment to silence this warning if (v = strchr (v,':')) { ^ ( ) mail.c:4169:9: note: use '==' to turn this assignment into an equality comparison if (v = strchr (v,':')) { ^ == mail.c:4176:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4176:14: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ ( ) mail.c:4176:14: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ == mail.c:4193:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ~~^~~~~~~~~ mail.c:4193:22: note: place parentheses around the assignment to silence this warning for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ ( ) mail.c:4193:22: note: use '==' to turn this assignment into an equality comparison for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ == mail.c:4201:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (v = strchr (v,':')) { ~~^~~~~~~~ mail.c:4201:9: note: place parentheses around the assignment to silence this warning if (v = strchr (v,':')) { ^ ( ) mail.c:4201:9: note: use '==' to turn this assignment into an equality comparison if (v = strchr (v,':')) { ^ == mail.c:4208:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4208:14: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ ( ) mail.c:4208:14: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ == mail.c:4225:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ~~^~~~~~~~~ mail.c:4225:22: note: place parentheses around the assignment to silence this warning for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ ( ) mail.c:4225:22: note: use '==' to turn this assignment into an equality comparison for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ == mail.c:4233:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (v = strchr (v,':')) { ~~^~~~~~~~ mail.c:4233:9: note: place parentheses around the assignment to silence this warning if (v = strchr (v,':')) { ^ ( ) mail.c:4233:9: note: use '==' to turn this assignment into an equality comparison if (v = strchr (v,':')) { ^ == mail.c:4240:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4240:14: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ ( ) mail.c:4240:14: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ == mail.c:4258:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ~~^~~~~~~~~ mail.c:4258:22: note: place parentheses around the assignment to silence this warning for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ ( ) mail.c:4258:22: note: use '==' to turn this assignment into an equality comparison for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ == mail.c:4292:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (src.size = strlen (t)) { /* have non-empty subject? */ ~~~~~~~~~^~~~~~~~~~~~ mail.c:4292:16: note: place parentheses around the assignment to silence this warning if (src.size = strlen (t)) { /* have non-empty subject? */ ^ ( ) mail.c:4292:16: note: use '==' to turn this assignment into an equality comparison if (src.size = strlen (t)) { /* have non-empty subject? */ ^ == mail.c:4430:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->from,s2->from); ^~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4430:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->from,s2->from); ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4433:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->to,s2->to); ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4433:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->to,s2->to); ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4436:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->cc,s2->cc); ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4436:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->cc,s2->cc); ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4439:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->subject,s2->subject); ^~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4439:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = compare_cstring (s1->subject,s2->subject); ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4444:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (pgm = i ? NIL : pgm->next); ~~~~^~~~~~~~~~~~~~~~~~~~~ mail.c:4444:14: note: place parentheses around the assignment to silence this warning while (pgm = i ? NIL : pgm->next); ^ ( ) mail.c:4444:14: note: use '==' to turn this assignment into an equality comparison while (pgm = i ? NIL : pgm->next); ^ == mail.c:4538:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (type,t->name)) { ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4538:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (type,t->name)) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4571:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4571:11: note: place parentheses around the assignment to silence this warning if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ ^ ( ) mail.c:4571:11: note: use '==' to turn this assignment into an equality comparison if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ ^ == mail.c:4582:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (top->sc->subject,s->subject)) { ^~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4582:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (top->sc->subject,s->subject)) { ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:4685:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4685:10: note: place parentheses around the assignment to silence this warning if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^ ( ) mail.c:4685:10: note: use '==' to turn this assignment into an equality comparison if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^ == mail.c:4733:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] THREADLINKS); st = st->next; con = nxc) { ~~~^~~~~~~~~~ mail.c:4733:28: note: place parentheses around the assignment to silence this warning THREADLINKS); st = st->next; con = nxc) { ^ ( ) mail.c:4733:28: note: use '==' to turn this assignment into an equality comparison THREADLINKS); st = st->next; con = nxc) { ^ == mail.c:4737:4: warning: expression result unused [-Wunused-value] SETPARENT (nxc,con); /* establish parent/child link */ ^~~~~~~~~~~~~~~~~~~ mail.c:4633:32: note: expanded from macro 'SETPARENT' #define SETPARENT(data,value) ((container_t) (data[1] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4739:4: warning: expression result unused [-Wunused-value] SETSIBLING (nxc,CHILD (con)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4740:4: warning: expression result unused [-Wunused-value] SETCHILD (con,nxc); /* set as child of parent */ ^~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4751:2: warning: expression result unused [-Wunused-value] SETSIBLING (sib,SIBLING (nxc)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4748:31: warning: expression result unused [-Wunused-value] if (nxc == CHILD (prc)) SETCHILD (prc,SIBLING (nxc)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4747:7: warning: expression result unused [-Wunused-value] SETPARENT (nxc,NIL); /* easy if direct child */ ^~~~~~~~~~~~~~~~~~~ mail.c:4633:32: note: expanded from macro 'SETPARENT' #define SETPARENT(data,value) ((container_t) (data[1] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4753:7: warning: expression result unused [-Wunused-value] SETSIBLING (nxc,NIL); /* no more little sisters either */ ^~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4763:4: warning: expression result unused [-Wunused-value] SETSIBLING (con,nxc); /* add new baby sister */ ^~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4765:7: warning: expression result unused [-Wunused-value] else SETCHILD (con,nxc);/* set as only child */ ^~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4758:7: warning: expression result unused [-Wunused-value] SETPARENT (nxc,con); /* establish parent/child link */ ^~~~~~~~~~~~~~~~~~~ mail.c:4633:32: note: expanded from macro 'SETPARENT' #define SETPARENT(data,value) ((container_t) (data[1] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4900:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!s->date && ov->date && mail_parse_date (&telt,ov->date)) ^~~~~~~~ mail.c:2720:56: note: passing argument to parameter 's' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *s) ^ mail.c:4953:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = mail_thread_parse_msgid (s,&s)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4953:9: note: place parentheses around the assignment to silence this warning if (t = mail_thread_parse_msgid (s,&s)) { ^ ( ) mail.c:4953:9: note: use '==' to turn this assignment into an equality comparison if (t = mail_thread_parse_msgid (s,&s)) { ^ == mail.c:4956:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (flag) for (cur = ret; t = mail_thread_parse_msgid (s,&s); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4956:33: note: place parentheses around the assignment to silence this warning if (flag) for (cur = ret; t = mail_thread_parse_msgid (s,&s); ^ ( ) mail.c:4956:33: note: use '==' to turn this assignment into an equality comparison if (flag) for (cur = ret; t = mail_thread_parse_msgid (s,&s); ^ == mail.c:4997:14: warning: expression result unused [-Wunused-value] if (ane) SETSIBLING (ane,nxt); ^~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5006:19: warning: expression result unused [-Wunused-value] else if (cur) SETCHILD (cur,nxt); ^~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5004:14: warning: expression result unused [-Wunused-value] if (ane) SETSIBLING (ane,nxt); ^~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5007:5: warning: expression result unused [-Wunused-value] SETPARENT (nxt,cur); /* set parent as well */ ^~~~~~~~~~~~~~~~~~~ mail.c:4633:32: note: expanded from macro 'SETPARENT' #define SETPARENT(data,value) ((container_t) (data[1] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5011:5: warning: expression result unused [-Wunused-value] SETSIBLING (cur,SIBLING (msg)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:4635:33: note: expanded from macro 'SETSIBLING' #define SETSIBLING(data,value) ((container_t) (data[2] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5015:8: warning: expression result unused [-Wunused-value] else SETCHILD (msg,nxt); /* in case child pruned */ ^~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:4994:20: warning: expression result unused [-Wunused-value] if (CACHE (msg)) SETCHILD (msg,nxt); ^~~~~~~~~~~~~~~~~~ mail.c:4637:31: note: expanded from macro 'SETCHILD' #define SETCHILD(data,value) ((container_t) (data[3] = value)) ^ ~~~~~~~~~~~~~~~~~ mail.c:5057:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); ~~~~^~~~~~~ mail.c:5057:13: note: place parentheses around the assignment to silence this warning if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); ^ ( ) mail.c:5057:13: note: use '==' to turn this assignment into an equality comparison if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); ^ == mail.c:5136:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!(i = strtoul (sequence,(char **) &sequence,10)) || ^~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:5152:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!(j = strtoul (sequence,(char **) &sequence,10)) || ^~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mail.c:5206:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = strchr (t,' ')) *n++ = '\0'; ~~^~~~~~~~ mail.c:5206:13: note: place parentheses around the assignment to silence this warning if (n = strchr (t,' ')) *n++ = '\0'; ^ ( ) mail.c:5206:13: note: use '==' to turn this assignment into an equality comparison if (n = strchr (t,' ')) *n++ = '\0'; ^ == mail.c:5207:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (strcpy (flg,t)); ^~~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ mail.c:5239:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,s)) *uf |= i = 1 << j; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5239:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,s)) *uf |= i = 1 << j; ^ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5290:24: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((!compare_cstring (smb.host, ^~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5291:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] trustdns ? tcp_canonical (nmb.host) : nmb.host)&& ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5296:24: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!compare_cstring (omb.host,nmb.host) && ^~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5296:33: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!compare_cstring (omb.host,nmb.host) && ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5870:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (auth->server && !compare_cstring (auth->name,mechanism)) ^~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5870:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (auth->server && !compare_cstring (auth->name,mechanism)) ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5902:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (auth->name,mechanism)) ^~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5902:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (auth->name,mechanism)) ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mail.c:5989:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tstream = (*dv->open) (host,service,port | flags)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:5989:15: note: place parentheses around the assignment to silence this warning if (tstream = (*dv->open) (host,service,port | flags)) { ^ ( ) mail.c:5989:15: note: use '==' to turn this assignment into an equality comparison if (tstream = (*dv->open) (host,service,port | flags)) { ^ == mail.c:6011:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tstream = (*dv->aopen) (mb,service,user)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:6011:15: note: place parentheses around the assignment to silence this warning if (tstream = (*dv->aopen) (mb,service,user)) { ^ ( ) mail.c:6011:15: note: use '==' to turn this assignment into an equality comparison if (tstream = (*dv->aopen) (mb,service,user)) { ^ == 235 warnings generated. `cat CCTYPE` -c `cat CFLAGS` misc.c misc.c:282:47: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) ~~~~^~~~~~~~~~~~~~~~~~~ misc.c:282:47: note: place parentheses around the assignment to silence this warning for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) ^ ( ) misc.c:282:47: note: use '==' to turn this assignment into an equality comparison for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) ^ == misc.c:299:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; ~~^~~~~~~~~~~~~~~~~~~~~~~ misc.c:299:19: note: place parentheses around the assignment to silence this warning for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; ^ ( ) misc.c:299:19: note: use '==' to turn this assignment into an equality comparison for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; ^ == misc.c:387:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = (compare_ulong (islower (*s1) ? toupper (*s1) : *s1, ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:387:11: note: place parentheses around the assignment to silence this warning if (i = (compare_ulong (islower (*s1) ? toupper (*s1) : *s1, ^ misc.c:387:11: note: use '==' to turn this assignment into an equality comparison if (i = (compare_ulong (islower (*s1) ? toupper (*s1) : *s1, ^ == misc.c:408:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = (char *) s2->data,j = s2->size; *s1 && j; ++s1,++s,--j) ^ ~~~~~~~~~~~~~~~~~ misc.c:409:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = (compare_ulong (isupper (*s1) ? tolower (*s1) : *s1, ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:409:11: note: place parentheses around the assignment to silence this warning if (i = (compare_ulong (isupper (*s1) ? tolower (*s1) : *s1, ^ misc.c:409:11: note: use '==' to turn this assignment into an equality comparison if (i = (compare_ulong (isupper (*s1) ? tolower (*s1) : *s1, ^ == 5 warnings generated. `cat CCTYPE` -c `cat CFLAGS` newsrc.c newsrc.c:119:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (k = elt->private.uid - 1) { ~~^~~~~~~~~~~~~~~~~~~~~~ newsrc.c:119:8: note: place parentheses around the assignment to silence this warning if (k = elt->private.uid - 1) { ^ ( ) newsrc.c:119:8: note: use '==' to turn this assignment into an equality comparison if (k = elt->private.uid - 1) { ^ == newsrc.c:121:54: warning: data argument not used by format string [-Wformat-extra-args] sprintf (tmp,(j == k) ? "%c%ld" : "%c%ld-%ld",c,j,k); ~~~~~~~ ^ newsrc.c:129:57: warning: data argument not used by format string [-Wformat-extra-args] sprintf (tmp,(j == k) ? "%c%ld" : "%c%ld-%ld",c,j,k); ~~~~~~~ ^ newsrc.c:160:19: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ newsrc.c:160:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_lsub (stream,'.',name,NIL); ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ newsrc.c:163:21: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ newsrc.c:163:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ newsrc.c:335:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ~~^~~~~~~~~~~~~~~~~~~~~ newsrc.c:335:9: note: place parentheses around the assignment to silence this warning if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ ( ) newsrc.c:335:9: note: use '==' to turn this assignment into an equality comparison if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ == newsrc.c:360:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = newsrc_create (stream,NIL)) bf = NIL; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ newsrc.c:360:13: note: place parentheses around the assignment to silence this warning if (f = newsrc_create (stream,NIL)) bf = NIL; ^ ( ) newsrc.c:360:13: note: use '==' to turn this assignment into an equality comparison if (f = newsrc_create (stream,NIL)) bf = NIL; ^ == newsrc.c:377:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = newsrc_create (stream,T)) bf = NIL; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ newsrc.c:377:11: note: place parentheses around the assignment to silence this warning if (f = newsrc_create (stream,T)) bf = NIL; ^ ( ) newsrc.c:377:11: note: use '==' to turn this assignment into an equality comparison if (f = newsrc_create (stream,T)) bf = NIL; ^ == 10 warnings generated. `cat CCTYPE` -c `cat CFLAGS` smanager.c smanager.c:38:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smanager.c:38:33: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smanager.c:40:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = fopen (db,"r")) { /* make sure not already there */ ~~^~~~~~~~~~~~~~~~ smanager.c:40:9: note: place parentheses around the assignment to silence this warning if (f = fopen (db,"r")) { /* make sure not already there */ ^ ( ) smanager.c:40:9: note: use '==' to turn this assignment into an equality comparison if (f = fopen (db,"r")) { /* make sure not already there */ ^ == smanager.c:42:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (tmp,'\n')) *s = '\0'; ~~^~~~~~~~ smanager.c:42:13: note: place parentheses around the assignment to silence this warning if (s = strchr (tmp,'\n')) *s = '\0'; ^ ( ) smanager.c:42:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (tmp,'\n')) *s = '\0'; ^ == smanager.c:71:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smanager.c:71:33: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mailbox = "INBOX"; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smanager.c:82:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (tmp,'\n')) *s = '\0'; ~~^~~~~~~~ smanager.c:82:13: note: place parentheses around the assignment to silence this warning if (s = strchr (tmp,'\n')) *s = '\0'; ^ ( ) smanager.c:82:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (tmp,'\n')) *s = '\0'; ^ == smanager.c:113:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = fopen (sbname,"r")) *sdb = (void *) f; ~~^~~~~~~~~~~~~~~~~~~~ smanager.c:113:11: note: place parentheses around the assignment to silence this warning if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ ( ) smanager.c:113:11: note: use '==' to turn this assignment into an equality comparison if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ == smanager.c:117:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (sbname,'\n')) *s = '\0'; ~~^~~~~~~~ smanager.c:117:11: note: place parentheses around the assignment to silence this warning if (s = strchr (sbname,'\n')) *s = '\0'; ^ ( ) smanager.c:117:11: note: use '==' to turn this assignment into an equality comparison if (s = strchr (sbname,'\n')) *s = '\0'; ^ == 9 warnings generated. `cat CCTYPE` -c `cat CFLAGS` utf8.c utf8.c:275:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (script,utf8_scvalid[i].name)) ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:275:36: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (script,utf8_scvalid[i].name)) ^~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:291:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (charset,utf8_csvalid[i].name)) ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:291:37: warning: passing 'char *const' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (charset,utf8_csvalid[i].name)) ^~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:397:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (rmapcs && !compare_cstring (charset,rmapcs)) return rmap; ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:397:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (rmapcs && !compare_cstring (charset,rmapcs)) return rmap; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:504:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] short iso2022 = !compare_cstring (charset,"ISO-2022-JP"); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:504:45: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] short iso2022 = !compare_cstring (charset,"ISO-2022-JP"); ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ utf8.c:1352:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (st = st->next); ~~~^~~~~~~~~~ utf8.c:1352:15: note: place parentheses around the assignment to silence this warning } while (st = st->next); ^ ( ) utf8.c:1352:15: note: use '==' to turn this assignment into an equality comparison } while (st = st->next); ^ == utf8.c:1378:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ls = strchr (cs,'*')) *ls = '\0'; ~~~^~~~~~~~ utf8.c:1378:9: note: place parentheses around the assignment to silence this warning if (ls = strchr (cs,'*')) *ls = '\0'; ^ ( ) utf8.c:1378:9: note: use '==' to turn this assignment into an equality comparison if (ls = strchr (cs,'*')) *ls = '\0'; ^ == utf8.c:1472:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utf8.c:1472:19: note: place parentheses around the assignment to silence this warning if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) ^ ( ) utf8.c:1472:19: note: use '==' to turn this assignment into an equality comparison if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) ^ == 11 warnings generated. `cat CCTYPE` -c `cat CFLAGS` siglocal.c `cat CCTYPE` -c `cat CFLAGS` dummy.c dummy.c:117:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (name,"INBOX")) return &dummydriver; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:117:37: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (name,"INBOX")) return &dummydriver; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:154:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ~~^~~~~~~~ dummy.c:154:13: note: place parentheses around the assignment to silence this warning if (s = strchr (test,'/')) *++s = '\0'; ^ ( ) dummy.c:154:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (test,'/')) *++s = '\0'; ^ == dummy.c:162:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (test,"%*")) { ~~^~~~~~~~~ dummy.c:162:11: note: place parentheses around the assignment to silence this warning if (s = strpbrk (test,"%*")) { ^ ( ) dummy.c:162:11: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (test,"%*")) { ^ == dummy.c:168:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (file,'/')){/* find directory name */ ~~^~~~~~~~~~~~~~~~~~~~ dummy.c:168:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (file,'/')){/* find directory name */ ^ ( ) dummy.c:168:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (file,'/')){/* find directory name */ ^ == dummy.c:177:32: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch ("INBOX",ucase (test))) ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ dummy.c:177:17: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch ("INBOX",ucase (test))) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:208:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"INBOX") && ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:208:31: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"INBOX") && ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:209:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch ("INBOX",ucase (strcpy (tmp,test)))) ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ dummy.c:209:12: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch ("INBOX",ucase (strcpy (tmp,test)))) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:211:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:211:31: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); ^~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:214:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:214:21: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,LATT_NOSELECT); ^~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:217:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = sm_read (&sdb)); /* until no more subscriptions */ ~~^~~~~~~~~~~~~~~~ dummy.c:217:12: note: place parentheses around the assignment to silence this warning while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ ( ) dummy.c:217:12: note: use '==' to turn this assignment into an equality comparison while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ == dummy.c:261:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = opendir (tmp)) { /* do nothing if can't open directory */ ~~~^~~~~~~~~~~~~~~ dummy.c:261:10: note: place parentheses around the assignment to silence this warning if (dp = opendir (tmp)) { /* do nothing if can't open directory */ ^ ( ) dummy.c:261:10: note: use '==' to turn this assignment into an equality comparison if (dp = opendir (tmp)) { /* do nothing if can't open directory */ ^ == dummy.c:263:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!level && dir && pmatch_full (dir,pat,'/')) ^~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:263:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!level && dir && pmatch_full (dir,pat,'/')) ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:268:56: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (!dir || dir[strlen (dir) - 1] == '/') while (d = readdir (dp)) ~~^~~~~~~~~~~~~~ dummy.c:268:56: note: place parentheses around the assignment to silence this warning if (!dir || dir[strlen (dir) - 1] == '/') while (d = readdir (dp)) ^ ( ) dummy.c:268:56: note: use '==' to turn this assignment into an equality comparison if (!dir || dir[strlen (dir) - 1] == '/') while (d = readdir (dp)) ^ == dummy.c:278:20: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((pmatch_full (tmp,pat,'/') || ^~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:278:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((pmatch_full (tmp,pat,'/') || ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:279:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch_full (strcat (tmp,"/"),pat,'/') || dmatch (tmp,pat,'/')) && ^~~~~~~~~~~~~~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:279:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch_full (strcat (tmp,"/"),pat,'/') || dmatch (tmp,pat,'/')) && ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:279:57: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch_full (strcat (tmp,"/"),pat,'/') || dmatch (tmp,pat,'/')) && ^~~ ./env.h:24:29: note: passing argument to parameter 's' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:279:61: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pmatch_full (strcat (tmp,"/"),pat,'/') || dmatch (tmp,pat,'/')) && ^~~ ./env.h:24:46: note: passing argument to parameter 'pat' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:287:23: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (tmp,pat,'/')) { ^~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:287:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (tmp,pat,'/')) { ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:292:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (pmatch_full (strcat (tmp,"/"),pat,'/') && ^~~~~~~~~~~~~~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:292:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (pmatch_full (strcat (tmp,"/"),pat,'/') && ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:295:18: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (tmp,pat,'/') && ^~~ ./env.h:24:29: note: passing argument to parameter 's' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:295:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (tmp,pat,'/') && ^~~ ./env.h:24:46: note: passing argument to parameter 'pat' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:302:51: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(ismx && mx_select (d)) && pmatch_full (tmp,pat,'/') && ^~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:302:55: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(ismx && mx_select (d)) && pmatch_full (tmp,pat,'/') && ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ dummy.c:303:20: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (tmp,"INBOX")) ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:303:24: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (tmp,"INBOX")) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:389:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:389:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(compare_cstring (mailbox,"INBOX") && (s = dummy_file (tmp,mailbox)))) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:416:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (path,'/')) { /* found superior to this name? */ ~~^~~~~~~~~~~~~~~~~~~~ dummy.c:416:9: note: place parentheses around the assignment to silence this warning if (s = strrchr (path,'/')) { /* found superior to this name? */ ^ ( ) dummy.c:416:9: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (path,'/')) { /* found superior to this name? */ ^ == dummy.c:495:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:495:29: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (old,"INBOX") && stat (oldname,&sbuf)) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:524:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (stream->mailbox,"INBOX")) ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:524:42: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (stream->mailbox,"INBOX")) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:628:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ dummy.c:629:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence)) fatal ("Impossible dummy_copy"); ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ dummy.c:649:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (mailbox,"INBOX") && dummy_file (tmp,mailbox) && ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ dummy.c:649:32: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (mailbox,"INBOX") && dummy_file (tmp,mailbox) && ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ 47 warnings generated. `cat CCTYPE` -c `cat CFLAGS` pseudo.c `cat CCTYPE` -c `cat CFLAGS` netmsg.c netmsg.c:58:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = fopen (tmp,"wb+")) unlink (tmp); ~~^~~~~~~~~~~~~~~~~~~ netmsg.c:58:11: note: place parentheses around the assignment to silence this warning if (f = fopen (tmp,"wb+")) unlink (tmp); ^ ( ) netmsg.c:58:11: note: use '==' to turn this assignment into an equality comparison if (f = fopen (tmp,"wb+")) unlink (tmp); ^ == netmsg.c:67:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = net_getline (stream)) { ~~^~~~~~~~~~~~~~~~~~~~~~ netmsg.c:67:12: note: place parentheses around the assignment to silence this warning while (s = net_getline (stream)) { ^ ( ) netmsg.c:67:12: note: use '==' to turn this assignment into an equality comparison while (s = net_getline (stream)) { ^ == 2 warnings generated. `cat CCTYPE` -c `cat CFLAGS` flstring.c `cat CCTYPE` -c `cat CFLAGS` fdstring.c fdstring.c:85:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s->cursize = min (s->chunksize,SIZE (s))) { ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdstring.c:85:18: note: place parentheses around the assignment to silence this warning if (s->cursize = min (s->chunksize,SIZE (s))) { ^ ( ) fdstring.c:85:18: note: use '==' to turn this assignment into an equality comparison if (s->cursize = min (s->chunksize,SIZE (s))) { ^ == 1 warning generated. `cat CCTYPE` -c `cat CFLAGS` rfc822.c rfc822.c:97:42: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rfc822_header_line (&header,"Date",env,env->date); ^~~~~~~~~ ./rfc822.h:41:71: note: passing argument to parameter 'text' here void rfc822_header_line (char **header,char *type,ENVELOPE *env,char *text); ^ rfc822.c:246:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (; s = strpbrk (src,"\\\""); src = s + 1) { ~~^~~~~~~~~ rfc822.c:246:14: note: place parentheses around the assignment to silence this warning for (; s = strpbrk (src,"\\\""); src = s + 1) { ^ ( ) rfc822.c:246:14: note: use '==' to turn this assignment into an equality comparison for (; s = strpbrk (src,"\\\""); src = s + 1) { ^ == rfc822.c:283:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (param = param->next); ~~~~~~^~~~~~~~~~~~~ rfc822.c:283:18: note: place parentheses around the assignment to silence this warning } while (param = param->next); ^ ( ) rfc822.c:283:18: note: use '==' to turn this assignment into an equality comparison } while (param = param->next); ^ == rfc822.c:296:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stl = body->language) { ~~~~^~~~~~~~~~~~~~~~ rfc822.c:296:11: note: place parentheses around the assignment to silence this warning if (stl = body->language) { ^ ( ) rfc822.c:296:11: note: use '==' to turn this assignment into an equality comparison if (stl = body->language) { ^ == rfc822.c:300:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stl = stl->next) strcat (*dst += strlen (*dst),", "); ~~~~^~~~~~~~~~~ rfc822.c:300:15: note: place parentheses around the assignment to silence this warning if (stl = stl->next) strcat (*dst += strlen (*dst),", "); ^ ( ) rfc822.c:300:15: note: use '==' to turn this assignment into an equality comparison if (stl = stl->next) strcat (*dst += strlen (*dst),", "); ^ == rfc822.c:312:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (param = body->disposition.parameter) do { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:312:15: note: place parentheses around the assignment to silence this warning if (param = body->disposition.parameter) do { ^ ( ) rfc822.c:312:15: note: use '==' to turn this assignment into an equality comparison if (param = body->disposition.parameter) do { ^ == rfc822.c:321:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (param = param->next); ~~~~~~^~~~~~~~~~~~~ rfc822.c:321:20: note: place parentheses around the assignment to silence this warning } while (param = param->next); ^ ( ) rfc822.c:321:20: note: use '==' to turn this assignment into an equality comparison } while (param = param->next); ^ == rfc822.c:397:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = d = strchr (tmp,':')) { ~~^~~~~~~~~~~~ rfc822.c:397:11: note: place parentheses around the assignment to silence this warning if (t = d = strchr (tmp,':')) { ^ ( ) rfc822.c:397:11: note: use '==' to turn this assignment into an equality comparison if (t = d = strchr (tmp,':')) { ^ == rfc822.c:401:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (tmp); /* coerce to uppercase */ ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:427:53: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!env->date && !strcmp (tmp+1,"ATE")) env->date = cpystr (d); ^ ~~~~~~~~~~ rfc822.c:433:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ~~^~~~~~ rfc822.c:433:13: note: place parentheses around the assignment to silence this warning while (c = *d++) if (c != ' ') *t++ = c; ^ ( ) rfc822.c:433:13: note: use '==' to turn this assignment into an equality comparison while (c = *d++) if (c != ' ') *t++ = c; ^ == rfc822.c:447:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = rfc822_parse_phrase (d)) *t = '\0'; ~~^~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:447:10: note: place parentheses around the assignment to silence this warning if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ ( ) rfc822.c:447:10: note: use '==' to turn this assignment into an equality comparison if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ == rfc822.c:458:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ~~^~~~~~ rfc822.c:458:13: note: place parentheses around the assignment to silence this warning while (c = *d++) if (c != ' ') *t++ = c; ^ ( ) rfc822.c:458:13: note: use '==' to turn this assignment into an equality comparison while (c = *d++) if (c != ' ') *t++ = c; ^ == rfc822.c:589:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = GETPOS (bs)) m--; /* get position in front of character */ ~~^~~~~~~~ rfc822.c:589:13: note: place parentheses around the assignment to silence this warning if (m = GETPOS (bs)) m--; /* get position in front of character */ ^ ( ) rfc822.c:589:13: note: use '==' to turn this assignment into an equality comparison if (m = GETPOS (bs)) m--; /* get position in front of character */ ^ == rfc822.c:599:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); ~~^~~~~~~ rfc822.c:599:8: note: place parentheses around the assignment to silence this warning if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); ^ ( ) rfc822.c:599:8: note: use '==' to turn this assignment into an equality comparison if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); ^ == rfc822.c:653:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = part->body.mime.text.size) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:653:13: note: place parentheses around the assignment to silence this warning if (i = part->body.mime.text.size) { ^ ( ) rfc822.c:653:13: note: use '==' to turn this assignment into an equality comparison if (i = part->body.mime.text.size) { ^ == rfc822.c:697:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] rfc822_parse_content_header (&part->body,ucase (s1+8),s); ^~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:697:47: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rfc822_parse_content_header (&part->body,ucase (s1+8),s); ^~~~~~~~~~~~ ./rfc822.h:52:52: note: passing argument to parameter 'name' here void rfc822_parse_content_header (BODY *body,char *name,char *s); ^ rfc822.c:751:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (name,' ')) *t = '\0'; ~~^~~~~~~~ rfc822.c:751:9: note: place parentheses around the assignment to silence this warning if (t = strchr (name,' ')) *t = '\0'; ^ ( ) rfc822.c:751:9: note: use '==' to turn this assignment into an equality comparison if (t = strchr (name,' ')) *t = '\0'; ^ == rfc822.c:764:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->disposition.type = ucase (cpystr (s)); ^~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:764:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->disposition.type = ucase (cpystr (s)); ^ ~~~~~~~~~~~~~~~~~~ rfc822.c:778:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stl->text.data = (unsigned char *) ucase (cpystr (s)); ^~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:802:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase (rfc822_cpy(s));/* search for body type */ ^~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:802:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase (rfc822_cpy(s));/* search for body type */ ^ ~~~~~~~~~~~~~~~~~~~~~ rfc822.c:817:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s) body->subtype = ucase (rfc822_cpy (s)); ^~~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:817:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s) body->subtype = ucase (rfc822_cpy (s)); ^ ~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:830:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase (rfc822_cpy(s));/* search for body encoding */ ^~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:830:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase (rfc822_cpy(s));/* search for body encoding */ ^ ~~~~~~~~~~~~~~~~~~~~~ rfc822.c:837:52: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else body_encodings[body->encoding] = ucase (cpystr (s)); ^~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:837:43: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else body_encodings[body->encoding] = ucase (cpystr (s)); ^ ~~~~~~~~~~~~~~~~~~ rfc822.c:864:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] param->attribute = ucase (cpystr (s)); ^~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ rfc822.c:864:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] param->attribute = ucase (cpystr (s)); ^ ~~~~~~~~~~~~~~~~~~ rfc822.c:916:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:916:18: note: place parentheses around the assignment to silence this warning else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { ^ ( ) rfc822.c:916:18: note: use '==' to turn this assignment into an equality comparison else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { ^ == rfc822.c:970:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:970:11: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; ^ ( ) rfc822.c:970:11: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; ^ == rfc822.c:972:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (adr = rfc822_parse_mailbox (string,defaulthost)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:972:16: note: place parentheses around the assignment to silence this warning else if (adr = rfc822_parse_mailbox (string,defaulthost)) { ^ ( ) rfc822.c:972:16: note: use '==' to turn this assignment into an equality comparison else if (adr = rfc822_parse_mailbox (string,defaulthost)) { ^ == rfc822.c:1018:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:1018:13: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { ^ ( ) rfc822.c:1018:13: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { ^ == rfc822.c:1077:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (end = rfc822_parse_phrase (s)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:1077:16: note: place parentheses around the assignment to silence this warning else if (end = rfc822_parse_phrase (s)) { ^ ( ) rfc822.c:1077:16: note: use '==' to turn this assignment into an equality comparison else if (end = rfc822_parse_phrase (s)) { ^ == rfc822.c:1206:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = rfc822_parse_word (string,wspecials)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:1206:11: note: place parentheses around the assignment to silence this warning if (t = rfc822_parse_word (string,wspecials)) { ^ ( ) rfc822.c:1206:11: note: use '==' to turn this assignment into an equality comparison if (t = rfc822_parse_word (string,wspecials)) { ^ == rfc822.c:1274:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (t = rfc822_parse_word (string,wspecials)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:1274:14: note: place parentheses around the assignment to silence this warning else if (t = rfc822_parse_word (string,wspecials)) { ^ ( ) rfc822.c:1274:14: note: use '==' to turn this assignment into an equality comparison else if (t = rfc822_parse_word (string,wspecials)) { ^ == rfc822.c:1284:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (string = rfc822_parse_domain (string,&t)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rfc822.c:1284:18: note: place parentheses around the assignment to silence this warning if (string = rfc822_parse_domain (string,&t)) { ^ ( ) rfc822.c:1284:18: note: use '==' to turn this assignment into an equality comparison if (string = rfc822_parse_domain (string,&t)) { ^ == rfc822.c:1351:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (st = strchr (st,I2C_ESC)) ~~~^~~~~~~~ rfc822.c:1351:14: note: place parentheses around the assignment to silence this warning while (st = strchr (st,I2C_ESC)) ^ ( ) rfc822.c:1351:14: note: use '==' to turn this assignment into an equality comparison while (st = strchr (st,I2C_ESC)) ^ == rfc822.c:1575:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (part = part->next); /* until done */ ~~~~~^~~~~~~~~~~~ rfc822.c:1575:17: note: place parentheses around the assignment to silence this warning while (part = part->next); /* until done */ ^ ( ) rfc822.c:1575:17: note: use '==' to turn this assignment into an equality comparison while (part = part->next); /* until done */ ^ == rfc822.c:1643:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (part = part->next); /* until done */ ~~~~~^~~~~~~~~~~~ rfc822.c:1643:17: note: place parentheses around the assignment to silence this warning while (part = part->next); /* until done */ ^ ( ) rfc822.c:1643:17: note: use '==' to turn this assignment into an equality comparison while (part = part->next); /* until done */ ^ == rfc822.c:1708:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (part = part->next);/* until done */ ~~~~~^~~~~~~~~~~~ rfc822.c:1708:19: note: place parentheses around the assignment to silence this warning } while (part = part->next);/* until done */ ^ ( ) rfc822.c:1708:19: note: use '==' to turn this assignment into an equality comparison } while (part = part->next);/* until done */ ^ == rfc822.c:1806:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (tmp,"\015\012")) *s = NIL; ~~^~~~~~~~~ rfc822.c:1806:8: note: place parentheses around the assignment to silence this warning if (s = strpbrk (tmp,"\015\012")) *s = NIL; ^ ( ) rfc822.c:1806:8: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (tmp,"\015\012")) *s = NIL; ^ == 45 warnings generated. `cat CCTYPE` -c `cat CFLAGS` nntp.c nntp.c:349:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = net_getline (LOCAL->nntpstream->netstream)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:349:14: note: place parentheses around the assignment to silence this warning while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ ( ) nntp.c:349:14: note: use '==' to turn this assignment into an equality comparison while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ == nntp.c:354:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (s,' ')) { /* tie off after newsgroup name */ ~~^~~~~~~~ nntp.c:354:13: note: place parentheses around the assignment to silence this warning if (t = strchr (s,' ')) { /* tie off after newsgroup name */ ^ ( ) nntp.c:354:13: note: use '==' to turn this assignment into an equality comparison if (t = strchr (s,' ')) { /* tie off after newsgroup name */ ^ == nntp.c:358:19: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:358:24: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:361:21: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:361:26: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:393:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) ~~^~~~~~~~~~~~~~~~ nntp.c:393:9: note: place parentheses around the assignment to silence this warning if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) ^ ( ) nntp.c:393:9: note: use '==' to turn this assignment into an equality comparison if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) ^ == nntp.c:393:60: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) ~~~~~~~~^~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:393:62: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) ~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ nntp.c:395:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = sm_read (&sdb)); /* until no more subscriptions */ ~~^~~~~~~~~~~~~~~~ nntp.c:395:12: note: place parentheses around the assignment to silence this warning while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ ( ) nntp.c:395:12: note: use '==' to turn this assignment into an equality comparison while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ == nntp.c:426:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (s = wildmat; s = strchr (s,'%'); *s = '*'); ~~^~~~~~~~ nntp.c:426:25: note: place parentheses around the assignment to silence this warning for (s = wildmat; s = strchr (s,'%'); *s = '*'); ^ ( ) nntp.c:426:25: note: use '==' to turn this assignment into an equality comparison for (s = wildmat; s = strchr (s,'%'); *s = '*'); ^ == nntp.c:552:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (state = newsrc_state (stream,name)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:552:20: note: place parentheses around the assignment to silence this warning else if (state = newsrc_state (stream,name)) { ^ ( ) nntp.c:552:20: note: use '==' to turn this assignment into an equality comparison else if (state = newsrc_state (stream,name)) { ^ == nntp.c:562:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] newsrc_check_uid (state,k,&status.recent,&status.unseen); ^~~~~ ./newsrc.h:34:39: note: passing argument to parameter 'state' here void newsrc_check_uid (unsigned char *state,unsigned long uid, ^ nntp.c:571:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] newsrc_check_uid (state,i++,&status.recent,&status.unseen); ^~~~~ ./newsrc.h:34:39: note: passing argument to parameter 'state' here void newsrc_check_uid (unsigned char *state,unsigned long uid, ^ nntp.c:727:12: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] lcase (strcpy (s,(long) mail_parameters (NIL,GET_NEWSRCCANONHOST,NIL) ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ nntp.c:845:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ nntp.c:846:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ nntp.c:888:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ nntp.c:888:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ nntp.c:914:9: warning: data argument not used by format string [-Wformat-extra-args] mail_uid (stream,j - 1)); ^ nntp.c:921:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (t = v = s; c = *v++;) ~~^~~~~~ nntp.c:921:22: note: place parentheses around the assignment to silence this warning for (t = v = s; c = *v++;) ^ ( ) nntp.c:921:22: note: use '==' to turn this assignment into an equality comparison for (t = v = s; c = *v++;) ^ == nntp.c:991:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ nntp.c:991:72: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((s = net_getline (LOCAL->nntpstream->netstream)) && strcmp (s,".")){ ~~~~~~~~^~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ nntp.c:1031:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (ov->subject,'\t')) { ~~^~~~~~~~ nntp.c:1031:9: note: place parentheses around the assignment to silence this warning if (t = strchr (ov->subject,'\t')) { ^ ( ) nntp.c:1031:9: note: use '==' to turn this assignment into an equality comparison if (t = strchr (ov->subject,'\t')) { ^ == nntp.c:1034:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ov->date = strchr (t,'\t')) { ~~~~~~~~~^~~~~~~~ nntp.c:1034:18: note: place parentheses around the assignment to silence this warning if (ov->date = strchr (t,'\t')) { ^ ( ) nntp.c:1034:18: note: use '==' to turn this assignment into an equality comparison if (ov->date = strchr (t,'\t')) { ^ == nntp.c:1037:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!elt->day) mail_parse_date (elt,ov->date); ^~~~~~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ nntp.c:1041:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ov->message_id = strchr (ov->date,'\t')) { ~~~~~~~~~~~~~~~^~~~~~~~ nntp.c:1041:26: note: place parentheses around the assignment to silence this warning if (ov->message_id = strchr (ov->date,'\t')) { ^ ( ) nntp.c:1041:26: note: use '==' to turn this assignment into an equality comparison if (ov->message_id = strchr (ov->date,'\t')) { ^ == nntp.c:1045:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ov->references = strchr (ov->message_id,'\t')) { ~~~~~~~~~~~~~~~^~~~~~~~ nntp.c:1045:21: note: place parentheses around the assignment to silence this warning if (ov->references = strchr (ov->message_id,'\t')) { ^ ( ) nntp.c:1045:21: note: use '==' to turn this assignment into an equality comparison if (ov->references = strchr (ov->message_id,'\t')) { ^ == nntp.c:1049:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (ov->references,'\t')) { ~~^~~~~~~~ nntp.c:1049:10: note: place parentheses around the assignment to silence this warning if (t = strchr (ov->references,'\t')) { ^ ( ) nntp.c:1049:10: note: use '==' to turn this assignment into an equality comparison if (t = strchr (ov->references,'\t')) { ^ == nntp.c:1054:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (t,'\t')) { ~~^~~~~~~~ nntp.c:1054:12: note: place parentheses around the assignment to silence this warning if (t = strchr (t,'\t')) { ^ ( ) nntp.c:1054:12: note: use '==' to turn this assignment into an equality comparison if (t = strchr (t,'\t')) { ^ == nntp.c:1058:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ov->optional.xref = strchr (t,'\t')) ~~~~~~~~~~~~~~~~~~^~~~~~~~ nntp.c:1058:30: note: place parentheses around the assignment to silence this warning if (ov->optional.xref = strchr (t,'\t')) ^ ( ) nntp.c:1058:30: note: use '==' to turn this assignment into an equality comparison if (ov->optional.xref = strchr (t,'\t')) ^ == nntp.c:1091:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:1091:13: note: place parentheses around the assignment to silence this warning if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { ^ ( ) nntp.c:1091:13: note: use '==' to turn this assignment into an equality comparison if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { ^ == nntp.c:1143:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:1143:22: note: place parentheses around the assignment to silence this warning if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, ^ nntp.c:1143:22: note: use '==' to turn this assignment into an equality comparison if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, ^ == nntp.c:1267:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (set = pgm->msgno) { /* must be inside this sequence */ ~~~~^~~~~~~~~~~~ nntp.c:1267:13: note: place parentheses around the assignment to silence this warning if (set = pgm->msgno) { /* must be inside this sequence */ ^ ( ) nntp.c:1267:13: note: use '==' to turn this assignment into an equality comparison if (set = pgm->msgno) { /* must be inside this sequence */ ^ == nntp.c:1275:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (set = pgm->uid) { /* must be inside this sequence */ ~~~~^~~~~~~~~~ nntp.c:1275:13: note: place parentheses around the assignment to silence this warning if (set = pgm->uid) { /* must be inside this sequence */ ^ ( ) nntp.c:1275:13: note: use '==' to turn this assignment into an equality comparison if (set = pgm->uid) { /* must be inside this sequence */ ^ == nntp.c:1312:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!mail_parse_date (&delt,ov->date) || ^~~~~~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ nntp.c:1506:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; ~~^~~~~~ nntp.c:1506:25: note: place parentheses around the assignment to silence this warning for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; ^ ( ) nntp.c:1506:25: note: use '==' to turn this assignment into an equality comparison for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; ^ == nntp.c:1515:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strchr (v,'\t')) { ~~^~~~~~~~ nntp.c:1515:8: note: place parentheses around the assignment to silence this warning if (t = strchr (v,'\t')) { ^ ( ) nntp.c:1515:8: note: use '==' to turn this assignment into an equality comparison if (t = strchr (v,'\t')) { ^ == nntp.c:1517:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:1517:12: note: place parentheses around the assignment to silence this warning if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^ ( ) nntp.c:1517:12: note: use '==' to turn this assignment into an equality comparison if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^ == nntp.c:1522:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (v = strchr (t,'\t')) { ~~^~~~~~~~ nntp.c:1522:10: note: place parentheses around the assignment to silence this warning if (v = strchr (t,'\t')) { ^ ( ) nntp.c:1522:10: note: use '==' to turn this assignment into an equality comparison if (v = strchr (t,'\t')) { ^ == nntp.c:1524:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (mail_parse_date (&telt,t)) r->date = mail_longdate (&telt); ^ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ nntp.c:1668:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (netstream = /* try to open ordinary connection */ ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:1668:21: note: place parentheses around the assignment to silence this warning if (netstream = /* try to open ordinary connection */ ^ nntp.c:1668:21: note: use '==' to turn this assignment into an equality comparison if (netstream = /* try to open ordinary connection */ ^ == nntp.c:1709:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (stream->netstream->stream = ~~~~~~~~~~~~~~~~~~~~~~~~~~^ nntp.c:1709:35: note: place parentheses around the assignment to silence this warning if (stream->netstream->stream = ^ nntp.c:1709:35: note: use '==' to turn this assignment into an equality comparison if (stream->netstream->stream = ^ == nntp.c:1805:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (args = strchr (t,' ')) *args++ = '\0'; ~~~~~^~~~~~~~ nntp.c:1805:14: note: place parentheses around the assignment to silence this warning if (args = strchr (t,' ')) *args++ = '\0'; ^ ( ) nntp.c:1805:14: note: use '==' to turn this assignment into an equality comparison if (args = strchr (t,' ')) *args++ = '\0'; ^ == nntp.c:1806:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1806:29: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"LISTGROUP")) NNTP.ext.listgroup = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1807:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1807:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"OVER")) NNTP.ext.over = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1808:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1808:34: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"HDR")) NNTP.ext.hdr = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1809:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1809:34: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"PAT")) NNTP.ext.pat = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1810:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1810:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"STARTTLS")) NNTP.ext.starttls = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1811:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1811:34: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MULTIDOMAIN")) NNTP.ext.multidomain = T; ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1813:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"AUTHINFO") && args) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1813:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"AUTHINFO") && args) { ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1816:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1816:29: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (args,"USER")) NNTP.ext.authuser = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ nntp.c:1897:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = strstr (env->date," (")) *s = NIL; ^~~~~~~~~ /usr/include/string.h:342:36: note: passing argument to parameter '__haystack' here extern char *strstr (__const char *__haystack, __const char *__needle) ^ nntp.c:1897:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strstr (env->date," (")) *s = NIL; ~~^~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:1897:9: note: place parentheses around the assignment to silence this warning if (s = strstr (env->date," (")) *s = NIL; ^ ( ) nntp.c:1897:9: note: use '==' to turn this assignment into an equality comparison if (s = strstr (env->date," (")) *s = NIL; ^ == nntp.c:2195:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (t = strstr (s,"\015\012.")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~ nntp.c:2195:12: note: place parentheses around the assignment to silence this warning while (t = strstr (s,"\015\012.")) { ^ ( ) nntp.c:2195:12: note: use '==' to turn this assignment into an equality comparison while (t = strstr (s,"\015\012.")) { ^ == 68 warnings generated. `cat CCTYPE` -c `cat CFLAGS` smtp.c smtp.c:161:34: warning: passing 'char [21]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (mb.service,"submit")) { ^~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smtp.c:161:45: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (mb.service,"submit")) { ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smtp.c:167:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (netstream = /* try to open ordinary connection */ ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:167:21: note: place parentheses around the assignment to silence this warning if (netstream = /* try to open ordinary connection */ ^ smtp.c:167:21: note: use '==' to turn this assignment into an equality comparison if (netstream = /* try to open ordinary connection */ ^ == smtp.c:179:23: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = compare_cstring ("localhost",mb.host) ? ^~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smtp.c:179:35: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = compare_cstring ("localhost",mb.host) ? ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ smtp.c:663:12: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (strncpy (tmp,stream->reply+4,MAILTMPLEN-1)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:33: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ smtp.c:755:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (t = strstr (s,"\015\012.")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~ smtp.c:755:12: note: place parentheses around the assignment to silence this warning while (t = strstr (s,"\015\012.")) { ^ ( ) smtp.c:755:12: note: use '==' to turn this assignment into an equality comparison while (t = strstr (s,"\015\012.")) { ^ == 7 warnings generated. `cat CCTYPE` -c `cat CFLAGS` imap4r1.c imap4r1.c:487:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) ~~^~~~~~~~~~~~~~~~ imap4r1.c:487:9: note: place parentheses around the assignment to silence this warning if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) ^ ( ) imap4r1.c:487:9: note: use '==' to turn this assignment into an equality comparison if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) ^ == imap4r1.c:487:60: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) ~~~~~~~~^~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ imap4r1.c:487:62: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) ~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ imap4r1.c:489:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = sm_read (&sdb)); /* until no more subscriptions */ ~~^~~~~~~~~~~~~~~~ imap4r1.c:489:12: note: place parentheses around the assignment to silence this warning while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ ( ) imap4r1.c:489:12: note: use '==' to turn this assignment into an equality comparison while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ == imap4r1.c:546:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:546:33: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:548:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:548:38: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:560:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcmp (imap_send (stream,"FIND ALL.MAILBOXES",args)->key,"BAD")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:561:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (imap_send (stream,"FIND MAILBOXES",args)->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:684:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ret ? NIL : ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:831:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:831:20: note: place parentheses around the assignment to silence this warning else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); ^ ( ) imap4r1.c:831:20: note: use '==' to turn this assignment into an equality comparison else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); ^ == imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:852:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!reply || strcmp (reply->tag,"*") || ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:853:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (strcmp (reply->key,"OK") && strcmp (reply->key,"PREAUTH"))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:854:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply) mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:859:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (LOCAL->netstream && strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:963:36: warning: passing 'char [256]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); ^~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:963:47: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (mb.mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:973:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1019:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp ((reply = imap_parse_reply (stream,cpystr (tmp)))->tag,"*")){ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1023:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:1059:37: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (compare_cstring (reply->tag,tag)) { ^~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:1061:70: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) ^~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:1076:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1126:39: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (compare_cstring (reply->tag,tag)) ^~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:1127:67: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (compare_cstring ((reply = imap_reply (stream,tag))->tag,tag)) ^~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:1136:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] lsterr = cpystr (reply->text); ^~~~~~~~~~~ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ imap4r1.c:1188:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,WARN); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:1218:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->tag,"*")) imap_parse_unsolicited (stream,reply); ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:1223:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlen (reply->text),len))) { ^~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap4r1.c:1280:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,WARN); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1295:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:1295:13: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (t = thr) { ^ ( ) imap4r1.c:1295:13: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (t = thr) { ^ == imap4r1.c:1295:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ~~^~~~~ imap4r1.c:1295:45: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (t = thr) { ^ ( ) imap4r1.c:1295:45: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (t = thr) { ^ == imap4r1.c:1320:40: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!imap_OK (stream,reply)) mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1341:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1394:15: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ov.date = env->date; ^ ~~~~~~~~~ imap4r1.c:1442:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1475:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = (set->last == 0xffffffff) ? stream->nmsgs : ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:1475:10: note: place parentheses around the assignment to silence this warning if (j = (set->last == 0xffffffff) ? stream->nmsgs : ^ imap4r1.c:1475:10: note: use '==' to turn this assignment into an equality comparison if (j = (set->last == 0xffffffff) ? stream->nmsgs : ^ == imap4r1.c:1498:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (k = (k > i) ? k - i : 0) ~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:1498:9: note: place parentheses around the assignment to silence this warning if (k = (k > i) ? k - i : 0) ^ ( ) imap4r1.c:1498:9: note: use '==' to turn this assignment into an equality comparison if (k = (k > i) ? k - i : 0) ^ == imap4r1.c:1567:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1569:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1676:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (t = strstr (section,".HEADER")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:1676:16: note: place parentheses around the assignment to silence this warning else if (t = strstr (section,".HEADER")) { ^ ( ) imap4r1.c:1676:16: note: use '==' to turn this assignment into an equality comparison else if (t = strstr (section,".HEADER")) { ^ == imap4r1.c:1799:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,WARN); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1809:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1818:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,WARN); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1822:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1860:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (k = imap_uidlookahead) {/* build UID list */ ~~^~~~~~~~~~~~~~~~~~~ imap4r1.c:1860:11: note: place parentheses around the assignment to silence this warning if (k = imap_uidlookahead) {/* build UID list */ ^ ( ) imap4r1.c:1860:11: note: use '==' to turn this assignment into an equality comparison if (k = imap_uidlookahead) {/* build UID list */ ^ == imap4r1.c:1875:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1911:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:1952:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2019:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2023:50: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (set = ss; set; set = set->next) if (i = set->first) { ~~^~~~~~~~~~~~ imap4r1.c:2023:50: note: place parentheses around the assignment to silence this warning for (set = ss; set; set = set->next) if (i = set->first) { ^ ( ) imap4r1.c:2023:50: note: use '==' to turn this assignment into an equality comparison for (set = ss; set; set = set->next) if (i = set->first) { ^ == imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2038:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2044:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2080:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2142:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2149:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2158:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2243:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (thr->name,type)) ^~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2243:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (thr->name,type)) ^~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2303:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(flags & SE_UID) && !strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2310:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2318:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2342:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,imap_OK (stream,reply) ? (long) NIL : ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2353:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,imap_OK (stream,reply) ? (long) NIL : ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2381:62: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ir && pc && LOCAL->referral && mail_sequence (stream,sequence) && ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ imap4r1.c:2384:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2436:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2497:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2527:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ imap4r1.c:2531:44: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.tag = LOCAL->reply.line = cpystr ("*"); ^ ~~~~~~~~~~~~ imap4r1.c:2532:24: warning: assigning to 'unsigned char *' from 'char [4]' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.key = "BAD"; ^ ~~~~~ imap4r1.c:2533:25: warning: assigning to 'unsigned char *' from 'char [19]' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.text = "Bad date in append"; ^ ~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:2543:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp ((reply = imap_send (stream,"APPEND",args))->key,"BAD") && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:2566:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2566:15: note: place parentheses around the assignment to silence this warning if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) ^ ( ) imap4r1.c:2566:15: note: use '==' to turn this assignment into an equality comparison if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) ^ == imap4r1.c:2621:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2621:13: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (t = thr) { ^ ( ) imap4r1.c:2621:13: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (t = thr) { ^ == imap4r1.c:2621:45: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ~~^~~~~ imap4r1.c:2621:45: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (t = thr) { ^ ( ) imap4r1.c:2621:45: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (t = thr) { ^ == imap4r1.c:2729:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2753:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2775:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2798:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_log (reply->text,ERROR); ^~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ imap4r1.c:2835:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2835:46: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*sc) (stream,cmd,((compare_cstring (cmd,"FETCH") && ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2836:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (cmd,"STORE") && ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2836:25: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (cmd,"STORE") && ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2837:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (cmd,"SEARCH")) ? ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2837:25: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (cmd,"SEARCH")) ? ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:2843:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ~~~~~~~^~~~~~ imap4r1.c:2843:14: note: place parentheses around the assignment to silence this warning if (arglst = args) while (arg = *arglst++) { ^ ( ) imap4r1.c:2843:14: note: use '==' to turn this assignment into an equality comparison if (arglst = args) while (arg = *arglst++) { ^ == imap4r1.c:2843:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ~~~~^~~~~~~~~~~ imap4r1.c:2843:33: note: place parentheses around the assignment to silence this warning if (arglst = args) while (arg = *arglst++) { ^ ( ) imap4r1.c:2843:33: note: use '==' to turn this assignment into an equality comparison if (arglst = args) while (arg = *arglst++) { ^ == imap4r1.c:2863:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2863:17: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) ^ ( ) imap4r1.c:2863:17: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) ^ == imap4r1.c:2867:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2867:17: note: place parentheses around the assignment to silence this warning if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; ^ ( ) imap4r1.c:2867:17: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; ^ == imap4r1.c:2875:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2875:12: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, ^ imap4r1.c:2875:12: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, ^ == imap4r1.c:2879:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (list = list->next); ~~~~~^~~~~~~~~~~~ imap4r1.c:2879:19: note: place parentheses around the assignment to silence this warning while (list = list->next); ^ ( ) imap4r1.c:2879:19: note: use '==' to turn this assignment into an equality comparison while (list = list->next); ^ == imap4r1.c:2883:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2883:17: note: place parentheses around the assignment to silence this warning if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, ^ imap4r1.c:2883:17: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, ^ == imap4r1.c:2969:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:2969:17: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) ^ ( ) imap4r1.c:2969:17: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) ^ == imap4r1.c:2990:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!map->date || mail_parse_date (&elt,map->date)) { ^~~~~~~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ imap4r1.c:2991:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = map->flags) { /* flags given? */ ~~^~~~~~~~~~~~ imap4r1.c:2991:10: note: place parentheses around the assignment to silence this warning if (t = map->flags) { /* flags given? */ ^ ( ) imap4r1.c:2991:10: note: use '==' to turn this assignment into an equality comparison if (t = map->flags) { /* flags given? */ ^ == imap4r1.c:3003:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&st,NIL, ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3003:16: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,&s,&st,NIL, ^ imap4r1.c:3003:16: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,&s,&st,NIL, ^ == imap4r1.c:3007:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,map->message)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3007:14: note: place parentheses around the assignment to silence this warning if (reply = imap_send_literal (stream,tag,&s,map->message)) ^ ( ) imap4r1.c:3007:14: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_literal (stream,tag,&s,map->message)) ^ == imap4r1.c:3037:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (list = list->next); ~~~~~^~~~~~~~~~~~ imap4r1.c:3037:19: note: place parentheses around the assignment to silence this warning while (list = list->next); ^ ( ) imap4r1.c:3037:19: note: use '==' to turn this assignment into an equality comparison while (list = list->next); ^ == imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3115:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (reply->tag,"+")) {/* prompt for more data? */ ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3248:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hdr = pgm->header) do { ~~~~^~~~~~~~~~~~~ imap4r1.c:3248:11: note: place parentheses around the assignment to silence this warning if (hdr = pgm->header) do { ^ ( ) imap4r1.c:3248:11: note: use '==' to turn this assignment into an equality comparison if (hdr = pgm->header) do { ^ == imap4r1.c:3250:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3250:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) ^ ( ) imap4r1.c:3250:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) ^ == imap4r1.c:3253:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3253:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) ^ ( ) imap4r1.c:3253:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) ^ == imap4r1.c:3255:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (hdr = hdr->next); ~~~~^~~~~~~~~~~ imap4r1.c:3255:16: note: place parentheses around the assignment to silence this warning } while (hdr = hdr->next); ^ ( ) imap4r1.c:3255:16: note: use '==' to turn this assignment into an equality comparison } while (hdr = hdr->next); ^ == imap4r1.c:3258:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3258:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) ^ ( ) imap4r1.c:3258:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) ^ == imap4r1.c:3261:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3261:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) ^ ( ) imap4r1.c:3261:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) ^ == imap4r1.c:3267:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3267:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) ^ ( ) imap4r1.c:3267:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) ^ == imap4r1.c:3345:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_literal (stream,tag,s,&st)) return reply; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3345:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_literal (stream,tag,s,&st)) return reply; ^ ( ) imap4r1.c:3345:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_literal (stream,tag,s,&st)) return reply; ^ == imap4r1.c:3347:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3347:15: note: place parentheses around the assignment to silence this warning if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) ^ ( ) imap4r1.c:3347:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) ^ == imap4r1.c:3448:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3448:15: note: place parentheses around the assignment to silence this warning if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { ^ ( ) imap4r1.c:3448:15: note: use '==' to turn this assignment into an equality comparison if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { ^ == imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3450:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->tag,"+")) return reply; ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3452:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->tag,"*")) { ~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3457:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (tag && !compare_cstring (tag,reply->tag)) return reply; ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3482:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.line = text)) { ^ ~~~~ imap4r1.c:3488:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (stream->debug) mm_dlog (LOCAL->reply.line); ^~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1510:21: note: passing argument to parameter 'string' here void mm_dlog (char *string); ^ imap4r1.c:3489:45: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.tag = (char *) strtok (LOCAL->reply.line," "))) { ^~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3489:26: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.tag = (char *) strtok (LOCAL->reply.line," "))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3495:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (LOCAL->reply.tag,"+")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^~ imap4r1.c:3497:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.key = (char *) strtok (NIL," "))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3507:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.text = (char *) strtok (NIL,"\n"))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3508:54: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.text = LOCAL->reply.key + strlen (LOCAL->reply.key); ^~~~~~~~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap4r1.c:3511:22: warning: assigning to 'unsigned char *' from 'char [4]' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.key = "BAD"; /* so it barfs if not expecting continuation */ ^ ~~~~~ imap4r1.c:3512:29: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(LOCAL->reply.text = (char *) strtok (NIL,"\n"))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3513:25: warning: assigning to 'unsigned char *' from 'char [1]' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.text = ""; ^ ~~ imap4r1.c:3533:40: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.tag = LOCAL->reply.line = cpystr (tag ? tag : "*"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3534:20: warning: assigning to 'unsigned char *' from 'char [3]' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.key = "NO"; ^ ~~~~ imap4r1.c:3535:21: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->reply.text = text; ^ ~~~~ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3550:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"OK")) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3551:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,NIL,NIL); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3555:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3556:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,WARN,NIL); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3558:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (reply->key,"BAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3559:35: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,ERROR,NIL); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:3582:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] msgno = strtoul (reply->key,(char **) &s,10); ^~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3596:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase ((char *) strtok (reply->text," ")); ^~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3596:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = ucase ((char *) strtok (reply->text," ")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3598:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = (char *) strtok (NIL,"\n"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3601:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (s,"EXISTS")) mail_exists (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3602:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"RECENT")) mail_recent (stream,msgno); ~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3603:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (s,"EXPUNGE") && msgno && (msgno <= stream->nmsgs)) { ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3611:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (s,"FETCH") || !strcmp (s,"STORE")) && ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3622:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (prop = ((char *) strtok (t," )"))) { ^ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3622:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (prop = ((char *) strtok (t," )"))) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3622:19: note: place parentheses around the assignment to silence this warning while (prop = ((char *) strtok (t," )"))) { ^ ( ) imap4r1.c:3622:19: note: use '==' to turn this assignment into an equality comparison while (prop = ((char *) strtok (t," )"))) { ^ == imap4r1.c:3623:4: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = (char *) strtok (NIL,"\n"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:803:29: note: expanded from macro 'strcmp' (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:32: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:873:55: note: expanded from macro '__strcmp_cg' (((__const unsigned char *) (__const char *) (s1))[0] \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:878:28: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[1] - __s2[1]); \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:882:25: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[2] - __s2[2]);\ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:885:27: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[3] \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:31: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:817:24: note: expanded from macro 'strcmp' : __strcmp_gc (s1, s2, __s2_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:893:53: note: expanded from macro '__strcmp_gc' (__const unsigned char *) (__const char *) (s1); \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:3627:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (ucase (prop),"FLAGS")) imap_parse_flags (stream,elt,&t); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3635:27: warning: passing 'char [27]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_parse_date (elt,"01-Jan-1970 00:00:00 +0000"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ imap4r1.c:3641:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->lastuid.uid = elt->private.uid = strtoul (t,(char **) &t,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3682:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(s = strchr (md.what,']'))) { ^ ~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3684:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = md.what; *s && (isdigit (*s) || (*s == '.')); s++); ^ ~~~~~~~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:21: note: expanded from macro 'strncmp' && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:15: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^~ imap4r1.c:3686:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (s,"HEADER.FIELDS",13) && ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:34: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:35: note: passing argument to parameter '__s1' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3687:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!s[13] || strcmp (s+13,".NOT"))) ~~~~~~~~^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3697:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (t = strchr (s = t,' ')) *t++ = '\0'; ~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ imap4r1.c:3697:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ ~~~~~~~~~~~~~~~~~~ imap4r1.c:3697:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (t = strchr (s = t,' ')) *t++ = '\0'; ~~^~~~~~~~ imap4r1.c:3697:19: note: place parentheses around the assignment to silence this warning else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ ( ) imap4r1.c:3697:19: note: use '==' to turn this assignment into an equality comparison else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ == imap4r1.c:3702:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] md.first = strtoul (s+1,(char **) &s,10) + 1; ^~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3745:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] elt->rfc822_size = strtoul (t,(char **) &t,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3776:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (strcmp (s,"COPY")) { ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3783:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"FLAGS") && reply->text && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3784:52: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*reply->text == '(') && (s = (char *) strtok (reply->text+1," )"))) ^~~~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3784:33: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*reply->text == '(') && (s = (char *) strtok (reply->text+1," )"))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3787:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (s,stream->user_flags[i]); i++); ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3793:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!stream->user_flags[i]) stream->user_flags[i++] = cpystr (s); ^ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ imap4r1.c:3795:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (s = (char *) strtok (NIL," )")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3795:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = (char *) strtok (NIL," )")); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3795:14: note: place parentheses around the assignment to silence this warning while (s = (char *) strtok (NIL," )")); ^ ( ) imap4r1.c:3795:14: note: use '==' to turn this assignment into an equality comparison while (s = (char *) strtok (NIL," )")); ^ == imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3796:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SEARCH")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3798:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply->text && (t = (char *) strtok (reply->text," "))) do ^~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3798:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply->text && (t = (char *) strtok (reply->text," "))) do ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3799:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (i = strtoul (t,NIL,10)) { ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3799:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = strtoul (t,NIL,10)) { ~~^~~~~~~~~~~~~~~~~~~~ imap4r1.c:3799:13: note: place parentheses around the assignment to silence this warning if (i = strtoul (t,NIL,10)) { ^ ( ) imap4r1.c:3799:13: note: use '==' to turn this assignment into an equality comparison if (i = strtoul (t,NIL,10)) { ^ == imap4r1.c:3808:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] } while (t = (char *) strtok (NIL," ")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3808:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (t = (char *) strtok (NIL," ")); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3808:18: note: place parentheses around the assignment to silence this warning } while (t = (char *) strtok (NIL," ")); ^ ( ) imap4r1.c:3808:18: note: use '==' to turn this assignment into an equality comparison } while (t = (char *) strtok (NIL," ")); ^ == imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3810:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"SORT")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3818:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply->text && (t = (char *) strtok (reply->text," "))) { ^~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3818:27: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply->text && (t = (char *) strtok (reply->text," "))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3819:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] do if ((i = atol (t)) && (LOCAL->filter ? ^ /usr/include/stdlib.h:289:28: note: passing argument to parameter '__nptr' here __NTH (atol (__const char *__nptr)) ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:48:52: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__)) fct ^ imap4r1.c:3822:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while ((t = (char *) strtok (NIL," ")) && ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3829:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"THREAD")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3833:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = reply->text) { ~~^~~~~~~~~~~~~ imap4r1.c:3833:11: note: place parentheses around the assignment to silence this warning if (s = reply->text) { ^ ( ) imap4r1.c:3833:11: note: use '==' to turn this assignment into an equality comparison if (s = reply->text) { ^ == imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3844:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"STATUS") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3848:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ imap4r1.c:3848:43: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) && ^ ~~~~~~~~~~~~~~~~ imap4r1.c:3854:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (*txt && (s = strchr (txt,' '))) { ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ imap4r1.c:3854:25: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (*txt && (s = strchr (txt,' '))) { ^ ~~~~~~~~~~~~~~~~ imap4r1.c:3857:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strtoul (s,(char **) &s,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:3858:28: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (txt,"MESSAGES")) { ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3862:33: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (txt,"RECENT")) { ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3866:33: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (txt,"UNSEEN")) { ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3870:33: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (txt,"UIDNEXT")) { ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3874:33: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (txt,"UIDVALIDITY")) { ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3883:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy (strncpy (LOCAL->tmp,stream->mailbox,i) + i,t); ^ /usr/include/string.h:128:72: note: passing argument to parameter '__src' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3891:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((!strcmp (reply->key,"LIST") || !strcmp (reply->key,"LSUB")) && ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3893:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (s = strchr (reply->text,')')) && (s[1] == ' ')) { ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ imap4r1.c:3893:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (s = strchr (reply->text,')')) && (s[1] == ' ')) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3897:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (t = (char *) strtok (reply->text+1," ")) do { ^~~~~~~~~~~~~ /usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, __const char *__restrict __delim) ^ imap4r1.c:3897:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (t = (char *) strtok (reply->text+1," ")) do { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3897:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = (char *) strtok (reply->text+1," ")) do { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3897:11: note: place parentheses around the assignment to silence this warning if (t = (char *) strtok (reply->text+1," ")) do { ^ ( ) imap4r1.c:3897:11: note: use '==' to turn this assignment into an equality comparison if (t = (char *) strtok (reply->text+1," ")) do { ^ == imap4r1.c:3898:31: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"\\NoInferiors")) i |= LATT_NOINFERIORS; ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3899:36: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"\\NoSelect")) i |= LATT_NOSELECT; ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3900:36: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"\\Marked")) i |= LATT_MARKED; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3901:36: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"\\Unmarked")) i |= LATT_UNMARKED; ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3902:36: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"\\HasChildren")) i |= LATT_HASCHILDREN; ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3903:36: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"\\HasNoChildren")) i |= LATT_HASNOCHILDREN; ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:3906:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (t = (char *) strtok (NIL," ")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3906:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (t = (char *) strtok (NIL," ")); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3906:14: note: place parentheses around the assignment to silence this warning while (t = (char *) strtok (NIL," ")); ^ ( ) imap4r1.c:3906:14: note: use '==' to turn this assignment into an equality comparison while (t = (char *) strtok (NIL," ")); ^ == imap4r1.c:3917:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = imap_parse_astring (stream,&s,reply,&j)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3917:11: note: place parentheses around the assignment to silence this warning if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ ( ) imap4r1.c:3917:11: note: use '==' to turn this assignment into an equality comparison if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ == imap4r1.c:3920:13: warning: assigning to 'unsigned char *' from 'char [16384]' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); ^ ~~~~~~~~~~ imap4r1.c:3920:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); ^~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap4r1.c:3923:59: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (reply->key[1] == 'S') mm_lsub (stream,delimiter,s,i); ^ ./mail.h:1507:54: note: passing argument to parameter 'name' here void mm_lsub (MAILSTREAM *stream,int delimiter,char *name,long attributes); ^ imap4r1.c:3924:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else mm_list (stream,delimiter,s,i); ^ ./mail.h:1506:54: note: passing argument to parameter 'name' here void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3928:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NAMESPACE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3935:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = reply->text) { /* parse namespace results */ ~~^~~~~~~~~~~~~ imap4r1.c:3935:11: note: place parentheses around the assignment to silence this warning if (s = reply->text) { /* parse namespace results */ ^ ( ) imap4r1.c:3935:11: note: use '==' to turn this assignment into an equality comparison if (s = reply->text) { /* parse namespace results */ ^ == imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3951:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"ACL") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3957:30: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] do if ((ac->identifier = imap_parse_astring (stream,&s,reply,NIL)) && ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3959:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ac->rights = imap_parse_astring (stream,&s,reply,NIL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3968:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (ar) (*ar) (stream,t,al); ^ imap4r1.c:3972:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (ar) (*ar) (stream,t,NIL); ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:3976:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"LISTRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:3980:35: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s && (*s++ == ' ') && (id = imap_parse_astring (stream,&s,reply,NIL))){ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3982:7: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (r = imap_parse_astring (stream,&s,reply,NIL))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:3996:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lr) (*lr) (stream,t,id,r,rl); ^ imap4r1.c:4001:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (lr) (*lr) (stream,t,id,r,NIL); ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4019:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MYRIGHTS") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4023:34: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s && (*s++ == ' ') && (r = imap_parse_astring (stream,&s,reply,NIL))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4029:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mr) (*mr) (stream,t,r); ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4041:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTA") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4052:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((qc->name = imap_parse_astring (stream,&s,reply,NIL)) && s && ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4054:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] qc->usage = strtoul (s,(char **) &s,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:4056:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] qc->limit = strtoul (s,(char **) &s,10); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:4061:30: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (qt) (*qt) (stream,t,ql); ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4080:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"QUOTAROOT") && (s = reply->text) && ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4095:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (qr) (*qr) (stream,t,rl); ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4106:50: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"OK") || !strcmp (reply->key,"PREAUTH")) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4107:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,NIL,T); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4108:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"NO")) ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4109:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,WARN,T); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4110:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BAD")) ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4111:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,ERROR,T); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4112:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"BYE")) { ~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4114:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_response (stream,reply->text,BYE,T); ^~~~~~~~~~~ imap4r1.c:221:52: note: passing argument to parameter 'text' here void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long ntfy); ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4116:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"CAPABILITY") && reply->text) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4117:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] imap_parse_capabilities (stream,reply->text); ^~~~~~~~~~~ imap4r1.c:256:56: note: passing argument to parameter 't' here void imap_parse_capabilities (MAILSTREAM *stream,char *t); ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ imap4r1.c:4118:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (reply->key,"MAILBOX") && reply->text) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ imap4r1.c:4120:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((strlen (LOCAL->prefix) + strlen (reply->text)) < IMAPTMPLEN)) ^~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ imap4r1.c:4121:18: warning: assigning to 'unsigned char *' from 'char [16384]' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); ^ ~~~~~~~~~~ imap4r1.c:4121:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (t = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) reply->text); ^~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ imap4r1.c:4123:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_list (stream,NIL,t,NIL); ^ ./mail.h:1506:54: note: passing argument to parameter 'name' here void mm_list (MAILSTREAM *stream,int delimiter,char *name,long attributes); ^ imap4r1.c:4150:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (strncpy (LOCAL->tmp,s,i),' ')) *s++ = '\0'; ~~^~~~~~~~ imap4r1.c:4150:11: note: place parentheses around the assignment to silence this warning if (s = strchr (strncpy (LOCAL->tmp,s,i),' ')) *s++ = '\0'; ^ ( ) imap4r1.c:4150:11: note: use '==' to turn this assignment into an equality comparison if (s = strchr (strncpy (LOCAL->tmp,s,i),' ')) *s++ = '\0'; ^ == imap4r1.c:4153:29: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"UIDVALIDITY") && ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4153:40: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"UIDVALIDITY") && ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4158:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4158:12: note: place parentheses around the assignment to silence this warning if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^ ( ) imap4r1.c:4158:12: note: use '==' to turn this assignment into an equality comparison if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^ == imap4r1.c:4161:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"UIDNEXT")) ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4161:45: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"UIDNEXT")) ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4163:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"PERMANENTFLAGS") && (*s == '(') && ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4163:45: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"PERMANENTFLAGS") && (*s == '(') && ^~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4169:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strtok (s+1," ")) do { ~~^~~~~~~~~~~~~~~~~~ imap4r1.c:4169:8: note: place parentheses around the assignment to silence this warning if (s = strtok (s+1," ")) do { ^ ( ) imap4r1.c:4169:8: note: use '==' to turn this assignment into an equality comparison if (s = strtok (s+1," ")) do { ^ == imap4r1.c:4171:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4171:30: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,"\\Seen")) stream->perm_seen = T; ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4172:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Deleted")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4172:35: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Deleted")) ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4174:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Flagged")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4174:35: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Flagged")) ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4176:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Answered")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4176:35: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Answered")) ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4178:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4178:35: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"\\Draft")) stream->perm_draft = T; ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4183:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = strtok (NIL," ")); ~~^~~~~~~~~~~~~~~~~~ imap4r1.c:4183:11: note: place parentheses around the assignment to silence this warning while (s = strtok (NIL," ")); ^ ( ) imap4r1.c:4183:11: note: use '==' to turn this assignment into an equality comparison while (s = strtok (NIL," ")); ^ == imap4r1.c:4185:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"CAPABILITY")) ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4185:45: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"CAPABILITY")) ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4189:24: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"REFERRAL")) ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4189:35: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"REFERRAL")) ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4194:29: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"UIDNOTSTICKY")) { ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4194:40: warning: passing 'char [13]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (LOCAL->tmp,"UIDNOTSTICKY")) { ^~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4198:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"READ-ONLY")) stream->rdonly = T; ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4198:45: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"READ-ONLY")) stream->rdonly = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4199:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"READ-WRITE")) ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4199:45: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"READ-WRITE")) ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4201:34: warning: passing 'char [16384]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"PARSE") && !errflg) ^~~~~~~~~~ imap4r1.c:100:15: note: expanded from macro 'LOCAL' #define LOCAL ((IMAPLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4201:45: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (LOCAL->tmp,"PARSE") && !errflg) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4243:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] nam->name = imap_parse_string (stream,txtptr,reply,NIL,NIL,NIL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4268:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(par->attribute = imap_parse_string (stream,txtptr,reply,NIL, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4280:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4353:29: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (isdigit (*(s = *txtptr)) && ~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/ctype.h:176:32: note: expanded from macro 'isdigit' # define isdigit(c) __isctype((c), _ISdigit) ^ /usr/include/ctype.h:89:31: note: expanded from macro '__isctype' ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type) ^ imap4r1.c:4355:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strtoul (*txtptr,(char **) txtptr,10))) { ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:4448:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*env)->subject = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4455:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*env)->in_reply_to = imap_parse_string (stream,txtptr,reply,NIL,NIL, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4457:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (*env)->message_id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4553:21: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] adr->personal = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4554:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] adr->adl = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4555:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] adr->mailbox = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4556:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] adr->host = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4641:19: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (*(flag = ++*txtptr) == ' '); ^ ~~~~~~~~~ imap4r1.c:4649:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (flag,"\\Seen")) elt->seen = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4649:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (flag,"\\Seen")) elt->seen = T; ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4650:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4650:39: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Deleted")) elt->deleted = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4651:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4651:39: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Flagged")) elt->flagged = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4652:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4652:39: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Answered")) elt->answered = T; ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4653:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4653:39: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Recent")) elt->recent = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4654:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4654:39: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (flag,"\\Draft")) elt->draft = T; ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4678:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4678:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (flag,stream->user_flags[i])) return (1 << i); ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:4709:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = *txtptr - s) { /* atom ends at atom_special */ ~~^~~~~~~~~~~~~ imap4r1.c:4709:11: note: place parentheses around the assignment to silence this warning if (i = *txtptr - s) { /* atom ends at atom_special */ ^ ( ) imap4r1.c:4709:11: note: use '==' to turn this assignment into an equality comparison if (i = *txtptr - s) { /* atom ends at atom_special */ ^ == imap4r1.c:4711:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = strncpy ((char *) fs_get (i + 1),s,i); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ imap4r1.c:4711:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = strncpy ((char *) fs_get (i + 1),s,i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4752:6: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] st = ++*txtptr; /* remember start of string */ ^ ~~~~~~~~~ imap4r1.c:4771:9: warning: returning 'char *' from a function with result type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return string; ^~~~~~ imap4r1.c:4801:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((i = strtoul (*txtptr,(char **) txtptr,10)) > 0x7fffffff) { ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:4821:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4821:29: note: place parentheses around the assignment to silence this warning if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { ^ ( ) imap4r1.c:4821:29: note: use '==' to turn this assignment into an equality comparison if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { ^ == imap4r1.c:4829:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); ~~~^~~~~~~~~ imap4r1.c:4829:28: note: place parentheses around the assignment to silence this warning for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); ^ ( ) imap4r1.c:4829:28: note: use '==' to turn this assignment into an equality comparison for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); ^ == imap4r1.c:4831:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(reply->line = net_getline (LOCAL->netstream))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4832:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] reply->line = cpystr (""); ^ ~~~~~~~~~~~ imap4r1.c:4833:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (stream->debug) mm_dlog (reply->line); ^~~~~~~~~~~ ./mail.h:1510:21: note: passing argument to parameter 'string' here void mm_dlog (char *string); ^ imap4r1.c:4843:10: warning: returning 'char *' from a function with result type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return string; ^~~~~~ imap4r1.c:4901:39: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(b = mail_body (stream,msgno,seg))) { ^~~ ./mail.h:1599:19: note: passing argument to parameter 'section' here unsigned char *section); ^ imap4r1.c:4978:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4978:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:4978:25: note: place parentheses around the assignment to silence this warning if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ ( ) imap4r1.c:4978:25: note: use '==' to turn this assignment into an equality comparison if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ == imap4r1.c:4979:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (body->subtype); ^~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:4997:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5018:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5018:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5018:13: note: place parentheses around the assignment to silence this warning if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ ( ) imap4r1.c:5018:13: note: use '==' to turn this assignment into an equality comparison if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ == imap4r1.c:5019:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (s); /* application always gets uppercase form */ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:5028:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5028:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5028:25: note: place parentheses around the assignment to silence this warning if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ ( ) imap4r1.c:5028:25: note: use '==' to turn this assignment into an equality comparison if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) ^ == imap4r1.c:5029:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (body->subtype); /* parse subtype */ ^~~~~~~~~~~~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:5036:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->id = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5037:25: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->description = imap_parse_string (stream,txtptr,reply,NIL,NIL, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5039:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5039:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5039:13: note: place parentheses around the assignment to silence this warning if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ ( ) imap4r1.c:5039:13: note: use '==' to turn this assignment into an equality comparison if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ == imap4r1.c:5040:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ucase (s); /* application always gets uppercase form */ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ imap4r1.c:5053:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->size.bytes = strtoul (*txtptr,(char **) txtptr,10); ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:5063:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->size.lines = strtoul (*txtptr,(char **) txtptr,10); ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:5069:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->md5 = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5082:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->location = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5130:24: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if(!(par->attribute=imap_parse_string (stream,txtptr,reply,NIL,NIL, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5136:22: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(par->value = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT))){ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5158:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((*(s = *txtptr) == 'I') || (*s == 'i')) && ^ ~~~~~~~ imap4r1.c:5182:28: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] body->disposition.type = imap_parse_string (stream,txtptr,reply,NIL,NIL, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5225:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5225:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5225:14: note: place parentheses around the assignment to silence this warning else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { ^ ( ) imap4r1.c:5225:14: note: use '==' to turn this assignment into an equality comparison else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { ^ == imap4r1.c:5293:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (i = strtoul (*txtptr,(char **) txtptr,10)) do ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:5293:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = strtoul (*txtptr,(char **) txtptr,10)) do ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5293:11: note: place parentheses around the assignment to silence this warning if (i = strtoul (*txtptr,(char **) txtptr,10)) do ^ ( ) imap4r1.c:5293:11: note: use '==' to turn this assignment into an equality comparison if (i = strtoul (*txtptr,(char **) txtptr,10)) do ^ == imap4r1.c:5298:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(reply->line = net_getline (LOCAL->netstream))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5299:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] reply->line = cpystr (""); ^ ~~~~~~~~~~~ imap4r1.c:5300:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (stream->debug) mm_dlog (reply->line); ^~~~~~~~~~~ ./mail.h:1510:21: note: passing argument to parameter 'string' here void mm_dlog (char *string); ^ imap4r1.c:5305:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strtoul (*txtptr,(char **) txtptr,10); ^~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ imap4r1.c:5329:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ~~~~^~~~~~~~~~~~~~~~~~~~~ imap4r1.c:5329:13: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (th = thr) { ^ ( ) imap4r1.c:5329:13: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (th = thr) { ^ == imap4r1.c:5329:46: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ~~~^~~~~ imap4r1.c:5329:46: note: place parentheses around the assignment to silence this warning if (thr = LOCAL->cap.threader) while (th = thr) { ^ ( ) imap4r1.c:5329:46: note: use '==' to turn this assignment into an equality comparison if (thr = LOCAL->cap.threader) while (th = thr) { ^ == imap4r1.c:5339:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"IMAP4")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5339:29: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"IMAP4")) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5341:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP4rev1")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5341:34: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP4rev1")) ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5343:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5343:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP2")) LOCAL->cap.rfc1176 = T; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5344:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP2bis")) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5344:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMAP2bis")) ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5346:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5346:34: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"ACL")) LOCAL->cap.acl = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5347:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5347:34: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"QUOTA")) LOCAL->cap.quota = T; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5348:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5348:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LITERAL+")) LOCAL->cap.litplus = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5349:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5349:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IDLE")) LOCAL->cap.idle = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5350:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5350:34: warning: passing 'char [18]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MAILBOX-REFERRALS")) LOCAL->cap.mbx_ref = T; ^~~~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5351:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5351:34: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGIN-REFERRALS")) LOCAL->cap.log_ref = T; ^~~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5352:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5352:34: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"NAMESPACE")) LOCAL->cap.namespace = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5353:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5353:34: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UIDPLUS")) LOCAL->cap.uidplus = T; ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5354:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5354:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"STARTTLS")) LOCAL->cap.starttls = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5355:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5355:34: warning: passing 'char [14]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGINDISABLED"))LOCAL->cap.logindisabled = T; ^~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5356:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5356:34: warning: passing 'char [3]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"ID")) LOCAL->cap.id = T; ^~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5357:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5357:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"CHILDREN")) LOCAL->cap.children = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5358:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5358:34: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"MULTIAPPEND")) LOCAL->cap.multiappend = T; ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5359:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5359:34: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"BINARY")) LOCAL->cap.binary = T; ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5360:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5360:34: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UNSELECT")) LOCAL->cap.unselect = T; ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5361:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5361:34: warning: passing 'char [8]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SASL-IR")) LOCAL->cap.sasl_ir = T; ^~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5362:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5362:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SCAN")) LOCAL->cap.scan = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5368:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (s = strchr (t,'=')) { ~~^~~~~~~~ imap4r1.c:5368:16: note: place parentheses around the assignment to silence this warning else if (s = strchr (t,'=')) { ^ ( ) imap4r1.c:5368:16: note: use '==' to turn this assignment into an equality comparison else if (s = strchr (t,'=')) { ^ == imap4r1.c:5370:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5370:31: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"THREAD") && !LOCAL->loser) { ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5377:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"AUTH")) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5377:36: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"AUTH")) { ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5380:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5380:31: warning: passing 'char [10]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; ^~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ imap4r1.c:5457:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { ~~^~~~~~~~~ imap4r1.c:5457:24: note: place parentheses around the assignment to silence this warning for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { ^ ( ) imap4r1.c:5457:24: note: use '==' to turn this assignment into an equality comparison for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { ^ == 694 warnings generated. `cat CCTYPE` -c `cat CFLAGS` pop3.c pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:803:29: note: expanded from macro 'strcmp' (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:32: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:873:55: note: expanded from macro '__strcmp_cg' (((__const unsigned char *) (__const char *) (s1))[0] \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:878:28: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[1] - __s2[1]); \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:882:25: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[2] - __s2[2]);\ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:885:27: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[3] \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:31: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:817:24: note: expanded from macro 'strcmp' : __strcmp_gc (s1, s2, __s2_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:893:53: note: expanded from macro '__strcmp_gc' (__const unsigned char *) (__const char *) (s1); \ ^~ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ./misc.h:78:38: note: passing argument to parameter 'string' here unsigned char *ucase (unsigned char *string); ^ pop3.c:176:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] !strcmp (ucase (strcpy (mbx,mb.mailbox)),"INBOX")) ? ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ pop3.c:229:36: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (pop3_valid (ref) && pmatch ("INBOX",pat)) : ~~~~~~~~^~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:229:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (pop3_valid (ref) && pmatch ("INBOX",pat)) : ~~~~~~~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:230:60: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) ~~~~~~~~^~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:230:68: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp))) ~~~~~~~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:245:37: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pop3_valid (ref) && pmatch ("INBOX",pat)) { ~~~~~~~~^~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:245:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pop3_valid (ref) && pmatch ("INBOX",pat)) { ~~~~~~~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:250:64: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { ~~~~~~~~^~~~~~~~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:250:72: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (mail_valid_net (pat,&pop3driver,NIL,tmp) && pmatch ("INBOX",tmp)) { ~~~~~~~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:276:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) ~~^~~~~~~~~~~~~~~~ pop3.c:276:9: note: place parentheses around the assignment to silence this warning if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) ^ ( ) pop3.c:276:9: note: use '==' to turn this assignment into an equality comparison if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) ^ == pop3.c:276:60: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) ~~~~~~~~^~~~~~ ./misc.h:74:16: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:276:62: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) ~~~~~~~~~~^~~~ ./misc.h:74:18: note: expanded from macro 'pmatch' pmatch_full (s,pat,NIL) ^ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ pop3.c:278:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = sm_read (&sdb)); /* until no more subscriptions */ ~~^~~~~~~~~~~~~~~~ pop3.c:278:12: note: place parentheses around the assignment to silence this warning while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ ( ) pop3.c:278:12: note: use '==' to turn this assignment into an equality comparison while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ == pop3.c:425:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); ~~~~~~~~~~~~~^~~~~~~~~~ pop3.c:425:24: note: place parentheses around the assignment to silence this warning if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); ^ ( ) pop3.c:425:24: note: use '==' to turn this assignment into an equality comparison if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); ^ == pop3.c:495:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (args = strchr (t,' ')) *args++ = '\0'; ~~~~~^~~~~~~~ pop3.c:495:14: note: place parentheses around the assignment to silence this warning if (args = strchr (t,' ')) *args++ = '\0'; ^ ( ) pop3.c:495:14: note: use '==' to turn this assignment into an equality comparison if (args = strchr (t,' ')) *args++ = '\0'; ^ == pop3.c:496:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:496:29: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (t,"STLS")) LOCAL->cap.stls = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:497:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:497:34: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"PIPELINING")) LOCAL->cap.pipelining = T; ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:498:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:498:34: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"RESP-CODES")) LOCAL->cap.respcodes = T; ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:499:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:499:34: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"TOP")) LOCAL->cap.top = T; ^~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:500:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:500:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"UIDL")) LOCAL->cap.uidl = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:501:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:501:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"USER")) LOCAL->cap.user = T; ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:502:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMPLEMENTATION") && args) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:502:34: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"IMPLEMENTATION") && args) ^~~~~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:504:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"EXPIRE") && args) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:504:34: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"EXPIRE") && args) { ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:506:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ~~^~~~~~~~ pop3.c:506:13: note: place parentheses around the assignment to silence this warning if (s = strchr(args,' ')){/* separate time from possible USER */ ^ ( ) pop3.c:506:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr(args,' ')){/* separate time from possible USER */ ^ == pop3.c:512:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!compare_cstring (args,"NEVER")) ? 65535 : ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:512:26: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] (!compare_cstring (args,"NEVER")) ? 65535 : ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:513:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:513:31: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((s && !compare_cstring (s,"USER")) ? -atoi (args) : atoi (args)); ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:515:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGIN-DELAY") && args) { ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:515:34: warning: passing 'char [12]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"LOGIN-DELAY") && args) { ^~~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:517:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ~~^~~~~~~~ pop3.c:517:13: note: place parentheses around the assignment to silence this warning if (s = strchr(args,' ')){/* separate time from possible USER */ ^ ( ) pop3.c:517:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr(args,' ')){/* separate time from possible USER */ ^ == pop3.c:523:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:523:56: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->cap.delaysecs = (s && !compare_cstring (s,"USER")) ? ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:526:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SASL") && args) ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:526:34: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!compare_cstring (t,"SASL") && args) ^~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ pop3.c:779:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ pop3.c:780:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ pop3.c:838:48: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ pop3.c:838:48: note: place parentheses around the assignment to silence this warning else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) ^ ( ) pop3.c:838:48: note: use '==' to turn this assignment into an equality comparison else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) ^ == 71 warnings generated. `cat CCTYPE` -c `cat CFLAGS` unix.c unix.c:204:2: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ unix.c:377:11: warning: data argument not used by format string [-Wformat-extra-args] old,newname); ^ unix.c:388:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (s,'/')) { ~~^~~~~~~~~~~~~~~~~ unix.c:388:8: note: place parentheses around the assignment to silence this warning if (s = strrchr (s,'/')) { ^ ( ) unix.c:388:8: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (s,'/')) { ^ == unix.c:438:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:438:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:450:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = CHUNK) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:494:5: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ unix.c:590:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:604:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:612:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] *length = mail_filter (LOCAL->buf,*length,unix_hlines,FT_NOT); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1612:34: note: passing argument to parameter 'text' here unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, ^ unix.c:613:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; /* return processed copy */ ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:662:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:674:12: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:690:13: warning: assigning to 'char *' from 'unsigned char [16384]' converts between pointers to integer types with different sign [-Wpointer-sign] d.chunk = tmp; /* initial buffer chunk */ ^ ~~~ unix.c:693:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (CHR (&bs)) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:804:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); ^ ~~~~~~~~~~ unix.c:836:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ unix.c:837:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) return NIL; ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ unix.c:841:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:841:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:852:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Invalid UNIX-format mailbox name: %.80s",mailbox); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:853:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:857:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Not a UNIX-format mailbox: %.80s",mailbox); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:858:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:866:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:867:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR);/* log the error */ ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:877:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ unix.c:884:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = unix_xstatus (stream,LOCAL->buf,elt,NIL); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:121:54: note: passing argument to parameter 'status' here unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ unix.c:885:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,j) < 0) ret = NIL; ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ unix.c:894:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:907:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!ret) MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:947:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:947:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:978:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ unix.c:1256:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1257:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:1266:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1268:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); /* this is pretty bad */ ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:1277:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1277:14: note: place parentheses around the assignment to silence this warning else if (i = sbuf.st_size - LOCAL->filesize) { ^ ( ) unix.c:1277:14: note: use '==' to turn this assignment into an equality comparison else if (i = sbuf.st_size - LOCAL->filesize) { ^ == unix.c:1280:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d.chunk = LOCAL->buf; /* initial buffer chunk */ ^ ~~~~~~~~~~ unix.c:1289:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = unix_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1293:11: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1295:10: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:1344:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Unable to parse internal date: %s",(char *) date); ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1345:12: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,WARN); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:1349:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = t = unix_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1092:24: note: expanded from macro 'strpbrk' ? __builtin_strpbrk (s, accept) \ ^ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1096:29: note: expanded from macro 'strpbrk' ? __builtin_strchr (s, __a0) \ ^ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1098:21: note: expanded from macro 'strpbrk' ? __strpbrk_c2 (s, __a0, __a1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1124:29: note: passing argument to parameter '__s' here __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) ^ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1100:24: note: expanded from macro 'strpbrk' ? __strpbrk_c3 (s, __a0, __a1, __a2) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1135:29: note: passing argument to parameter '__s' here __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, ^ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1101:29: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)))))) \ ^ unix.c:1366:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1102:28: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)); }) ^ unix.c:1366:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ^ ~~~~~~~~~~~~~~~~~~~ unix.c:1366:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ unix.c:1372:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_csizedtext (stream->user_flags[j],&uf)) { ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:99:40: note: passing argument to parameter 's1' here int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1092:24: note: expanded from macro 'strpbrk' ? __builtin_strpbrk (s, accept) \ ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1096:29: note: expanded from macro 'strpbrk' ? __builtin_strchr (s, __a0) \ ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1098:21: note: expanded from macro 'strpbrk' ? __strpbrk_c2 (s, __a0, __a1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1124:29: note: passing argument to parameter '__s' here __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1100:24: note: expanded from macro 'strpbrk' ? __strpbrk_c3 (s, __a0, __a1, __a2) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1135:29: note: passing argument to parameter '__s' here __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1101:29: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)))))) \ ^ unix.c:1420:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1102:28: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)); }) ^ unix.c:1420:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ^ ~~~~~~~~~~~~~~~~~~~ unix.c:1426:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy (stream->user_flags[j],s,k); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ unix.c:1454:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu already has UID %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1459:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu less than %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1464:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu greater than last %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1471:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,WARN); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:1527:34: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (tmp,"STATUS") || ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1528:27: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-STATUS") || ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1529:27: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-KEYWORDS") || ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1530:27: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-UID") || ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1531:27: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-IMAP") || ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1532:27: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-IMAPBASE")) { ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:1555:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ ~~~~~~~~~~~~~~~~~~~~ unix.c:1555:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (u = strpbrk (err,"\r\n")) *u = '\0'; ~~^~~~~~~~~ unix.c:1555:14: note: place parentheses around the assignment to silence this warning if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ ( ) unix.c:1555:14: note: use '==' to turn this assignment into an equality comparison if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ == unix.c:1580:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = unix_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1774:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ~~^~~~~~~~~~~~~~~~~~~~~~~ unix.c:1774:44: note: place parentheses around the assignment to silence this warning for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ^ ( ) unix.c:1774:44: note: use '==' to turn this assignment into an equality comparison for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ^ == unix.c:1795:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = elt->user_flags) do { ~~^~~~~~~~~~~~~~~~~ unix.c:1795:11: note: place parentheses around the assignment to silence this warning if (n = elt->user_flags) do { ^ ( ) unix.c:1795:11: note: use '==' to turn this assignment into an equality comparison if (n = elt->user_flags) do { ^ == unix.c:1837:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unsigned long size = LOCAL->pseudo ? unix_pseudo (stream,LOCAL->buf) : 0; ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1722:53: note: passing argument to parameter 'hdr' here unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) ^ unix.c:1844:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_xstatus (stream,LOCAL->buf,elt,flag) + ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1748:54: note: passing argument to parameter 'status' here unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ unix.c:1851:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] size = unix_pseudo (stream,LOCAL->buf); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1722:53: note: passing argument to parameter 'hdr' here unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) ^ unix.c:1854:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = unix_extend (stream,size)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1854:11: note: place parentheses around the assignment to silence this warning if (ret = unix_extend (stream,size)) { ^ ( ) unix.c:1854:11: note: use '==' to turn this assignment into an equality comparison if (ret = unix_extend (stream,size)) { ^ == unix.c:1871:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1722:53: note: passing argument to parameter 'hdr' here unsigned long unix_pseudo (MAILSTREAM *stream,char *hdr) ^ unix.c:1871:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_write (&f,LOCAL->buf,unix_pseudo (stream,LOCAL->buf)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:125:36: note: passing argument to parameter 's' here void unix_write (UNIXFILE *f,char *s,unsigned long i); ^ unix.c:1887:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_xstatus (stream,LOCAL->buf,elt,flag)))) { ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1748:54: note: passing argument to parameter 'status' here unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ unix.c:1901:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_write (&f,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:125:36: note: passing argument to parameter 's' here void unix_write (UNIXFILE *f,char *s,unsigned long i); ^ unix.c:1915:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = unix_xstatus (stream,LOCAL->buf,elt,flag)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:1748:54: note: passing argument to parameter 'status' here unsigned long unix_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ unix.c:1914:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unix_write (&f,LOCAL->buf, ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:125:36: note: passing argument to parameter 's' here void unix_write (UNIXFILE *f,char *s,unsigned long i); ^ unix.c:1997:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:1998:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:2019:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2024:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ unix.c:2030:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:2031:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:2053:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2053:11: note: place parentheses around the assignment to silence this warning if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ ( ) unix.c:2053:11: note: use '==' to turn this assignment into an equality comparison if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ == unix.c:2069:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = min (i,f->protect - f->filepos)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2069:11: note: place parentheses around the assignment to silence this warning if (j = min (i,f->protect - f->filepos)) { ^ ( ) unix.c:2069:11: note: use '==' to turn this assignment into an equality comparison if (j = min (i,f->protect - f->filepos)) { ^ == unix.c:2218:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:2218:30: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (name,"INBOX") && (unix_valid ("mbox") || !errno) && ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ unix.c:2354:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mail drop %s is not in standard Unix format", ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:2356:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:2368:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"New mail move failed: %s",strerror (errno)); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:2369:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,WARN); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:2375:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mail drop %s lock failure, old=%lu now=%lu", ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:2377:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ unix.c:2393:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Moved %lu bytes of new mail to %s from %s", ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ unix.c:2398:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] else MM_LOG (LOCAL->buf,WARN); ^~~~~~~~~~ unix.c:71:15: note: expanded from macro 'LOCAL' #define LOCAL ((UNIXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ 106 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mbx.c mbx.c:190:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((s = mbx_file (tmp,name)) && !stat (s,&sbuf) && ^ ~~~~~~~~~~~~~~~~~~~ mbx.c:190:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((s = mbx_file (tmp,name)) && !stat (s,&sbuf) && ^ /usr/include/x86_64-linux-gnu/sys/stat.h:455:28: note: passing argument to parameter '__path' here __NTH (stat (__const char *__path, struct stat *__statbuf)) ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:48:52: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__)) fct ^ mbx.c:209:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mbx.c:209:28: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); ^ ~~~~~~~~~~~~~~~~~ mbx.c:212:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen (s) <= MAXUSERFLAG) (*stream)->user_flags[i] = cpystr (s); ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:212:68: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen (s) <= MAXUSERFLAG) (*stream)->user_flags[i] = cpystr (s); ^ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ mbx.c:220:7: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (tmp,tp); /* set the times */ ^ mbx.c:224:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:224:56: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:366:11: warning: data argument not used by format string [-Wformat-extra-args] old,newname); ^ mbx.c:381:7: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ mbx.c:391:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (tmp,'/')) { ~~^~~~~~~~~~~~~~~~~~~ mbx.c:391:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (tmp,'/')) { ^ ( ) mbx.c:391:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (tmp,'/')) { ^ == mbx.c:417:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:417:36: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) mbx_create (NIL,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:498:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (MAXMESSAGESIZE + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:503:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:503:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:591:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mbx.c:592:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mbx.c:620:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:623:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (LOCAL->fd,s = LOCAL->buf,*length); ^ ~~~~~~~~~~ mbx.c:640:9: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *s = LOCAL->text.data; ^ ~~~~~~~~~~~~~~~~ mbx.c:671:23: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (LOCAL->fd,s = LOCAL->text.data,i); ^ ~~~~~~~~~~~~~~~~ mbx.c:746:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = mbx_parse (stream)) { ~~~~^~~~~~~~~~~~~~~~~~~~ mbx.c:746:10: note: place parentheses around the assignment to silence this warning if (ret = mbx_parse (stream)) { ^ ( ) mbx.c:746:10: note: use '==' to turn this assignment into an equality comparison if (ret = mbx_parse (stream)) { ^ == mbx.c:773:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",i); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:774:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:805:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (nexp = mbx_rewrite (stream,&reclaimed,T)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:805:17: note: place parentheses around the assignment to silence this warning else if (nexp = mbx_rewrite (stream,&reclaimed,T)) { ^ ( ) mbx.c:805:17: note: use '==' to turn this assignment into an equality comparison else if (nexp = mbx_rewrite (stream,&reclaimed,T)) { ^ == mbx.c:806:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunged %lu messages",nexp); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:807:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:810:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Reclaimed %lu bytes of expunged space",reclaimed); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:811:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:846:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = hdrlen + txtlen) { ~~^~~~~~~~~~~~~~~~~ mbx.c:846:8: note: place parentheses around the assignment to silence this warning if (j = hdrlen + txtlen) { ^ ( ) mbx.c:846:8: note: use '==' to turn this assignment into an equality comparison if (j = hdrlen + txtlen) { ^ == mbx.c:848:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1600:24: note: passing argument to parameter 'string' here char *mail_date (char *string,MESSAGECACHE *elt); ^ mbx.c:849:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:849:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:855:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:855:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:871:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:872:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:905:38: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mbx_isvalid (&dstream,mailbox,LOCAL->buf)) switch (errno) { ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:181:55: note: passing argument to parameter 'tmp' here int mbx_isvalid (MAILSTREAM **stream,char *name,char *tmp) ^ mbx.c:911:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Invalid MBX-format mailbox name: %.80s",mailbox); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:912:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:916:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Not a MBX-format mailbox: %.80s",mailbox); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:917:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:920:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mbx.c:921:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) return NIL; ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mbx.c:925:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:926:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:944:17: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_date(LOCAL->buf,elt);/* build target header */ ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1600:24: note: passing argument to parameter 'string' here char *mail_date (char *string,MESSAGECACHE *elt); ^ mbx.c:947:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = stream->user_flags[find_rightmost_bit (&j)]) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:947:8: note: place parentheses around the assignment to silence this warning if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ ( ) mbx.c:947:8: note: use '==' to turn this assignment into an equality comparison if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ == mbx.c:949:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,t) && (k |= 1 << m)) break; ^ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:949:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (s,t) && (k |= 1 << m)) break; ^ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:950:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-00000000\015\012", ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:950:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf+strlen(LOCAL->buf),",%lu;%08lx%04x-00000000\015\012", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:956:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:956:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:956:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:956:15: note: place parentheses around the assignment to silence this warning if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) ^ ( ) mbx.c:956:15: note: use '==' to turn this assignment into an equality comparison if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) ^ == mbx.c:959:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = write (fd,LOCAL->buf,j) >= 0; ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:964:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:965:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mbx.c:1014:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:1014:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mbx.c:1059:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ mbx.c:1156:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->uid_validity = strtoul (LOCAL->buf + 7,NIL,16); ^~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1159:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strtoul (LOCAL->buf + 15,NIL,16); ^~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1163:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); ~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mbx.c:1163:31: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] (i < NUSERFLAGS) && (t = strchr (s,'\015')) && (t - s); ^ ~~~~~~~~~~~~~~~~~ mbx.c:1166:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!stream->user_flags[i] && (strlen (s) <= MAXUSERFLAG)) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mbx.c:1167:39: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->user_flags[i] = cpystr (s); ^ ./misc.h:80:27: note: passing argument to parameter 'string' here char *cpystr (const char *string); ^ mbx.c:1177:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strtoul (LOCAL->buf + HDRSIZE - 8,NIL,16) : 0; ^~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1194:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mbx.c:1194:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1203:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mbx.c:1203:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1203:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mbx.c:1203:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~ mbx.c:1233:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(j = strtoul (s,(char **) &x,10)) && (!(x && *x))) { ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1251:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((m = strtoul (t+13,NIL,16)) && ^~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1267:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((k = strtoul (t+8,NIL,16)) & fEXPUNGED) { ^~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1301:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] elt->user_flags = strtoul (t,NIL,16); ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1383:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag read!", ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1385:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1392:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1393:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1397:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", ^~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1400:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf+50); ^~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1404:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strtoul (LOCAL->buf+9,NIL,16); ^~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1413:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] elt->user_flags = strtoul (LOCAL->buf+1,NIL,16); ^~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1429:9: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *s = LOCAL->buf; ^ ~~~~~~~~~~ mbx.c:1440:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + HDRSIZE - 10,"%08lx\015\012",LOCAL->lastpid); ^~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1444:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (LOCAL->fd,LOCAL->buf + CYGKLUDGEOFFSET, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:1467:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mailbox shrank from %lu to %lu in flag update!", ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1469:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1476:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to read old status: %s",strerror (errno)); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1477:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1481:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf+50,"Invalid flags for message %lu (%lu %lu): %s", ^~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1484:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf+50); ^~~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mbx.c:1489:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] fEXPUNGED : (strtoul (LOCAL->buf+9,NIL,16)) & fEXPUNGED) + ^~~~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mbx.c:1487:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%08lx%04x-%08lx",elt->user_flags,(unsigned) ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mbx.c:1497:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (LOCAL->fd,LOCAL->buf,21) > 0) break; ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:1526:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (*size = elt->private.msg.header.text.size) return ret; ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1526:13: note: place parentheses around the assignment to silence this warning if (*size = elt->private.msg.header.text.size) return ret; ^ ( ) mbx.c:1526:13: note: use '==' to turn this assignment into an equality comparison if (*size = elt->private.msg.header.text.size) return ret; ^ == mbx.c:1545:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (hdr) *hdr = LOCAL->buf; ^ ~~~~~~~~~~ mbx.c:1552:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (hdr) *hdr = LOCAL->buf; ^ ~~~~~~~~~~ mbx.c:1562:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (hdr) *hdr = LOCAL->buf; /* possibly return header too */ ^ ~~~~~~~~~~ mbx.c:1618:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1618:13: note: place parentheses around the assignment to silence this warning if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { ^ ( ) mbx.c:1618:13: note: use '==' to turn this assignment into an equality comparison if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { ^ == mbx.c:1643:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; ^~~~~~~~~~ mbx.c:72:15: note: expanded from macro 'LOCAL' #define LOCAL ((MBXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mbx.c:1658:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = (LOCAL->filesize -= delta) - pos) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1658:11: note: place parentheses around the assignment to silence this warning if (m = (LOCAL->filesize -= delta) - pos) { ^ ( ) mbx.c:1658:11: note: use '==' to turn this assignment into an equality comparison if (m = (LOCAL->filesize -= delta) - pos) { ^ == mbx.c:1681:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (elt = mbx_elt (stream,i,T)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~ mbx.c:1681:15: note: place parentheses around the assignment to silence this warning if (elt = mbx_elt (stream,i,T)) { ^ ( ) mbx.c:1681:15: note: use '==' to turn this assignment into an equality comparison if (elt = mbx_elt (stream,i,T)) { ^ == 108 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mmdf.c mmdf.c:372:2: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mmdf.c:533:11: warning: data argument not used by format string [-Wformat-extra-args] old,newname); ^ mmdf.c:544:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (s,'/')) { ~~^~~~~~~~~~~~~~~~~ mmdf.c:544:8: note: place parentheses around the assignment to silence this warning if (s = strrchr (s,'/')) { ^ ( ) mmdf.c:544:8: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (s,'/')) { ^ == mmdf.c:594:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:594:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:606:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = CHUNK) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:650:5: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ mmdf.c:746:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:760:23: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:768:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] *length = mail_filter (LOCAL->buf,*length,mmdf_hlines,FT_NOT); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1612:34: note: passing argument to parameter 'text' here unsigned long mail_filter (char *text,unsigned long len,STRINGLIST *lines, ^ mmdf.c:769:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; /* return processed copy */ ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:818:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:830:12: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:846:13: warning: assigning to 'char *' from 'unsigned char [16384]' converts between pointers to integer types with different sign [-Wpointer-sign] d.chunk = tmp; /* initial buffer chunk */ ^ ~~~ mmdf.c:849:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (s = (char *) LOCAL->text.data; SIZE (&bs);) switch (CHR (&bs)) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:961:27: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (i) sprintf (msg = LOCAL->buf,"Expunged %lu messages",i); ^ ~~~~~~~~~~ mmdf.c:994:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mmdf.c:995:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) return NIL; ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mmdf.c:999:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:999:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1010:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Invalid MMDF-format mailbox name: %.80s",mailbox); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1011:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1015:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Not a MMDF-format mailbox: %.80s",mailbox); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1016:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1024:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Can't open destination mailbox: %s",strerror (errno)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1025:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); /* log the error */ ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1035:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,elt->private.special.text.size) < 0) ret = NIL; ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mmdf.c:1042:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = mmdf_xstatus (stream,LOCAL->buf,elt,NIL); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:278:54: note: passing argument to parameter 'status' here unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ mmdf.c:1043:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,j) < 0) ret = NIL; ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mmdf.c:1053:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Message copy failed: %s",strerror (errno)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1066:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!ret) MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1106:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1106:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1137:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ mmdf.c:1410:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Mailbox open failed, aborted: %s",strerror (errno)); ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1411:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1420:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Mailbox shrank from %lu to %lu bytes, aborted", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1422:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); /* this is pretty bad */ ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1431:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1431:14: note: place parentheses around the assignment to silence this warning else if (i = sbuf.st_size - LOCAL->filesize) { ^ ( ) mmdf.c:1431:14: note: use '==' to turn this assignment into an equality comparison else if (i = sbuf.st_size - LOCAL->filesize) { ^ == mmdf.c:1434:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] d.chunk = LOCAL->buf; /* initial buffer chunk */ ^ ~~~~~~~~~~ mmdf.c:1443:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1447:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Unexpected changes to mailbox (try restarting): %.20s", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1453:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1458:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,ERROR); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1475:4: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1511:15: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Unable to parse internal date: %s",(char *) date); ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1512:14: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,WARN); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1528:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (t) s = t = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1092:24: note: expanded from macro 'strpbrk' ? __builtin_strpbrk (s, accept) \ ^ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1096:29: note: expanded from macro 'strpbrk' ? __builtin_strchr (s, __a0) \ ^ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1098:21: note: expanded from macro 'strpbrk' ? __strpbrk_c2 (s, __a0, __a1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1124:29: note: passing argument to parameter '__s' here __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) ^ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1100:24: note: expanded from macro 'strpbrk' ? __strpbrk_c3 (s, __a0, __a1, __a2) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1135:29: note: passing argument to parameter '__s' here __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, ^ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1101:29: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)))))) \ ^ mmdf.c:1549:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1102:28: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)); }) ^ mmdf.c:1549:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ^ ~~~~~~~~~~~~~~~~~~~ mmdf.c:1549:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(u = strpbrk (s," \n\r"))) u = s + strlen (s); ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mmdf.c:1555:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_csizedtext (stream->user_flags[j],&uf)) { ^~~~~~~~~~~~~~~~~~~~~ ./misc.h:99:40: note: passing argument to parameter 's1' here int compare_csizedtext (unsigned char *s1,SIZEDTEXT *s2); ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1092:24: note: expanded from macro 'strpbrk' ? __builtin_strpbrk (s, accept) \ ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1096:29: note: expanded from macro 'strpbrk' ? __builtin_strchr (s, __a0) \ ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1098:21: note: expanded from macro 'strpbrk' ? __strpbrk_c2 (s, __a0, __a1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1124:29: note: passing argument to parameter '__s' here __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1100:24: note: expanded from macro 'strpbrk' ? __strpbrk_c3 (s, __a0, __a1, __a2) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:1135:29: note: passing argument to parameter '__s' here __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1101:29: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)))))) \ ^ mmdf.c:1603:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ~~~~~~~~~^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:1102:28: note: expanded from macro 'strpbrk' : __builtin_strpbrk (s, accept)); }) ^ mmdf.c:1603:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u = strpbrk (s," \n\r"); ^ ~~~~~~~~~~~~~~~~~~~ mmdf.c:1609:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy (stream->user_flags[j],s,k); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:58: note: expanded from macro 'strncpy' # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ mmdf.c:1637:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu already has UID %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1642:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu less than %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1647:16: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (tmp,"Message %lu UID %lu greater than last %lu", ^~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:1654:13: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (tmp,WARN); ^~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:1710:34: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (tmp,"STATUS") || ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1711:27: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-STATUS") || ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1712:27: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-KEYWORDS") || ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1713:27: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-UID") || ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1714:27: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-IMAP") || ^~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1715:27: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] !compare_cstring (tmp,"X-IMAPBASE")) { ^~~~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mmdf.c:1738:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ ~~~~~~~~~~~~~~~~~~~~ mmdf.c:1738:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (u = strpbrk (err,"\r\n")) *u = '\0'; ~~^~~~~~~~~ mmdf.c:1738:14: note: place parentheses around the assignment to silence this warning if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ ( ) mmdf.c:1738:14: note: use '==' to turn this assignment into an equality comparison if (u = strpbrk (err,"\r\n")) *u = '\0'; ^ == mmdf.c:1762:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1777:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = mmdf_mbxline (stream,&bs,&i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1962:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ~~^~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1962:44: note: place parentheses around the assignment to silence this warning for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ^ ( ) mmdf.c:1962:44: note: use '==' to turn this assignment into an equality comparison for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) ^ == mmdf.c:1983:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = elt->user_flags) do { ~~^~~~~~~~~~~~~~~~~ mmdf.c:1983:11: note: place parentheses around the assignment to silence this warning if (n = elt->user_flags) do { ^ ( ) mmdf.c:1983:11: note: use '==' to turn this assignment into an equality comparison if (n = elt->user_flags) do { ^ == mmdf.c:2025:60: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unsigned long size = LOCAL->pseudo ? mmdf_pseudo (stream,LOCAL->buf) : 0; ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1910:53: note: passing argument to parameter 'hdr' here unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) ^ mmdf.c:2032:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_xstatus (stream,LOCAL->buf,elt,flag) + ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1936:54: note: passing argument to parameter 'status' here unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ mmdf.c:2039:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] size = mmdf_pseudo (stream,LOCAL->buf); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1910:53: note: passing argument to parameter 'hdr' here unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) ^ mmdf.c:2042:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret = mmdf_extend (stream,size)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2042:11: note: place parentheses around the assignment to silence this warning if (ret = mmdf_extend (stream,size)) { ^ ( ) mmdf.c:2042:11: note: use '==' to turn this assignment into an equality comparison if (ret = mmdf_extend (stream,size)) { ^ == mmdf.c:2059:53: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1910:53: note: passing argument to parameter 'hdr' here unsigned long mmdf_pseudo (MAILSTREAM *stream,char *hdr) ^ mmdf.c:2059:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_write (&f,LOCAL->buf,mmdf_pseudo (stream,LOCAL->buf)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:282:36: note: passing argument to parameter 's' here void mmdf_write (MMDFFILE *f,char *s,unsigned long i); ^ mmdf.c:2075:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_xstatus (stream,LOCAL->buf,elt,flag)))) { ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1936:54: note: passing argument to parameter 'status' here unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ mmdf.c:2089:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_write (&f,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:282:36: note: passing argument to parameter 's' here void mmdf_write (MMDFFILE *f,char *s,unsigned long i); ^ mmdf.c:2103:34: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = mmdf_xstatus (stream,LOCAL->buf,elt,flag)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1936:54: note: passing argument to parameter 'status' here unsigned long mmdf_xstatus (MAILSTREAM *stream,char *status,MESSAGECACHE *elt, ^ mmdf.c:2102:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mmdf_write (&f,LOCAL->buf, ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:282:36: note: passing argument to parameter 's' here void mmdf_write (MMDFFILE *f,char *s,unsigned long i); ^ mmdf.c:2168:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Mailbox open failed, aborted: %s",strerror (errno)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:2169:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:2190:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = i) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2195:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,i) >= 0) && !fsync (LOCAL->fd)) break; ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mmdf.c:2201:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to extend mailbox: %s",strerror (e)); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mmdf.c:2202:33: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!stream->silent) MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mmdf.c:227:15: note: expanded from macro 'LOCAL' #define LOCAL ((MMDFLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mmdf.c:2224:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2224:11: note: place parentheses around the assignment to silence this warning if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ ( ) mmdf.c:2224:11: note: use '==' to turn this assignment into an equality comparison if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ == mmdf.c:2240:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = min (i,f->protect - f->filepos)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2240:11: note: place parentheses around the assignment to silence this warning if (j = min (i,f->protect - f->filepos)) { ^ ( ) mmdf.c:2240:11: note: use '==' to turn this assignment into an equality comparison if (j = min (i,f->protect - f->filepos)) { ^ == 99 warnings generated. `cat CCTYPE` -c `cat CFLAGS` tenex.c tenex.c:198:2: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ tenex.c:203:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:203:56: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:291:11: warning: data argument not used by format string [-Wformat-extra-args] old,newname); ^ tenex.c:306:7: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ tenex.c:315:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ~~^~~~~~~~~~~~~~~~~~~ tenex.c:315:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ^ ( ) tenex.c:315:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ^ == tenex.c:341:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:341:36: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"mail.txt"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:418:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (MAXMESSAGESIZE + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:424:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:424:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:491:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:492:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:502:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (LOCAL->buflen + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:529:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:530:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:555:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:565:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] *length = strcrlfcpy (&LOCAL->buf,&LOCAL->buflen,s,i); ^ ./nl.h:25:21: note: passing argument to parameter 'src' here unsigned char *src,unsigned long srcl); ^ tenex.c:568:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:600:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (LOCAL->buflen = i + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:623:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcrlfcpy (&LOCAL->text.data,&LOCAL->text.size,s,i); ^ ./nl.h:25:21: note: passing argument to parameter 'src' here unsigned char *src,unsigned long srcl); ^ tenex.c:763:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = hdrlen + txtlen) { ~~^~~~~~~~~~~~~~~~~ tenex.c:763:8: note: place parentheses around the assignment to silence this warning if (j = hdrlen + txtlen) { ^ ( ) tenex.c:763:8: note: use '==' to turn this assignment into an equality comparison if (j = hdrlen + txtlen) { ^ == tenex.c:765:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1600:24: note: passing argument to parameter 'string' here char *mail_date (char *string,MESSAGECACHE *elt); ^ tenex.c:766:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ tenex.c:766:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:772:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ tenex.c:772:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ tenex.c:788:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:789:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:879:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ tenex.c:894:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Calculated size mismatch %lu != %lu, delta = %lu", ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:896:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,WARN); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:900:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunged %lu messages",n); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:902:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:940:31: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!tenex_isvalid (mailbox,LOCAL->buf)) switch (errno) { ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:168:37: note: passing argument to parameter 'tmp' here int tenex_isvalid (char *name,char *tmp) ^ tenex.c:948:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Invalid Tenex-format mailbox name: %.80s",mailbox); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:949:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:953:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Not a Tenex-format mailbox: %.80s",mailbox); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:954:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:957:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:958:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) return NIL; ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ tenex.c:961:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:962:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:984:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,j) < 0) ret = NIL; ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ tenex.c:989:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:990:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ tenex.c:1045:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:1045:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"mail.txt"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ tenex.c:1091:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ tenex.c:1210:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(s = strchr (LOCAL->buf,'\012'))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ tenex.c:1210:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!(s = strchr (LOCAL->buf,'\012'))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1219:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ tenex.c:1219:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1219:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ tenex.c:1219:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~ tenex.c:1242:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (elt->private.msg.full.text.size = strtoul (s,(char **) &s,10)) && ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ tenex.c:1266:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strtoul (t,NIL,8); /* get user flags value */ ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ tenex.c:1344:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:1345:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ tenex.c:1353:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ tenex.c:1379:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ tenex.c:1387:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] write (LOCAL->fd,LOCAL->buf,12); ^~~~~~~~~~ tenex.c:62:15: note: expanded from macro 'LOCAL' #define LOCAL ((TENEXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ tenex.c:1422:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); ^ ~~~~~~~~~~ 63 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mtx.c mtx.c:192:2: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mtx.c:197:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:197:56: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if ((errno == ENOENT) && !compare_cstring (name,"INBOX")) errno = -1; ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:285:11: warning: data argument not used by format string [-Wformat-extra-args] old,newname); ^ mtx.c:300:7: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ mtx.c:309:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ~~^~~~~~~~~~~~~~~~~~~ mtx.c:309:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ^ ( ) mtx.c:309:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ ^ == mtx.c:335:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:335:36: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (ret && !compare_cstring (old,"INBOX")) dummy_create (NIL,"INBOX.MTX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:413:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get (MAXMESSAGESIZE + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:418:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:418:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:482:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mtx.c:483:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mtx.c:506:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = *length) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:511:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:690:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = hdrlen + txtlen) { ~~^~~~~~~~~~~~~~~~~ mtx.c:690:8: note: place parentheses around the assignment to silence this warning if (j = hdrlen + txtlen) { ^ ( ) mtx.c:690:8: note: use '==' to turn this assignment into an equality comparison if (j = hdrlen + txtlen) { ^ == mtx.c:692:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_date (LOCAL->buf,elt = mail_elt (sysibx,i)); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1600:24: note: passing argument to parameter 'string' here char *mail_date (char *string,MESSAGECACHE *elt); ^ mtx.c:693:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mtx.c:693:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf + strlen (LOCAL->buf), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:699:45: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ mtx.c:699:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((write (LOCAL->fd,LOCAL->buf,strlen (LOCAL->buf)) < 0) || ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mtx.c:715:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Can't copy new mail: %s",strerror (errno)); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:716:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:805:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (LOCAL->fd,LOCAL->buf,m) > 0) break; ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mtx.c:820:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Calculated size mismatch %lu != %lu, delta = %lu", ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:822:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,WARN); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:826:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunged %lu messages",n); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:828:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:866:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mtx_isvalid (mailbox,LOCAL->buf)) switch (errno) { ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:162:35: note: passing argument to parameter 'tmp' here int mtx_isvalid (char *name,char *tmp) ^ mtx.c:874:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Invalid MTX-format mailbox name: %.80s",mailbox); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:875:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:879:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Not a MTX-format mailbox: %.80s",mailbox); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:880:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:883:56: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mtx.c:884:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) return NIL; ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mtx.c:887:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to open copy mailbox: %s",strerror (errno)); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:888:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:910:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write (fd,LOCAL->buf,j) < 0) ret = NIL; ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ mtx.c:915:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to write message: %s",strerror (errno)); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:916:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,ERROR); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mtx.c:971:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:971:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) dummy_create (NIL,"INBOX.MTX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mtx.c:1017:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ mtx.c:1114:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mtx.c:1114:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,'\015')) && (s[1] == '\012'))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:1123:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mtx.c:1123:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:1123:57: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:400:25: note: expanded from macro 'strchr' : __builtin_strchr (s, c))) ^ mtx.c:1123:47: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!((s = strchr (LOCAL->buf,',')) && (t = strchr (s+1,';')))) { ^ ~~~~~~~~~~~~~~~~ mtx.c:1146:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] (elt->rfc822_size = strtoul (s,(char **) &s,10)) && (!(s && *s)) && ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mtx.c:1170:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strtoul (t,NIL,8); /* get user flags value */ ^ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mtx.c:1248:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Unable to read new status: %s",strerror (errno)); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:1249:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] fatal (LOCAL->buf); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ftl.h:24:19: note: passing argument to parameter 'string' here void fatal (char *string); ^ mtx.c:1257:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strtoul(LOCAL->buf,NIL,8);/* get user flags value */ ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdlib.h:188:60: note: passing argument to parameter '__nptr' here extern unsigned long int strtoul (__const char *__restrict __nptr, ^ mtx.c:1283:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%010lo%02o",k,(unsigned) ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mtx.c:1291:22: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] write (LOCAL->fd,LOCAL->buf,12); ^~~~~~~~~~ mtx.c:59:15: note: expanded from macro 'LOCAL' #define LOCAL ((MTXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./env_unix.h:91:31: note: passing argument to parameter 'buf' here long safe_write (int fd,char *buf,long nbytes); ^ 56 warnings generated. `cat CCTYPE` -c `cat CFLAGS` news.c news.c:203:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (pattern,'.')) *++s = '\0'; ~~^~~~~~~~ news.c:203:13: note: place parentheses around the assignment to silence this warning if (s = strchr (pattern,'.')) *++s = '\0'; ^ ( ) news.c:203:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (pattern,'.')) *++s = '\0'; ^ == news.c:219:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ~~^~~~~~~~~~~~~~~~~ news.c:219:11: note: place parentheses around the assignment to silence this warning if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ^ ( ) news.c:219:11: note: use '==' to turn this assignment into an equality comparison if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ^ == news.c:219:39: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ~~^~~~~~~~ news.c:219:39: note: place parentheses around the assignment to silence this warning if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ^ ( ) news.c:219:39: note: use '==' to turn this assignment into an equality comparison if (t = strtok (s,"\n")) do if (u = strchr (t,' ')) { ^ == news.c:222:24: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ news.c:222:29: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) mm_list (stream,'.',name,NIL); ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ news.c:225:19: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ news.c:225:24: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pattern,'.')) ^~~~~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ news.c:228:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (t = strtok (NIL,"\n")); ~~^~~~~~~~~~~~~~~~~~~ news.c:228:16: note: place parentheses around the assignment to silence this warning } while (t = strtok (NIL,"\n")); ^ ( ) news.c:228:16: note: use '==' to turn this assignment into an equality comparison } while (t = strtok (NIL,"\n")); ^ == news.c:345:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = strchr (s,'.')) *s = '/'; ~~^~~~~~~~ news.c:345:12: note: place parentheses around the assignment to silence this warning while (s = strchr (s,'.')) *s = '/'; ^ ( ) news.c:345:12: note: use '==' to turn this assignment into an equality comparison while (s = strchr (s,'.')) *s = '/'; ^ == news.c:347:36: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ /usr/include/dirent.h:254:13: note: passing argument to parameter '__selector' here int (*__selector) (__const struct dirent *), ^ news.c:347:48: warning: incompatible pointer types passing 'int (const void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ /usr/include/dirent.h:255:13: note: passing argument to parameter '__cmp' here int (*__cmp) (__const struct dirent **, ^ news.c:353:16: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = MAXMESSAGESIZE) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c:388:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) if (!isdigit (c)) return NIL; ~~^~~~~~ news.c:388:12: note: place parentheses around the assignment to silence this warning while (c = *s++) if (!isdigit (c)) return NIL; ^ ( ) news.c:388:12: note: use '==' to turn this assignment into an equality comparison while (c = *s++) if (!isdigit (c)) return NIL; ^ == news.c:436:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ news.c:437:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ news.c:453:33: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ news.c:453:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ news.c:485:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ news.c:47:15: note: expanded from macro 'LOCAL' #define LOCAL ((NEWSLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ news.c:486:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((fd = open (LOCAL->buf,O_RDONLY,NIL)) < 0) return ""; ^~~~~~~~~~ news.c:47:15: note: expanded from macro 'LOCAL' #define LOCAL ((NEWSLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/fcntl.h:119:32: note: passing argument to parameter '__file' here extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); ^ news.c:498:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20 warnings generated. `cat CCTYPE` -c `cat CFLAGS` phile.c phile.c:284:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; ~~^~~~~~~~~~~~~~~~ phile.c:284:9: note: place parentheses around the assignment to silence this warning if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; ^ ( ) phile.c:284:9: note: use '==' to turn this assignment into an equality comparison if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; ^ == phile.c:297:20: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->env->date = cpystr (tmp); ^ ~~~~~~~~~~~~ phile.c:301:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); ~~~^~~~~~~~~~~~~~~~~~~~~~~~ phile.c:301:10: note: place parentheses around the assignment to silence this warning if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); ^ ( ) phile.c:301:10: note: use '==' to turn this assignment into an equality comparison if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); ^ == phile.c:313:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = phile_type (buf->data,buf->size,&j)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ phile.c:313:9: note: place parentheses around the assignment to silence this warning if (i = phile_type (buf->data,buf->size,&j)) { ^ ( ) phile.c:313:9: note: use '==' to turn this assignment into an equality comparison if (i = phile_type (buf->data,buf->size,&j)) { ^ == phile.c:319:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf->size = strcrlfcpy (&buf->data,&m,s,buf->size); ^ ./nl.h:25:21: note: passing argument to parameter 'src' here unsigned char *src,unsigned long srcl); ^ 5 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mh.c mh.c:161:45: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((name[3] != '/') && compare_cstring (name+3,"INBOX"))) { ^~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:161:52: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((name[3] != '/') && compare_cstring (name+3,"INBOX"))) { ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:185:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (v = strpbrk (s," \t")) { ~~^~~~~~~~~ mh.c:185:13: note: place parentheses around the assignment to silence this warning if (v = strpbrk (s," \t")) { ^ ( ) mh.c:185:13: note: use '==' to turn this assignment into an equality comparison if (v = strpbrk (s," \t")) { ^ == mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:803:29: note: expanded from macro 'strcmp' (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:40: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:805:25: note: expanded from macro 'strcmp' (!__string2_1bptr_p (s1) || __s1_len >= 4) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:27: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:32: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:808:58: note: expanded from macro 'strcmp' : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:809:36: note: expanded from macro 'strcmp' && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:26: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:873:55: note: expanded from macro '__strcmp_cg' (((__const unsigned char *) (__const char *) (s1))[0] \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:878:28: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[1] - __s2[1]); \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:882:25: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[2] - __s2[2]);\ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:812:21: note: expanded from macro 'strcmp' : __strcmp_cg (s1, s2, __s1_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:885:27: note: expanded from macro '__strcmp_cg' (__const char *) (s1))[3] \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:31: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:28: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:815:57: note: expanded from macro 'strcmp' ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:94:63: note: expanded from macro '__string2_1bptr_p' ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) ^~~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:29: note: expanded from macro 'strcmp' ? __builtin_strcmp (s1, s2) \ ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:817:24: note: expanded from macro 'strcmp' : __strcmp_gc (s1, s2, __s2_len)) \ ^ /usr/include/x86_64-linux-gnu/bits/string2.h:893:53: note: expanded from macro '__strcmp_gc' (__const unsigned char *) (__const char *) (s1); \ ^~ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ ./misc.h:79:38: note: passing argument to parameter 'string' here unsigned char *lcase (unsigned char *string); ^ mh.c:187:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcmp (lcase (s),"path:")) { ~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:26: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^ mh.c:264:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ~~^~~~~~~~ mh.c:264:13: note: place parentheses around the assignment to silence this warning if (s = strchr (test,'/')) *++s = '\0'; ^ ( ) mh.c:264:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (test,'/')) *++s = '\0'; ^ == mh.c:273:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (test,"%*")) { ~~^~~~~~~~~ mh.c:273:13: note: place parentheses around the assignment to silence this warning if (s = strpbrk (test,"%*")) { ^ ( ) mh.c:273:13: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (test,"%*")) { ^ == mh.c:280:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (file,'/')) { ~~^~~~~~~~~~~~~~~~~~~~ mh.c:280:13: note: place parentheses around the assignment to silence this warning if (s = strrchr (file,'/')) { ^ ( ) mh.c:280:13: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (file,'/')) { ^ == mh.c:288:27: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (test,"#MHINBOX")) ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:288:32: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (test,"#MHINBOX")) ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:305:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); ^ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:305:27: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] do if (pmatch_full (s,test,'/')) mm_lsub (stream,'/',s,NIL); ^~~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:306:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = sm_read (&sdb)); /* until no more subscriptions */ ~~^~~~~~~~~~~~~~~~ mh.c:306:14: note: place parentheses around the assignment to silence this warning while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ ( ) mh.c:306:14: note: use '==' to turn this assignment into an equality comparison while (s = sm_read (&sdb)); /* until no more subscriptions */ ^ == mh.c:330:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = opendir (curdir)) { /* open directory */ ~~~^~~~~~~~~~~~~~~~~~ mh.c:330:10: note: place parentheses around the assignment to silence this warning if (dp = opendir (curdir)) { /* open directory */ ^ ( ) mh.c:330:10: note: use '==' to turn this assignment into an equality comparison if (dp = opendir (curdir)) { /* open directory */ ^ == mh.c:331:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir (dp)) /* scan, ignore . and numeric names */ ~~^~~~~~~~~~~~~~ mh.c:331:14: note: place parentheses around the assignment to silence this warning while (d = readdir (dp)) /* scan, ignore . and numeric names */ ^ ( ) mh.c:331:14: note: use '==' to turn this assignment into an equality comparison while (d = readdir (dp)) /* scan, ignore . and numeric names */ ^ == mh.c:337:21: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); ^~~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:337:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (pmatch_full (name,pat,'/')) mm_list (stream,'/',name,NIL); ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:339:16: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (name,pat,'/') && ^~~~ ./env.h:24:29: note: passing argument to parameter 's' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:339:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (name,pat,'/') && ^~~ ./env.h:24:46: note: passing argument to parameter 'pat' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mh.c:390:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (s = strchr (s+1,'/')) s++; ~~^~~~~~~~ mh.c:390:18: note: place parentheses around the assignment to silence this warning else if (s = strchr (s+1,'/')) s++; ^ ( ) mh.c:390:18: note: use '==' to turn this assignment into an equality comparison else if (s = strchr (s+1,'/')) s++; ^ == mh.c:439:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ~~~~~^~~~~~~~~~~~~~~ mh.c:439:12: note: place parentheses around the assignment to silence this warning if (dirp = opendir (tmp)) { /* open directory */ ^ ( ) mh.c:439:12: note: use '==' to turn this assignment into an equality comparison if (dirp = opendir (tmp)) { /* open directory */ ^ == mh.c:441:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir (dirp)) /* massacre all numeric or comma files */ ~~^~~~~~~~~~~~~~~~ mh.c:441:14: note: place parentheses around the assignment to silence this warning while (d = readdir (dirp)) /* massacre all numeric or comma files */ ^ ( ) mh.c:441:14: note: use '==' to turn this assignment into an equality comparison while (d = readdir (dirp)) /* massacre all numeric or comma files */ ^ == mh.c:484:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (mh_file (tmp1,newname),'/')) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:484:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (mh_file (tmp1,newname),'/')) { ^ ( ) mh.c:484:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (mh_file (tmp1,newname),'/')) { ^ == mh.c:513:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"#MHINBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:513:53: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"#MHINBOX"); ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:517:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = MAXMESSAGESIZE) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:562:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mh.c:563:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mh.c:595:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:596:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((fd = open (LOCAL->buf,O_RDONLY,NIL)) < 0) return ""; ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/fcntl.h:119:32: note: passing argument to parameter '__file' here extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); ^ mh.c:608:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:688:46: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~ /usr/include/dirent.h:254:13: note: passing argument to parameter '__selector' here int (*__selector) (__const struct dirent *), ^ mh.c:688:56: warning: incompatible pointer types passing 'int (const void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~~ /usr/include/dirent.h:255:13: note: passing argument to parameter '__cmp' here int (*__cmp) (__const struct dirent **, ^ mh.c:717:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = (void *) names) free ((void *) s); ~~^~~~~~~~~~~~~~~~ mh.c:717:11: note: place parentheses around the assignment to silence this warning if (s = (void *) names) free ((void *) s); ^ ( ) mh.c:717:11: note: use '==' to turn this assignment into an equality comparison if (s = (void *) names) free ((void *) s); ^ == mh.c:730:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,++old); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:733:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/fcntl.h:119:32: note: passing argument to parameter '__file' here extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); ^ mh.c:755:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mh_setdate (LOCAL->buf,elt); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:82:24: note: passing argument to parameter 'file' here void mh_setdate (char *file,MESSAGECACHE *elt); ^ mh.c:762:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] unlink (LOCAL->buf);/* flush this file */ ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/unistd.h:845:34: note: passing argument to parameter '__name' here extern int unlink (__const char *__name) __THROW __nonnull ((1)); ^ mh.c:812:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:813:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (unlink (LOCAL->buf)) {/* try to delete the message */ ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/unistd.h:845:34: note: passing argument to parameter '__name' here extern int unlink (__const char *__name) __THROW __nonnull ((1)); ^ mh.c:814:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:816:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mh.c:832:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunged %lu messages",n); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:833:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mm_log (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mh.c:859:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mh.c:860:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mh.c:863:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mh.c:864:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((fd = open (LOCAL->buf,O_RDONLY,NIL)) < 0) return NIL; ^~~~~~~~~~ mh.c:48:15: note: expanded from macro 'LOCAL' #define LOCAL ((MHLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/fcntl.h:119:32: note: passing argument to parameter '__file' here extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); ^ mh.c:877:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:923:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"#mhinbox")) mh_create (NIL,"INBOX"); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:923:35: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"#mhinbox")) mh_create (NIL,"INBOX"); ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:944:37: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~ /usr/include/dirent.h:254:13: note: passing argument to parameter '__selector' here int (*__selector) (__const struct dirent *), ^ mh.c:944:47: warning: incompatible pointer types passing 'int (const void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~~ /usr/include/dirent.h:255:13: note: passing argument to parameter '__cmp' here int (*__cmp) (__const struct dirent **, ^ mh.c:951:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = (void *) names) free ((void*)s); ~~^~~~~~~~~~~~~~~~ mh.c:951:9: note: place parentheses around the assignment to silence this warning if (s = (void *) names) free ((void*)s); ^ ( ) mh.c:951:9: note: use '==' to turn this assignment into an equality comparison if (s = (void *) names) free ((void*)s); ^ == mh.c:962:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&elt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ mh.c:1011:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) if (!isdigit (c)) return NIL; ~~^~~~~~ mh.c:1011:12: note: place parentheses around the assignment to silence this warning while (c = *s++) if (!isdigit (c)) return NIL; ^ ( ) mh.c:1011:12: note: use '==' to turn this assignment into an equality comparison while (c = *s++) if (!isdigit (c)) return NIL; ^ == mh.c:1040:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (name,"#MHINBOX") ? name + 4 : "inbox"); ^~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:1040:27: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] compare_cstring (name,"#MHINBOX") ? name + 4 : "inbox"); ^~~~~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mh.c:1080:3: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ 83 warnings generated. `cat CCTYPE` -c `cat CFLAGS` mx.c mx.c:202:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strpbrk (test,"%*")) { ~~^~~~~~~~~ mx.c:202:11: note: place parentheses around the assignment to silence this warning if (s = strpbrk (test,"%*")) { ^ ( ) mx.c:202:11: note: use '==' to turn this assignment into an equality comparison if (s = strpbrk (test,"%*")) { ^ == mx.c:209:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (file,'/')) { ~~^~~~~~~~~~~~~~~~~~~~ mx.c:209:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (file,'/')) { ^ ( ) mx.c:209:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (file,'/')) { ^ == mx.c:251:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = opendir (curdir)) { /* open directory */ ~~~^~~~~~~~~~~~~~~~~~ mx.c:251:10: note: place parentheses around the assignment to silence this warning if (dp = opendir (curdir)) { /* open directory */ ^ ( ) mx.c:251:10: note: use '==' to turn this assignment into an equality comparison if (dp = opendir (curdir)) { /* open directory */ ^ == mx.c:254:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir (dp)) { /* scan, ignore . and numeric names */ ~~^~~~~~~~~~~~~~ mx.c:254:14: note: place parentheses around the assignment to silence this warning while (d = readdir (dp)) { /* scan, ignore . and numeric names */ ^ ( ) mx.c:254:14: note: use '==' to turn this assignment into an equality comparison while (d = readdir (dp)) { /* scan, ignore . and numeric names */ ^ == mx.c:259:16: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (name,pat,'/') && !stat (curdir,&sbuf) && ^~~~ ./env.h:24:29: note: passing argument to parameter 's' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mx.c:259:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dmatch (name,pat,'/') && !stat (curdir,&sbuf) && ^~~ ./env.h:24:46: note: passing argument to parameter 'pat' here long dmatch (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mx.c:264:66: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (d->d_name,MXINDEXNAME+1) && pmatch_full (dir,pat,'/')) ^~~ ./env.h:23:34: note: passing argument to parameter 's' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mx.c:264:70: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (!strcmp (d->d_name,MXINDEXNAME+1) && pmatch_full (dir,pat,'/')) ^~~ ./env.h:23:51: note: passing argument to parameter 'pat' here long pmatch_full (unsigned char *s,unsigned char *pat,unsigned char delim); ^ mx.c:312:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (s = strchr (s+1,'/')) s++; ~~^~~~~~~~ mx.c:312:16: note: place parentheses around the assignment to silence this warning else if (s = strchr (s+1,'/')) s++; ^ ( ) mx.c:312:16: note: use '==' to turn this assignment into an equality comparison else if (s = strchr (s+1,'/')) s++; ^ == mx.c:363:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ~~~~~^~~~~~~~~~~~~~~ mx.c:363:14: note: place parentheses around the assignment to silence this warning if (dirp = opendir (tmp)) { /* open directory */ ^ ( ) mx.c:363:14: note: use '==' to turn this assignment into an equality comparison if (dirp = opendir (tmp)) { /* open directory */ ^ == mx.c:366:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir (dirp)) if (mx_select (d)) { ~~^~~~~~~~~~~~~~~~ mx.c:366:16: note: place parentheses around the assignment to silence this warning while (d = readdir (dirp)) if (mx_select (d)) { ^ ( ) mx.c:366:16: note: use '==' to turn this assignment into an equality comparison while (d = readdir (dirp)) if (mx_select (d)) { ^ == mx.c:402:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strrchr (mx_file (tmp1,newname),'/')) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:402:11: note: place parentheses around the assignment to silence this warning if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ ( ) mx.c:402:11: note: use '==' to turn this assignment into an equality comparison if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ == mx.c:413:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (old,"INBOX")) mx_create (NIL,"INBOX"); ^~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:413:33: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (old,"INBOX")) mx_create (NIL,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:436:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~~~~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:436:53: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] stream->inbox = !compare_cstring (stream->mailbox,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:440:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = MAXMESSAGESIZE) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:489:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ((flags & FT_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mx.c:490:30: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence))) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mx.c:507:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mx.c:509:11: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] stat (LOCAL->buf,&sbuf); /* get size of message */ ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/stat.h:455:28: note: passing argument to parameter '__path' here __NTH (stat (__const char *__path, struct stat *__statbuf)) ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:48:52: note: expanded from macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__)) fct ^ mx.c:519:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return LOCAL->buf; /* return file name */ ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:549:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = elt->rfc822_size) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:564:43: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cpytxt (&elt->private.msg.header.text,LOCAL->buf,i); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:81:36: note: passing argument to parameter 'text' here char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); ^ mx.c:565:41: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cpytxt (&elt->private.msg.text.text,LOCAL->buf+i,elt->rfc822_size - i); ^~~~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./misc.h:81:36: note: passing argument to parameter 'text' here char *cpytxt (SIZEDTEXT *dst,char *text,unsigned long size); ^ mx.c:647:46: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mx_select,mx_numsort); ^~~~~~~~~ /usr/include/dirent.h:254:13: note: passing argument to parameter '__selector' here int (*__selector) (__const struct dirent *), ^ mx.c:647:56: warning: incompatible pointer types passing 'int (const void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mx_select,mx_numsort); ^~~~~~~~~~ /usr/include/dirent.h:255:13: note: passing argument to parameter '__cmp' here int (*__cmp) (__const struct dirent **, ^ mx.c:668:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ~~^~~~~~~~~~~~~~~~ mx.c:668:11: note: place parentheses around the assignment to silence this warning if (s = (void *) names) fs_give ((void **) &s); ^ ( ) mx.c:668:11: note: use '==' to turn this assignment into an equality comparison if (s = (void *) names) fs_give ((void **) &s); ^ == mx.c:687:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,++old); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mx.c:690:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (((fd = open (LOCAL->buf,O_WRONLY|O_CREAT|O_EXCL, ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/fcntl.h:119:32: note: passing argument to parameter '__file' here extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); ^ mx.c:713:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] mx_setdate (LOCAL->buf,elt); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:86:24: note: passing argument to parameter 'file' here void mx_setdate (char *file,MESSAGECACHE *elt); ^ mx.c:718:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] unlink (LOCAL->buf);/* flush this file */ ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/unistd.h:845:34: note: passing argument to parameter '__name' here extern int unlink (__const char *__name) __THROW __nonnull ((1)); ^ mx.c:765:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"%s/%lu",LOCAL->dir,elt->private.uid); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mx.c:766:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (unlink (LOCAL->buf)) {/* try to delete the message */ ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/unistd.h:845:34: note: passing argument to parameter '__name' here extern int unlink (__const char *__name) __THROW __nonnull ((1)); ^ mx.c:767:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunge of message %lu failed, aborted: %s",i, ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mx.c:769:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mx.c:785:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf (LOCAL->buf,"Expunged %lu messages",n); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:361:38: note: passing argument to parameter '__s' here extern int sprintf (char *__restrict __s, ^ mx.c:786:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] MM_LOG (LOCAL->buf,(long) NIL); ^~~~~~~~~~ mx.c:49:15: note: expanded from macro 'LOCAL' #define LOCAL ((MXLOCAL *) stream->local) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mail.h:1509:20: note: passing argument to parameter 'string' here void mm_log (char *string,long errflg); ^ mx.c:814:54: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((options & CP_UID) ? mail_uid_sequence (stream,sequence) : ^~~~~~~~ ./mail.h:1666:59: note: passing argument to parameter 'sequence' here long mail_uid_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mx.c:815:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] mail_sequence (stream,sequence)) ^~~~~~~~ ./mail.h:1665:55: note: passing argument to parameter 'sequence' here long mail_sequence (MAILSTREAM *stream,unsigned char *sequence); ^ mx.c:823:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] LOCAL->buf = (char *) fs_get ((LOCAL->buflen = sbuf.st_size) + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:833:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = elt->user_flags) do ~~^~~~~~~~~~~~~~~~~ mx.c:833:8: note: place parentheses around the assignment to silence this warning if (j = elt->user_flags) do ^ ( ) mx.c:833:8: note: use '==' to turn this assignment into an equality comparison if (j = elt->user_flags) do ^ == mx.c:834:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t = stream->user_flags[find_rightmost_bit (&j)]) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:834:10: note: place parentheses around the assignment to silence this warning if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ ( ) mx.c:834:10: note: use '==' to turn this assignment into an equality comparison if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ == mx.c:875:27: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); ^~~~~~~ ./misc.h:98:37: note: passing argument to parameter 's1' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:875:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compare_cstring (mailbox,"INBOX")) mx_create (NIL,"INBOX"); ^~~~~~~ ./misc.h:98:55: note: passing argument to parameter 's2' here int compare_cstring (unsigned char *s1,unsigned char *s2); ^ mx.c:912:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!mail_parse_date (&selt,date)) { ^~~~ ./mail.h:1602:56: note: passing argument to parameter 'string' here long mail_parse_date (MESSAGECACHE *elt,unsigned char *string); ^ mx.c:977:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) if (!isdigit (c)) return NIL; ~~^~~~~~ mx.c:977:12: note: place parentheses around the assignment to silence this warning while (c = *s++) if (!isdigit (c)) return NIL; ^ ( ) mx.c:977:12: note: use '==' to turn this assignment into an equality comparison while (c = *s++) if (!isdigit (c)) return NIL; ^ == mx.c:1028:5: warning: implicit declaration of function 'safe_flock' is invalid in C99 [-Wimplicit-function-declaration] flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^ ./osdep.h:52:15: note: expanded from macro 'flock' #define flock safe_flock ^ mx.c:1044:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr (t = ++s,'\n')) { ~~^~~~~~~~ mx.c:1044:13: note: place parentheses around the assignment to silence this warning if (s = strchr (t = ++s,'\n')) { ^ ( ) mx.c:1044:13: note: use '==' to turn this assignment into an equality comparison if (s = strchr (t = ++s,'\n')) { ^ == mx.c:1139:3: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ 50 warnings generated. sh -c 'rm -rf c-client.a || true' ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a make[5]: Leaving directory `/«PKGBUILDDIR»/imap/c-client' make[4]: Leaving directory `/«PKGBUILDDIR»/imap/c-client' echo lnp > OSTYPE touch rebuild sh -c 'rm -rf rebuild || true' make[3]: Leaving directory `/«PKGBUILDDIR»/imap' make[2]: Leaving directory `/«PKGBUILDDIR»/imap' cd lib; /usr/bin/make make[2]: Entering directory `/«PKGBUILDDIR»/lib' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratAppInit.o ratAppInit.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratFolder.o ratFolder.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratStdFolder.o ratStdFolder.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratStdFolder.c:1620:15: warning: implicit declaration of function 'mbx_create' is invalid in C99 [-Wimplicit-function-declaration] result = mbx_create(stream, spec); ^ 1 warning generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratMessage.o ratMessage.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratCode.o ratCode.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratCode.c:912:16: warning: array index 3 is past the end of the array (which contains 3 elements) [-Warray-bounds] buf[0] = buf[3]; ^ ~ ratCode.c:884:5: note: array 'buf' declared here unsigned char buf[3], *src = (unsigned char*)signed_src; ^ ratCode.c:925:13: warning: array index 3 is past the end of the array (which contains 3 elements) [-Warray-bounds] buf[2] = buf[3] = 0; ^ ~ ratCode.c:884:5: note: array 'buf' declared here unsigned char buf[3], *src = (unsigned char*)signed_src; ^ 2 warnings generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratAddress.o ratAddress.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratDbase.o ratDbase.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratDbFolder.o ratDbFolder.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratStdMessage.o ratStdMessage.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratDbMessage.o ratDbMessage.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratFrMessage.o ratFrMessage.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratSender.o ratSender.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratSender.c:802:17: warning: implicit declaration of function 'smtp_send' is invalid in C99 [-Wimplicit-function-declaration] if (250 != smtp_send(stream,"RSET",NIL)) { ^ 1 warning generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratExp.o ratExp.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratExp.c:386:17: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(buf, "%d", cPtr-exp); ~^ ~~~~~~~~ %ld 1 warning generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratSequence.o ratSequence.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratMailcap.o ratMailcap.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratCompat.o ratCompat.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratPGP.o ratPGP.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratPGPprog.o ratPGPprog.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratPwCache.o ratPwCache.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratDisFolder.o ratDisFolder.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratDisFolder.c:387:2: warning: implicit declaration of function 'mbx_create' is invalid in C99 [-Wimplicit-function-declaration] mbx_create(NIL, Tcl_DStringValue(&ds)); ^ 1 warning generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratPrint.o ratPrint.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' ratPrint.c:678:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Tcl_WriteChars(channel, cPtr, 1); ^~~~ /usr/include/tcl8.5/tclDecls.h:2010:58: note: passing argument to parameter 'src' here EXTERN int Tcl_WriteChars(Tcl_Channel chan, CONST char *src, ^ 1 warning generated. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratWatchdog.o ratWatchdog.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratBusy.o ratBusy.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratAddrList.o ratAddrList.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratMsgList.o ratMsgList.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -shared -o ratatosk2.2.so ratAppInit.o ratFolder.o ratStdFolder.o ratMessage.o ratCode.o ratAddress.o ratDbase.o ratDbFolder.o ratStdMessage.o ratDbMessage.o ratFrMessage.o ratSender.o ratExp.o ratSequence.o ratMailcap.o ratCompat.o ratPGP.o ratPGPprog.o ratPwCache.o ratDisFolder.o ratPrint.o ratWatchdog.o ratBusy.o ratAddrList.o ratMsgList.o ./../imap/c-client/c-client.a -L/usr/lib -lssl -lcrypto -lcrypt -L/usr/lib -lpam -lpam_misc gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratHold.o ratHold.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -shared -o ratold2.2.so ratHold.o -L/usr/lib -lssl -lcrypto -lcrypt -L/usr/lib -lpam -lpam_misc gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -I/usr/include -I./../imap/c-client -I/usr/include/tcl8.5 -fPIC -DVERSION=\"2.2\" -c -o ratDummy.o ratDummy.c clang: warning: argument unused during compilation: '--param ssp-buffer-size=4' gcc -shared -o ratDummy.so ratDummy.o -L/usr/lib -lssl -lcrypto -lcrypt -L/usr/lib -lpam -lpam_misc echo "if [catch {load ./ratDummy.so; \ load ./ratatosk2.2.so; \ load ./ratold2.2.so; \ pkg_mkIndex . ratatosk2.2.so ratold2.2.so} error] \ {puts \$error; exit 1}" | /usr/bin/tclsh8.5 couldn't load file "./ratatosk2.2.so": ./ratatosk2.2.so: undefined symbol: Tk_FindPhoto make[2]: *** [pkgIndex.tcl] Error 1 make[2]: Leaving directory `/«PKGBUILDDIR»/lib' make[1]: *** [build] Error 2 make: *** [debian/stamp-makefile-build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 make[1]: Leaving directory `/«PKGBUILDDIR»' ──────────────────────────────────────────────────────────────────────────────── Build finished at 20120709-2035 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /«BUILDDIR» Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Architecture: amd64 Build-Space: 23488 Build-Time: 30 Distribution: unstable Fail-Stage: build Install-Time: 11 Job: tkrat_1:2.2cvs20100105-true-dfsg-5 Package: tkrat Package-Time: 60 Source-Version: 1:2.2cvs20100105-true-dfsg-5 Space: 23488 Status: attempted Version: 1:2.2cvs20100105-true-dfsg-5 ──────────────────────────────────────────────────────────────────────────────── Finished at 20120709-2035 Build needed 00:01:00, 23488k disc space DC-Status: Failed 60.773059s DC-Time-Estimation: 60.773059 versus expected 1 (r/m: 59.773059 ; m: 1.0)