]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Remove useless break statements
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 15:08:07 +0000 (16:08 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 16:36:22 +0000 (17:36 +0100)
src/_copyright/_copyright.c
src/libcharon/sa/ikev1/tasks/isakmp_cert_post.c
src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.c
src/libimcv/plugins/imv_attestation/imv_attestation_agent.c
src/libpttls/pt_tls_client.c
src/pool/pool.c
src/sw-collector/sw-collector.c

index 806f780627bfa8a093942a57ed94d4f4767a03a8..038e60e8715cb5e3987a66b2be90f85034a7b625 100644 (file)
@@ -84,11 +84,9 @@ main(int argc, char *argv[])
                case 'h':       /* help */
                        printf("%s\n", usage);
                        exit(0);
-                       break;
                case 'v':       /* version */
                        printf("%s strongSwan "VERSION"\n", me);
                        exit(0);
-                       break;
                case '?':
                default:
                        errflg = 1;
index 7dbbdc92fdfea5047103eaf082e6d044fb2c9a9e..b652d926f65153d72d1928195e4b85a02d9808e7 100644 (file)
@@ -287,7 +287,6 @@ METHOD(task_t, process_i, status_t,
                                default:
                                        return FAILED;
                        }
-                       break;
                }
                case AGGRESSIVE:
                {
index 58f856e3f93e89709214b46d95b1c4a5b1b3ee0d..566bfe83acd4948c5996e41d2bae0bd1999493a8 100644 (file)
@@ -605,7 +605,6 @@ METHOD(task_t, process_i, status_t,
                                default:
                                        return FAILED;
                        }
-                       break;
                }
                case AGGRESSIVE:
                {
index 89ba86930914e47395c895d38e47450175566f7c..51bcdc410b1278212ce6b3202a5be2de1d6d05be 100644 (file)
@@ -249,8 +249,6 @@ static TNC_Result receive_msg(private_imv_attestation_agent_t *this,
                                                                           os_name.len, os_name.ptr);
                                        }
                                        break;
-
-                                       break;
                                }
                                case IETF_ATTR_STRING_VERSION:
                                {
index 265a4a09a079a0b7f99b91cf620d278c6f9c4a99..f86f13dcc045642c917c68bd87d6a2b6b214b46f 100644 (file)
@@ -231,7 +231,6 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl)
                                                                reader->destroy(reader);
                                                                return FAILED;
                                                }
-                                               break;
                                        case PT_TLS_SASL_RESULT_MECH_FAILURE:
                                        case PT_TLS_SASL_RESULT_FAILURE:
                                                /* non-fatal failure, try again */
index b755365ec078c7f91452b59876bf130de7c0d6e2..ba1889dd886d373400d66264d1a37fc5f815b3b7 100644 (file)
@@ -710,7 +710,6 @@ static enumerator_t *create_lease_query(char *filter, array_t **to_free)
                        default:
                                fprintf(stderr, "invalid filter string.\n");
                                exit(EXIT_FAILURE);
-                               break;
                }
        }
        query = db->query(db,
@@ -1142,7 +1141,6 @@ static void do_args(int argc, char *argv[])
                        default:
                                usage();
                                exit(EXIT_FAILURE);
-                               break;
                }
                break;
        }
index f8229a19296920dc62ade548be0c2012ee842798..5453eeb60e3d5624e2b3bcd2b1b1af6c1b08a819 100644 (file)
@@ -27,7 +27,7 @@
 #include "sw_collector_history.h"
 #include "sw_collector_rest_api.h"
 #include "sw_collector_dpkg.h"
-#
+
 #include <library.h>
 #include <utils/debug.h>
 #include <utils/lexparser.h>
@@ -165,7 +165,6 @@ static collector_op_t do_args(int argc, char *argv[], bool *full_tags,
                        case 'h':
                                usage();
                                exit(SUCCESS);
-                               break;
                        case 'C':
                                op = COLLECTOR_OP_CHECK;
                                continue;