Ensure we report any unparsed options that getopts_long recognises but which
have no implementation.

Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
 hugeedit.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hugeedit.c b/hugeedit.c
index 2785200..17b052c 100644
--- a/hugeedit.c
+++ b/hugeedit.c
@@ -187,7 +187,11 @@ int main(int argc, char ** argv)
                        print_usage();
                        exit(EXIT_SUCCESS);
 
+               case -1:
+                       break;
+
                default:
+                       WARNING("unparsed option %08x\n", ret);
                        ret = -1;
                        break;
                }
-- 
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

Reply via email to