Clearly mark switch cases that fall through.

This commit is contained in:
Tobias Brunner
2011-04-19 13:48:50 +02:00
parent 119fc2d3d7
commit 1c004bebd8
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -163,6 +163,7 @@ static void process_payloads(private_child_delete_t *this, message_t *message)
protocol, spi);
continue;
}
/* fall through */
case CHILD_INSTALLED:
if (!this->initiator)
{ /* reestablish installed children if required */
+1
View File
@@ -1247,6 +1247,7 @@ pfkey_msg_parse(struct sadb_msg *pfkey_msg,
pfkey_msg->sadb_msg_type,
pfkey_v2_sadb_type_string(pfkey_msg->sadb_msg_type));
}
/* fall through */
case SADB_ACQUIRE:
case SADB_REGISTER:
case SADB_EXPIRE:
+1
View File
@@ -542,6 +542,7 @@ bool assign_arg(kw_token_t token, kw_token_t first, kw_list_t *kw, char *base,
}
}
}
/* fall through */
default:
return TRUE;
}
+1
View File
@@ -1155,6 +1155,7 @@ int main(int argc, char **argv)
case OPT_STATUSALL: /* --statusall */
msg.whack_statusall = TRUE;
/* fall through */
case OPT_STATUS: /* --status */
msg.whack_status = TRUE;