Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 179385 - Fix for C99ism in lib/scache.c
Fix for C99ism in lib/scache.c
Product: Fedora
Classification: Fedora
Component: libuser (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Depends On:
  Show dependency treegraph
Reported: 2006-01-30 15:20 EST by Dan Yefimov
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-30 19:31:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix C99ism in lib/scache.c (337 bytes, patch)
2006-01-30 15:20 EST, Dan Yefimov
no flags Details | Diff

  None (edit)
Description Dan Yefimov 2006-01-30 15:20:11 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.
Comment 1 Dan Yefimov 2006-01-30 15:20:11 EST
Created attachment 123881 [details]
Patch to fix C99ism in lib/scache.c
Comment 2 Miloslav Trmač 2006-01-30 19:31:09 EST
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.

Note You need to log in before you can comment on or make changes to this bug.