From 4966efff7bc9071f04706819e62e1a291d22bcb2 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 25 Aug 2002 13:10:45 +0000 Subject: Replace various spelling with FALLTHROUGH which is lint()able --- lib/libc/net/ns_addr.c | 2 +- lib/libc/net/ns_ntoa.c | 2 +- lib/libc/regex/regcomp.c | 2 +- lib/libc_r/uthread/uthread_kern.c | 2 +- lib/libipx/ipx_addr.c | 2 +- lib/libkse/thread/thr_kern.c | 2 +- lib/libpthread/thread/thr_kern.c | 2 +- lib/libutil/login_cap.c | 2 +- lib/libutil/property.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/libc/net/ns_addr.c b/lib/libc/net/ns_addr.c index 6ebcbbb3..1c77bcc 100644 --- a/lib/libc/net/ns_addr.c +++ b/lib/libc/net/ns_addr.c @@ -167,7 +167,7 @@ Field(buf, out, len) case 'h': case 'H': base16 = 1; - /* fall into */ + /* FALLTHROUGH */ default: *--bp = 0; /* Ends Loop */ diff --git a/lib/libc/net/ns_ntoa.c b/lib/libc/net/ns_ntoa.c index 0063a8c..8caa554 100644 --- a/lib/libc/net/ns_ntoa.c +++ b/lib/libc/net/ns_ntoa.c @@ -91,7 +91,7 @@ spectHex(p0) case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': *p += ('A' - 'a'); - /* fall into . . . */ + /* FALLTHROUGH */ case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': ok = 1; case '1': case '2': case '3': case '4': case '5': diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 2dcd497..91de8d7 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1741,7 +1741,7 @@ struct re_guts *g; return; } } while (OP(s) != O_QUEST && OP(s) != O_CH); - /* fallthrough */ + /* FALLTHROUGH */ case OBOW: /* things that break a sequence */ case OEOW: case OBOL: diff --git a/lib/libc_r/uthread/uthread_kern.c b/lib/libc_r/uthread/uthread_kern.c index a4cc3c3..2bd855c 100644 --- a/lib/libc_r/uthread/uthread_kern.c +++ b/lib/libc_r/uthread/uthread_kern.c @@ -394,7 +394,7 @@ _thread_kern_scheduler(void) case PS_SELECT_WAIT: /* Return zero file descriptors ready: */ pthread->data.poll_data->nfds = 0; - /* fall through */ + /* FALLTHROUGH */ default: /* * Remove this thread from the waiting queue diff --git a/lib/libipx/ipx_addr.c b/lib/libipx/ipx_addr.c index 30b3f6a..99da440 100644 --- a/lib/libipx/ipx_addr.c +++ b/lib/libipx/ipx_addr.c @@ -169,7 +169,7 @@ Field(buf, out, len) case 'h': case 'H': base16 = 1; - /* fall into */ + /* FALLTHROUGH */ default: *--bp = 0; /* Ends Loop */ diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index a4cc3c3..2bd855c 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/thread/thr_kern.c @@ -394,7 +394,7 @@ _thread_kern_scheduler(void) case PS_SELECT_WAIT: /* Return zero file descriptors ready: */ pthread->data.poll_data->nfds = 0; - /* fall through */ + /* FALLTHROUGH */ default: /* * Remove this thread from the waiting queue diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index a4cc3c3..2bd855c 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -394,7 +394,7 @@ _thread_kern_scheduler(void) case PS_SELECT_WAIT: /* Return zero file descriptors ready: */ pthread->data.poll_data->nfds = 0; - /* fall through */ + /* FALLTHROUGH */ default: /* * Remove this thread from the waiting queue diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c index 55784d7..7d50128 100644 --- a/lib/libutil/login_cap.c +++ b/lib/libutil/login_cap.c @@ -245,7 +245,7 @@ login_getclassbyname(char const *name, const struct passwd *pwd) msg = "%s: no default/fallback class '%s'"; if (cgetent(&lc->lc_cap, login_dbarray, (char*)name) != 0 && r >= 0) break; - /* Fallthru - just return system defaults */ + /* FALLTHROUGH - just return system defaults */ case 0: /* success! */ if ((lc->lc_class = strdup(name)) != NULL) { if (dir) { diff --git a/lib/libutil/property.c b/lib/libutil/property.c index 815ce6c..57383f9 100644 --- a/lib/libutil/property.c +++ b/lib/libutil/property.c @@ -85,7 +85,7 @@ properties_read(int fd) ch = buf[0]; bp = 1; } - /* Fall through deliberately since we already have a character and state == LOOK */ + /* FALLTHROUGH deliberately since we already have a character and state == LOOK */ case LOOK: if (isspace(ch)) -- cgit v1.1