Remove useless break statements
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -287,7 +287,6 @@ METHOD(task_t, process_i, status_t,
|
||||
default:
|
||||
return FAILED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AGGRESSIVE:
|
||||
{
|
||||
|
||||
@@ -605,7 +605,6 @@ METHOD(task_t, process_i, status_t,
|
||||
default:
|
||||
return FAILED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AGGRESSIVE:
|
||||
{
|
||||
|
||||
@@ -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:
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user