]> Zhao Yanbai Git Server - minix.git/commitdiff
umount: getopt return value is int, not char 94/294/2
authorBen Gras <ben@minix3.org>
Mon, 4 Feb 2013 04:09:28 +0000 (05:09 +0100)
committerBen Gras <ben@minix3.org>
Mon, 4 Feb 2013 11:03:05 +0000 (12:03 +0100)
. causes infinite loop on ARM (default unsigned char?)

Change-Id: If00184f37317c8597a8203f68ec96f1ce5030853

commands/umount/umount.c

index b65921631e6d21bd21ae7c519fb3ed1d269f8123..6ec9e2da5ba1837c3425de05d55d25acb80645d0 100644 (file)
@@ -31,7 +31,7 @@ char *argv[];
 {
   int found;
   int umount_flags = 0UL;
-  char c;
+  int c;
   char *name;
 
   while ((c = getopt (argc, argv, "e")) != -1)