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

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aZ721vsoauAvg1qB@qinghai>
On Wed, Feb 25, 2026 at 08:27:34PM +0800, Kevin J. McCarthy wrote:
>The latest version of glibc changes string search functions, such as
>strchr() and strrchr(), so that the return type is the same type as
>the string passed in.
>
>This helped us catch a real bug in browser.c (3a8dfafc), and also
>turned up some variable type issues, fixed here.
>
>Thanks to Rene Kita for the work on the Arch sr.ht build files which
>turned up the bugs, and for an initial patch showing where the warning
>were, which this commit is based upon.
>
>Also thanks to Alejandro Colomar for quickly explaining what was going
>on and helping debug the issues, and for the parse.c bsearch fix.
>---
> Rene, please double check the revised fix for parse.c bsearch()
> eliminates the warning.  Thanks Rene and Alejandro!

Pushed.

-- 
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-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmme9tYACgkQre92hIAx
a9pGyhAAicVL8A8iiCeK5TLPsG7HLEXdEPpC3r3XdGrqb+Za7q0r8/gc1yPQ/Pcb
rx8wX336shr0FAmI3pag8J+ylLs2BGTfQKpCVKGo/KYvakr/GRilIlWO1/EPeoLm
Tcui5AZibyOLUmIJtUwtOEmJ/G+VdscCCKuGkKyEMRNiFAJ+jACn1m3UNvzysN70
3m/2IqfU843OXjuXY/VI/s7ncNy5q+L483tUza641E/7aFCLfO5mg+XY8eFcvDG6
+nodzvyg2nJgf2Ld86j3prGpxucdaXSRTXmPFj6QMBIQytoVkjxcXS3urVJFZDb9
FzInQ2gGn5vsAQ0ffUNih7qD2TGZvlY886yweRT9nEbFAVvy032B7uoAt2XuNHW+
2c9mqo5ogTR7enByHHwGNaepYWBNg/ZcVP+VDDAhDzTaESRXJaD8LNfbMhKA9kzr
Zvy6+oJsgWss5IhelFqbxWyRc2nbObZ8lCnp+c2EKZta+atHrr2EKWSJexQKTpPN
k3KQgK3bwvhL64ot53wUfgtCJj+lux9T6p3I2Of01JFyFOj+mI4HRFbuULiYo6sr
xGWveb1K01Qxor9thslW2ofiMF5nmuM5AWPQR3Q/3LN88bmnGvVlyiRqz8KCZDo+
vQjTsAiAC3SSXpHIwF/ewgc0LRya+oJsTTSKv62LM0SxUbbkaUQ=
=0xj5
-----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.