Bug 156278 - ainit uses char for getc() result, fills .asoundrc with 0xff until killed.
Summary: ainit uses char for getc() result, fills .asoundrc with 0xff until killed.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: alsa-lib
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-04-28 16:17 UTC by David Woodhouse
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 1.0.9rc2-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-28 16:27:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Woodhouse 2005-04-28 16:17:44 UTC
The getc() function returns a 'int', not a 'char'. Compiling ainit on a machine
where 'char' is unsigned results in these warnings:

ainit.c: In function 'read_token':
ainit.c:194: warning: comparison is always true due to limited range of data type
ainit.c: In function 'parse_file':
ainit.c:223: warning: comparison is always true due to limited range of data type

... because a char cannot hold the value '-1'.


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