On Tue, Oct 05, 2010 at 08:23:58PM +0200, Andreas Metzler wrote:
> Changing opt from char to int (Thank you www.opengroup.org example
> code) fixes the issue.

Good catch indeed.  The signedness of char is arch-ABI-dependent and int is
what the API of getopt(3) tells the developer, anyway.

Kind regards,
Philipp Kern

Attachment: signature.asc
Description: Digital signature

Reply via email to