s3:utils: Add FALL_THROUGH statements in net_conf.c
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jul 2017 15:57:10 +0000 (17:57 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Mar 2018 03:37:42 +0000 (04:37 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net_conf.c

index 8d9f1e6b99b3331c645c036b0d1df59a17d186a6..097baa1b82e9e8737a8813e9d8c1e55c3b03e340 100644 (file)
@@ -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]);