On Thu, 2008-10-09 at 11:47 +0100, Andy Whitcroft wrote: > When we hit the end of the arguments we will get a valid -1 return > from getopts_long. We should suppress this to prevent confusion.
Does this affect hugeedit as well? > Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> > --- > hugectl.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/hugectl.c b/hugectl.c > index 0358ce2..902085e 100644 > --- a/hugectl.c > +++ b/hugectl.c > @@ -333,6 +333,9 @@ int main(int argc, char** argv) > opt_library = optarg; > break; > > + case -1: > + break; > + > default: > WARNING("unparsed option %08x\n", ret); > ret = -1; -- Adam Litke - (agl at us.ibm.com) IBM Linux Technology Center ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel