The return type from getopt(3) is int, not char. Besides, char is
not guaranteed to be signed, so comparison with -1 will cause a warning (turned error) for some of our ports (e.g. our arm ports). Fix this by making the 'ch' variable an int instead of a char.
This commit is contained in:
parent
9ec95e5520
commit
759fbc6504
@ -1,4 +1,4 @@
|
||||
/* $Id: vndcompress.c,v 1.2 2005/07/25 12:25:54 wiz Exp $ */
|
||||
/* $Id: vndcompress.c,v 1.3 2005/07/27 09:29:02 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 by Florian Stoehr <netbsd@wolfnode.de>
|
||||
@ -354,7 +354,7 @@ int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
char *ep, *p;
|
||||
char ch;
|
||||
int ch;
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user