On Thu, 2008-10-09 at 21:39 +0100, Andy Whitcroft wrote:
> Ensure we report any unparsed options that getopts_long recognises but which
> have no implementation.
> 
> Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Adam Litke <[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;
>               }
-- 
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

Reply via email to