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.
Signed-off-by: Andy Whitcroft <[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; -- 1.6.0.1.451.gc8d31 ------------------------------------------------------------------------- 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