libX11 uses char* to store string literals in thousand places. Which is obviously wrong.
Created attachment 9386 [details] [review] Patch This patches fixes most of these errors. It also touches the arguments/return values of two public libX11 functions, where they used to deal with char* which are now const char*. That's annoying, but correct ;)
Keith, can you have a look at this and tell me whether it's okay to tweak public headers like this? It's in the first two chunks of the patch.
The internal changes are all fine. Changes to the public API should be reviewed by the project as a whole; can you start a discussion about adding const to public APIs on xorg@lists.freedesktop.org and see if you get any answers?
Committed in 1c75a9479011e5f1ad01c950628d0ef5a302d8b6. I didn't include the bits that touched public headers.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.