Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Add /* FALLTHROUGH */ comment for sure.



details:   https://anonhg.NetBSD.org/src/rev/1a32a41e4ca3
branches:  trunk
changeset: 376357:1a32a41e4ca3
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jun 14 00:28:55 2023 +0000

description:
Add /* FALLTHROUGH */ comment for sure.

diffstat:

 sys/lib/libsa/cread.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 336e84ce56c2 -r 1a32a41e4ca3 sys/lib/libsa/cread.c
--- a/sys/lib/libsa/cread.c     Wed Jun 14 00:07:22 2023 +0000
+++ b/sys/lib/libsa/cread.c     Wed Jun 14 00:28:55 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cread.c,v 1.28 2016/01/17 04:35:42 tsutsui Exp $       */
+/*     $NetBSD: cread.c,v 1.29 2023/06/14 00:28:55 rin Exp $   */
 
 /*
  * Copyright (c) 1996
@@ -453,6 +453,7 @@ lseek(int fd, off_t offset, int where)
        switch(where) {
        case SEEK_CUR:
                offset += s->stream.total_out;
+               /* FALLTHROUGH */
        case SEEK_SET:
                /* if seek backwards, simply start from the beginning */
                if (offset < s->stream.total_out) {



Home | Main Index | Thread Index | Old Index