Re: [PATCH] Fix more const warnings on Arch linux with the latest glibc.

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aaAJSN9Hlt8DTAgc@qinghai>
On Thu, Feb 26, 2026 at 09:26:37AM +0100, Rene Kita wrote:
>On Thu, Feb 26, 2026 at 11:17:21AM +0800, Kevin J. McCarthy wrote:
>> See 19434821 for more details.
>>
>> These are in the IMAP code, which was accidentally skipped in the
>> previous testing.
>>
>> imap_get_literal_count() is always passed a modifiable buf parameter,
>> (which the callers are also modifying):.  Since the function is, in
>> fact, sneakily modifying buf, change the signature to reflect reality.
>>
>> Split off a different constc variable for the case inside
>> imap_parse_path() that was calling strchr on a const char * "path"
>> argument.
>> ---
>
>OK.
>
>Successful build on Arch: https://builds.sr.ht/~rkta/job/1695147

Applied and pushed.  Thanks Rene!

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmgCUgACgkQre92hIAx
a9qUbA/9FdPDtcprD4BBUNYVsiOuxHBFTQ8a3F5tC2e3EGlghfKVaH1HqIIS6nuZ
NHTsgzfIr/IfFumwPQ+muX/MJ1CdlYw/PUUWI1Matz2A/IkjK/DSlbR7T450FSiQ
mlBXaLOX+WABZHSZeLq9zOB7D/vtuUMAVcOPcWeT5E136zMMpCFPyW6OS6vqzMgW
JoeORU06Kfn7WX4lzT3Jq4MWUzHi8nTFZWQHruwdFfzFgIH9pAYY5jpYfT8Ru0wS
kyhNNXpqQ108zvWg17yp/4Tjo4S0vayjL/Rw3BME16W6uobZTZdmzG3eLqYIswwf
KpgWdrS/jjVnQ74I4yAtDgoFUVQIyF2vf+Qhumc0nefYvXrWtoAU0Z6LhVSs8Nbd
bMl1Ig2qpbaDRFW6QHLkbAxBLU2Gnm0QKxXkAuDoyHgRe+3f1A30TfsCW4g9dEUA
6SKMDZ32EUBTBhZg8naSl6fyShE3xdWPTMOAoKcmU2xppAmxVKex3+p/Z55WNAjA
1jMCLiwT6Og7n38nBlXZeM1X5IrAmCT+KTaXaDutqiYDvNokSbsj+WUUsZIFLye+
yXB5od568S1tBFa94XHazyjzQIq+VhAS3Fbwar0vByH/wXf3AoLUyTjQKo0uJUF0
Ua58sE10pyufdGmGDgfHeK48Wk2bnyTa/zA5T3mhouG/FmTRPqQ=
=SCvZ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.