diff options
author | charnier <charnier@FreeBSD.org> | 2002-08-25 13:30:43 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2002-08-25 13:30:43 +0000 |
commit | aa31b7d1e4fb1585f9c445a653bf78416fb59bab (patch) | |
tree | 0c0dc23f43413d9f4c243f3e11871d151f3f8c55 /usr.sbin/ppp | |
parent | 7dd9d470599f145845572ac1f0d4b621c19c1cdb (diff) | |
download | FreeBSD-src-aa31b7d1e4fb1585f9c445a653bf78416fb59bab.zip FreeBSD-src-aa31b7d1e4fb1585f9c445a653bf78416fb59bab.tar.gz |
Replace various spelling with FALLTHROUGH which is lint()able
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/async.c | 6 | ||||
-rw-r--r-- | usr.sbin/ppp/datalink.c | 16 | ||||
-rw-r--r-- | usr.sbin/ppp/fsm.c | 2 | ||||
-rw-r--r-- | usr.sbin/ppp/prompt.c | 2 | ||||
-rw-r--r-- | usr.sbin/ppp/slcompress.c | 2 |
5 files changed, 15 insertions, 13 deletions
diff --git a/usr.sbin/ppp/async.c b/usr.sbin/ppp/async.c index f28e2f6..0fcf865 100644 --- a/usr.sbin/ppp/async.c +++ b/usr.sbin/ppp/async.c @@ -25,9 +25,11 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD$ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/types.h> #include <string.h> @@ -160,7 +162,7 @@ async_Decode(struct async *async, u_char c) async->mode |= MODE_ESC; break; } - /* Fall into ... */ + /* FALLTHROUGH */ default: if (async->length >= HDLCSIZE) { /* packet is too large, discard it */ diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index 048a21b..a9a05b8 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -267,7 +267,7 @@ datalink_UpdateSet(struct fdescriptor *d, fd_set *r, fd_set *w, fd_set *e, datalink_Up(dl, 1, 1); else break; - /* fall through */ + /* FALLTHROUGH */ case DATALINK_OPENING: if (dl->dial.timer.state != TIMER_RUNNING) { @@ -621,7 +621,7 @@ datalink_NCPUp(struct datalink *dl) /* First link in the bundle */ auth_Select(dl->bundle, dl->peer.authname); bundle_CalculateBandwidth(dl->bundle); - /* fall through */ + /* FALLTHROUGH */ case MP_ADDED: /* We're in multilink mode ! */ dl->physical->link.ccp.fsm.open_mode = OPEN_PASSIVE; /* override */ @@ -756,12 +756,12 @@ datalink_LayerDown(void *v, struct fsm *fp) fsm2initial(&dl->physical->link.ccp.fsm); datalink_NewState(dl, DATALINK_LCP); /* before parent TLD */ (*dl->parent->LayerDown)(dl->parent->object, fp); - /* fall through (just in case) */ + /* FALLTHROUGH (just in case) */ case DATALINK_CBCP: if (!dl->cbcp.required) cbcp_Down(&dl->cbcp); - /* fall through (just in case) */ + /* FALLTHROUGH (just in case) */ case DATALINK_AUTH: timer_Stop(&dl->pap.authtimer); @@ -980,7 +980,7 @@ datalink_Up(struct datalink *dl, int runscripts, int packetmode) case DATALINK_OPENING: if (!dl->script.run && runscripts) dl->script.run = 1; - /* fall through */ + /* FALLTHROUGH */ case DATALINK_DIAL: case DATALINK_LOGIN: @@ -1004,7 +1004,7 @@ datalink_Close(struct datalink *dl, int how) case DATALINK_OPEN: peerid_Init(&dl->peer); fsm2initial(&dl->physical->link.ccp.fsm); - /* fall through */ + /* FALLTHROUGH */ case DATALINK_CBCP: case DATALINK_AUTH: @@ -1030,7 +1030,7 @@ datalink_Down(struct datalink *dl, int how) case DATALINK_OPEN: peerid_Init(&dl->peer); fsm2initial(&dl->physical->link.ccp.fsm); - /* fall through */ + /* FALLTHROUGH */ case DATALINK_CBCP: case DATALINK_AUTH: @@ -1038,7 +1038,7 @@ datalink_Down(struct datalink *dl, int how) fsm2initial(&dl->physical->link.lcp.fsm); if (dl->state == DATALINK_OPENING) return; /* we're doing a callback... */ - /* fall through */ + /* FALLTHROUGH */ default: datalink_ComeDown(dl, how); diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index eea7b7d..685e5f1 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -556,7 +556,7 @@ FsmRecvConfigReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) */ (*fp->fn->LayerStart)(fp); (*fp->parent->LayerStart)(fp->parent->object, fp); - /* Fall through */ + /* FALLTHROUGH */ case ST_OPENED: if (ackaction) diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c index 7f1f94e..0931706 100644 --- a/usr.sbin/ppp/prompt.c +++ b/usr.sbin/ppp/prompt.c @@ -223,7 +223,7 @@ prompt_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) prompt_TtyCommandMode(p); p->nonewline = 0; /* We'll get a prompt because of our status change */ - /* Fall through */ + /* FALLTHROUGH */ default: /* Wait 'till we're in a state we care about */ diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 2995301..5bf45e5 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -317,7 +317,7 @@ found: ntohs(cs->cs_ip.ip_len) == hlen) break; - /* (fall through) */ + /* FALLTHROUGH */ case SPECIAL_I: case SPECIAL_D: |