Remove obvious empty statements (i.e. stray semicolons)

This commit is contained in:
Tobias Brunner committed 2024-02-29 15:30:40 +01:00
1 parent 9d1f325a77
commit 6dee8587f0
22 files changed
+28 -28

No files matched your search

@@ -208,7 +208,7 @@ static bool read_triplets(private_eap_sim_file_triplets_t *this, char *path)
parse_token(triplet->kc, token, SIM_KC_LEN);
continue;
default:
break;;
break;
}
break;
}
@@ -544,7 +544,7 @@ METHOD(listener_t, child_rekey, bool,
private_forecast_listener_t *this, ike_sa_t *ike_sa,
child_sa_t *old, child_sa_t *new)
{
struct iptc_handle *ipth;;
struct iptc_handle *ipth;
host_t *lhost, *rhost;
lhost = ike_sa->get_my_host(ike_sa);
+1 -1
View File
@@ -283,7 +283,7 @@ METHOD(ha_message_t, add_attribute, void,
*(uint16_t*)(this->buf.ptr + this->buf.len) = htons(chunk.len);
memcpy(this->buf.ptr + this->buf.len + sizeof(uint16_t),
chunk.ptr, chunk.len);
this->buf.len += chunk.len + sizeof(uint16_t);;
this->buf.len += chunk.len + sizeof(uint16_t);
break;
}
/** traffic_selector_t */
+1 -1
View File
@@ -340,7 +340,7 @@ METHOD(backend_t, create_peer_cfg_enumerator, enumerator_t*,
static job_requeue_t initiate_config(peer_cfg_t *peer_cfg)
{
enumerator_t *enumerator;
child_cfg_t *child_cfg = NULL;;
child_cfg_t *child_cfg = NULL;
enumerator = peer_cfg->create_child_cfg_enumerator(peer_cfg);
enumerator->enumerate(enumerator, &child_cfg);
+3 -3
View File
@@ -653,7 +653,7 @@ static job_requeue_t process(int *fdp)
if (reader == NULL)
{
DBG1(DBG_CFG, "opening SMP XML reader failed");
return JOB_REQUEUE_FAIR;;
return JOB_REQUEUE_FAIR;
}
/* read message type and id */
@@ -681,7 +681,7 @@ static job_requeue_t process(int *fdp)
}
}
xmlFreeTextReader(reader);
return JOB_REQUEUE_FAIR;;
return JOB_REQUEUE_FAIR;
}
/**
@@ -703,7 +703,7 @@ static job_requeue_t dispatch(private_smp_t *this)
{
DBG1(DBG_CFG, "accepting SMP XML socket failed: %s", strerror(errno));
sleep(1);
return JOB_REQUEUE_FAIR;;
return JOB_REQUEUE_FAIR;
}
fdp = malloc_thing(int);
@@ -595,7 +595,7 @@ METHOD(socket_t, sender, status_t,
}
memset(&msg, 0, sizeof(struct msghdr));
msg.msg_name = dst->get_sockaddr(dst);;
msg.msg_name = dst->get_sockaddr(dst);
msg.msg_namelen = *dst->get_sockaddr_len(dst);
iov.iov_base = data.ptr;
iov.iov_len = data.len;
@@ -604,7 +604,7 @@ METHOD(socket_t, sender, status_t,
DBG2(DBG_NET, "sending packet: from %#H to %#H", src, dst);
memset(&msg, 0, sizeof(struct msghdr));
msg.msg_name = dst->get_sockaddr(dst);;
msg.msg_name = dst->get_sockaddr(dst);
msg.msg_namelen = *dst->get_sockaddr_len(dst);
iov.iov_base = data.ptr;
iov.iov_len = data.len;
@@ -167,7 +167,7 @@ static void compare_vici(enumerator_t *parse, enumerator_t *tmpl)
{
vici_type_t type, ttype;
char *name, *tname;
chunk_t data, tdata;;
chunk_t data, tdata;
while (TRUE)
{
+1 -1
View File
@@ -144,7 +144,7 @@ static bool generate_iv(private_iv_manager_t *this, iv_data_t *iv)
else
{
/* initial phase 2 IV = hash(last_phase1_block | mid) */
uint32_t net;;
uint32_t net;
chunk_t data;
net = htonl(iv->mid);
+1 -1
View File
@@ -1416,7 +1416,7 @@ static linked_list_t* get_ts_if_nat_transport(private_child_create_t *this,
static child_cfg_t* select_child_cfg(private_child_create_t *this)
{
peer_cfg_t *peer_cfg;
child_cfg_t *child_cfg = NULL;;
child_cfg_t *child_cfg = NULL;
peer_cfg = this->ike_sa->get_peer_cfg(this->ike_sa);
if (peer_cfg && this->tsi && this->tsr)
+1 -1
View File
@@ -30,7 +30,7 @@ static void assert_host(char *expected, host_t *host)
verifier = host_create_from_string(expected, 0);
ck_assert_msg(host, "expected IP %+H != NULL", verifier);
ck_assert_msg(verifier->ip_equals(verifier, host), "expected IP %+H != "
"%+H", verifier, host);;
"%+H", verifier, host);
verifier->destroy(verifier);
}
}