diff options
author | Andreas Schneider <asn@samba.org> | 2017-07-26 17:57:10 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-03-01 04:37:42 +0100 |
commit | 36315769b87d8de0482cb5090a9ddcda975f3c45 (patch) | |
tree | 382f58a7e6e8db8025bcdd3e59938eb09b2e41f9 /source3 | |
parent | 273ef597616dc41620860781fe0e19cc747fe931 (diff) | |
download | samba-36315769b87d8de0482cb5090a9ddcda975f3c45.tar.gz |
s3:utils: Add FALL_THROUGH statements in net_conf.c
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_conf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 8d9f1e6b99b..097baa1b82e 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]); |