Re: [PATCH 1/2] kconfig/conf: kill deadcode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 05, 2010 at 01:52:14AM -0500, Arnaud Lacombe wrote:
> This is likely to break the swith statement if the one of the enum member ever
> reach 63 ('?').
> 
> Signed-off-by: Arnaud Lacombe <lacombar@xxxxxxxxx>
> ---
>  scripts/kconfig/conf.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
> index 8e33aa7..057f49a 100644
> --- a/scripts/kconfig/conf.c
> +++ b/scripts/kconfig/conf.c
> @@ -503,10 +503,6 @@ int main(int ac, char **av)
>  			srand(seed);
>  			break;
>  		}
> -		case '?':
> -			fprintf(stderr, _("See README for usage info\n"));
> -			exit(1);
> -			break;

This code is correct, getopt_long() returns '?' if it encounters an
unknown option. At least the glibc implementation does so.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux