Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Add some fallthrough annotations.



details:   https://anonhg.NetBSD.org/src/rev/c9f3a73c27bb
branches:  trunk
changeset: 448877:c9f3a73c27bb
user:      rjs <rjs%NetBSD.org@localhost>
date:      Tue Feb 12 14:40:38 2019 +0000

description:
Add some fallthrough annotations.

diffstat:

 sys/netinet/sctp_input.c  |  5 +++--
 sys/netinet/sctp_usrreq.c |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (55 lines):

diff -r 394e99581311 -r c9f3a73c27bb sys/netinet/sctp_input.c
--- a/sys/netinet/sctp_input.c  Tue Feb 12 14:31:45 2019 +0000
+++ b/sys/netinet/sctp_input.c  Tue Feb 12 14:40:38 2019 +0000
@@ -1,5 +1,5 @@
 /*     $KAME: sctp_input.c,v 1.28 2005/04/21 18:36:21 nishida Exp $    */
-/*     $NetBSD: sctp_input.c,v 1.11 2018/09/14 05:09:51 maxv Exp $     */
+/*     $NetBSD: sctp_input.c,v 1.12 2019/02/12 14:40:38 rjs Exp $      */
 
 /*
  * Copyright (C) 2002, 2003, 2004 Cisco Systems Inc,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_input.c,v 1.11 2018/09/14 05:09:51 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_input.c,v 1.12 2019/02/12 14:40:38 rjs Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -1156,6 +1156,7 @@
 #endif
                                return (NULL);
                        }
+                       /* FALLTHROUGH */
                        /* intentional fall through to below... */
 
                case SCTP_STATE_COOKIE_ECHOED:
diff -r 394e99581311 -r c9f3a73c27bb sys/netinet/sctp_usrreq.c
--- a/sys/netinet/sctp_usrreq.c Tue Feb 12 14:31:45 2019 +0000
+++ b/sys/netinet/sctp_usrreq.c Tue Feb 12 14:40:38 2019 +0000
@@ -1,5 +1,5 @@
 /*     $KAME: sctp_usrreq.c,v 1.50 2005/06/16 20:45:29 jinmei Exp $    */
-/*     $NetBSD: sctp_usrreq.c,v 1.14 2019/01/28 12:53:01 martin Exp $  */
+/*     $NetBSD: sctp_usrreq.c,v 1.15 2019/02/12 14:40:38 rjs Exp $     */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc.
@@ -33,7 +33,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_usrreq.c,v 1.14 2019/01/28 12:53:01 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_usrreq.c,v 1.15 2019/02/12 14:40:38 rjs Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2289,7 +2289,7 @@
                *s_info = stcb->asoc.def_send;
                SCTP_TCB_UNLOCK(stcb);
                sopt->sopt_size = sizeof(*s_info);
-       }
+       } /* FALLTHROUGH */
        case SCTP_INITMSG:
        {
                struct sctp_initmsg *sinit;



Home | Main Index | Thread Index | Old Index