Source-Changes-HG archive

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

[src/trunk]: src/bin/ksh Fix FALLTHROUGH comments.



details:   https://anonhg.NetBSD.org/src/rev/814d840e8124
branches:  trunk
changeset: 454727:814d840e8124
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Thu Sep 26 11:01:09 2019 +0000

description:
Fix FALLTHROUGH comments.

diffstat:

 bin/ksh/eval.c |  5 +++--
 bin/ksh/lex.c  |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 0a67ad482ce3 -r 814d840e8124 bin/ksh/eval.c
--- a/bin/ksh/eval.c    Thu Sep 26 10:47:30 2019 +0000
+++ b/bin/ksh/eval.c    Thu Sep 26 11:01:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eval.c,v 1.25 2018/06/12 14:13:55 kamil Exp $  */
+/*     $NetBSD: eval.c,v 1.26 2019/09/26 11:01:09 mlelstv Exp $        */
 
 /*
  * Expansion - quoting, separation, substitution, globbing
@@ -6,7 +6,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: eval.c,v 1.25 2018/06/12 14:13:55 kamil Exp $");
+__RCSID("$NetBSD: eval.c,v 1.26 2019/09/26 11:01:09 mlelstv Exp $");
 #endif
 
 #include <sys/stat.h>
@@ -493,6 +493,7 @@
                  case XARGSEP:
                        type = XARG;
                        quote = 1;
+                       /* FALLTHROUGH */
                  case XARG:
                        if ((c = *x.str++) == '\0') {
                                /* force null words to be created so
diff -r 0a67ad482ce3 -r 814d840e8124 bin/ksh/lex.c
--- a/bin/ksh/lex.c     Thu Sep 26 10:47:30 2019 +0000
+++ b/bin/ksh/lex.c     Thu Sep 26 11:01:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lex.c,v 1.23 2018/05/08 16:37:59 kamil Exp $   */
+/*     $NetBSD: lex.c,v 1.24 2019/09/26 11:01:09 mlelstv Exp $ */
 
 /*
  * lexical analysis and source input
@@ -6,7 +6,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: lex.c,v 1.23 2018/05/08 16:37:59 kamil Exp $");
+__RCSID("$NetBSD: lex.c,v 1.24 2019/09/26 11:01:09 mlelstv Exp $");
 #endif
 
 
@@ -254,7 +254,7 @@
                                                *wp++ = QCHAR, *wp++ = c;
                                                break;
                                        }
-                                       /* FALLTROUGH */
+                                       /* FALLTHROUGH */
                                  default:
                                        Xcheck(ws, wp);
                                        if (c) { /* trailing \ is lost */



Home | Main Index | Thread Index | Old Index