Hi again !
The appended diff corrects two typos in comments.
Cheers !
hyjial.
Index: getopt_long.c
===================================================================
RCS file: /cvs/src/lib/libc/stdlib/getopt_long.c,v
retrieving revision 1.23
diff -u getopt_long.c
--- getopt_long.c 31 Oct 2007 12:34:57 -0000 1.23
+++ getopt_long.c 21 Apr 2010 16:01:49 -0000
@@ -68,7 +68,7 @@
#define PRINT_ERROR ((opterr) && (*options != ':'))
#define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */
-#define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */
+#define FLAG_ALLARGS 0x02 /* treat non-options as args to option "1" */
#define FLAG_LONGONLY 0x04 /* operate as getopt_long_only */
/* return values */
@@ -391,7 +391,7 @@
* Check long options if:
* 1) we were passed some
* 2) the arg is not just "-"
- * 3) either the arg starts with -- we are getopt_long_only()
+ * 3) either the arg starts with -- or we are getopt_long_only()
*/
if (long_options != NULL && place != nargv[optind] &&
(*place == '-' || (flags & FLAG_LONGONLY))) {