As a first step to using code checking tools such as "sparse" on the current libX11 code base it has to be converted from its current mix of K&R and ANSI function declarations to pure ANSI. I attach a patch that does this. Further discussion on [0] and [1] [0] http://lists.freedesktop.org/archives/xorg/2007-February/021553.html [1] http://lists.freedesktop.org/archives/xorg/2007-April/024065.html
Created attachment 9813 [details] [review] ANSI-fy libX11 The full patch set in one file
Created attachment 9817 [details] [review] Better patch Here's a slightly tweaked version of your patch. I removed rogue changes that crept it, such as the CHECKER stuff, an "extern" you removed, and a few unrelated whitespace changes. No object files were changed in the testing of that patch, which is cool. I can commit this, but I want to wait a bit just in case anyone else finds a problem with this patch.
Committed in a48386ce6b5f8fd2d9dc11a966c9bf5da59f3831.
One hunk was wrong. See Bug #11222.
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.