From 45df73eecff7a7f1d81a7e6720e3f42c29c9b514 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 27 Sep 1995 21:39:36 +0000 Subject: (options_parse): Use 0 as the tag for non-option args. --- libshouldbeinlibc/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/options.c b/libshouldbeinlibc/options.c index b4d1d51b..5f719616 100644 --- a/libshouldbeinlibc/options.c +++ b/libshouldbeinlibc/options.c @@ -190,7 +190,7 @@ options_parse (struct options *options, if (opt == 1) /* A non-option argument; try each parser in turn. */ for (o = options; o != NULL && err == EINVAL; o = o->parent) - err = (*o->parser)(opt, optarg); + err = (*o->parser)(0, optarg); else if (group == 0) /* A short option. */ { -- cgit v1.2.3