[dvblast-devel] tiny bug on platform where char is unsigned
Marian Ďurkovič
md at bts.sk
Mon Oct 19 15:17:58 CEST 2009
On Mon, Oct 19, 2009 at 01:54:45PM +0100, Andy Gatward wrote:
> On 19/10/2009 12:46, "Marian Ďurkovič" <md at bts.sk> wrote:
>
> > Just a small change - I replaced (int)EOF with -1 according to manpage
> > (EOF is defined in different header and hence not supposed here)
>
> The manpage is incorrect here and on some systems EOF isn't -1. I would
> prefer to leave this as is (as I do actually have a system where EOF != -1).
Hmm, what kind of system is that and what's the (int) return value from
getopt there?
Both Linux and FreeBSD libc definitely have
return -1;
in the source so the manpages are actually telling the truth.
With kind regards,
M.
More information about the dvblast-devel
mailing list