# HG changeset patch # User Binki # Date 2009-10-14 19:24:55 # Node ID ebd772187f4577700822cc7d5914640e3aa1d3f0 # Parent 275657452e9eb2a66ec2d20ad10523fbc3c33f4a fix getopt usage: signed/unsigned char diff --git a/src/common/options.c b/src/common/options.c --- a/src/common/options.c +++ b/src/common/options.c @@ -52,7 +52,7 @@ int options_init(int argc, char *argv[], char curopt; configfileprefix = NULL; - while((curopt = getopt(argc, argv, optstring)) != -1) + while((curopt = getopt(argc, argv, optstring)) != (char)-1) switch(curopt) { case 'h':