Changeset - ebd772187f45
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-10-14 19:24:55
ohnobinki@ohnopublishing.net
fix getopt usage: signed/unsigned char
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/common/options.c
Show inline comments
 
@@ -49,13 +49,13 @@ int options_init(int argc, char *argv[],
 
  size_t i;
 

	
 
  char *optstring = "hc:";
 
  char curopt;
 

	
 
  configfileprefix = NULL;
 
  while((curopt = getopt(argc, argv, optstring)) != -1)
 
  while((curopt = getopt(argc, argv, optstring)) != (char)-1)
 
    switch(curopt)
 
      {
 
      case 'h':
 
	fprintf(stderr, "libdistren common options\n\
 
\n\
 
\t-h\tShow this help.\n\
0 comments (0 inline, 0 general)