]> git.draconx.ca Git - upkg.git/commitdiff
libupkg: Add explicit conversions to stdio wrappers.
authorNick Bowler <nbowler@draconx.ca>
Sun, 31 Jan 2010 21:53:13 +0000 (16:53 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 31 Jan 2010 21:53:13 +0000 (16:53 -0500)
Some C libraries provide a macro version of feof which does not convert
the provided pointer to FILE * before dereferencing it.  Ordinarily,
this conversion would occur automatically since feof's prototype
specifies FILE *, but this is suppressed in the macro case.

It is not clear to me whether this behaviour is consistent with the
requirements of the C standard.  However, after encountering at least
two implementations which do this, explicit conversions seem simple
enough.


No differences found