[PATCH 1/3] Solve few fall-trough warnings

David Woodhouse dwmw2 at infradead.org
Thu Feb 22 02:10:16 PST 2018


On Thu, 2018-02-22 at 00:12 +0100, Ľubomír Carik wrote:
> Signed-off-by: Ľubomír Carik <Lubomir.Carik at gmail.com>
> ---
>  main.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/main.c b/main.c
> index 935147f..86ba8cb 100644
> --- a/main.c
> +++ b/main.c
> @@ -610,6 +610,7 @@ static void print_build_opts(void)
>  	case 2:
>  		printf("%sHOTP software token", sep);
>  		sep = comma;
> +		break;
>  	case 1:
>  		printf("%sTOTP software token", sep);
>  		sep = comma;

That one really should fall through. If it returns 1 that means we have
only TOTP support; if it returns 2 we have both.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5213 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20180222/96e2fcd4/attachment.bin>


More information about the openconnect-devel mailing list