Clearly mark switch cases that fall through.
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 10:07:48 +0000 (12:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:50 +0000 (13:48 +0200)
src/libcharon/sa/tasks/child_delete.c
src/libfreeswan/pfkey_v2_parse.c
src/starter/args.c
src/whack/whack.c

index 45e97e4..e6834a9 100644 (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 */
index 49d5cdf..a143003 100644 (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:
index 87307f1..4d8003a 100644 (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;
        }
index c5fe3b4..ac2d3ea 100644 (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;