Red Hat Bugzilla – Bug 179385
Fix for C99ism in lib/scache.c
Last modified: 2007-11-30 17:11:22 EST
Description of problem: There's a small C99ism in lib/scache.c that prevents compiling it either with -std=gnu89 or with GCC 2.95.3 on legacy systems.
Version-Release number of selected component (if applicable): 0.54.3
Attached small and rather trivial patch against libuser 0.54.3 that fixes C99ism.
Created attachment 123881 [details]
Patch to fix C99ism in lib/scache.c
Thanks, fixed in CVS.
(-std=gnu89 actually works fine, mixed declarations and code are a GNU extension.)
Note that I won't hesitate to use C99 in the future if it makes the code more
elegant or more efficient.