From: Andreas Schneider Date: Wed, 26 Jul 2017 15:57:10 +0000 (+0200) Subject: s3:utils: Add FALL_THROUGH statements in net_conf.c X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=36315769b87d8de0482cb5090a9ddcda975f3c45;p=metze%2Fsamba%2Fwip.git s3:utils: Add FALL_THROUGH statements in net_conf.c Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 8d9f1e6b99b3..097baa1b82e9 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -294,6 +294,8 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx, d_printf(_("error: out of memory!\n")); goto done; } + + FALL_THROUGH; case 1: filename = argv[0]; break; @@ -563,6 +565,8 @@ static int net_conf_addshare(struct net_context *c, goto done; case 5: comment = argv[4]; + + FALL_THROUGH; case 4: if (!strnequal(argv[3], "guest_ok=", 9)) { net_conf_addshare_usage(c, argc, argv); @@ -581,6 +585,8 @@ static int net_conf_addshare(struct net_context *c, net_conf_addshare_usage(c, argc, argv); goto done; } + + FALL_THROUGH; case 3: if (!strnequal(argv[2], "writeable=", 10)) { net_conf_addshare_usage(c, argc, argv); @@ -599,6 +605,8 @@ static int net_conf_addshare(struct net_context *c, net_conf_addshare_usage(c, argc, argv); goto done; } + + FALL_THROUGH; case 2: path = argv[1]; sharename = talloc_strdup(mem_ctx, argv[0]);