diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-16 04:04:58 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-16 04:04:58 +0000 |
commit | c92034840d8dec600a825fc03316c2fb723f665c (patch) | |
tree | 9173e3acb21cf0eb72e80d090b0e3d7bee6411c9 /usr.bin | |
parent | 2f3b113bf98f757cf799839e4ec195a00579a2be (diff) |
Follow exit() with /* NOTREACHED*/ for lint.
``OK niallo@'' niallo@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/ci.c | 4 | ||||
-rw-r--r-- | usr.bin/rcs/co.c | 3 | ||||
-rw-r--r-- | usr.bin/rcs/ident.c | 3 | ||||
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 3 | ||||
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 3 | ||||
-rw-r--r-- | usr.bin/rcs/rcsmerge.c | 3 | ||||
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 5 | ||||
-rw-r--r-- | usr.bin/rcs/rlog.c | 3 |
8 files changed, 19 insertions, 8 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index c5939a003e5..f5278cb0e70 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.120 2006/03/15 20:57:14 joris Exp $ */ +/* $OpenBSD: ci.c,v 1.121 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -131,6 +131,7 @@ checkin_main(int argc, char **argv) case 'h': (usage)(); exit(0); + /* NOTREACHED */ case 'I': rcs_set_rev(rcs_optarg, &pb.newrev); pb.flags |= INTERACTIVE; @@ -199,6 +200,7 @@ checkin_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'w': pb.author = xstrdup(rcs_optarg); break; diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 3700c99f60e..3313b1d1f5c 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.61 2006/03/16 04:01:46 ray Exp $ */ +/* $OpenBSD: co.c,v 1.62 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -111,6 +111,7 @@ checkout_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'w': /* if no argument, assume current user */ if (rcs_optarg == NULL) { diff --git a/usr.bin/rcs/ident.c b/usr.bin/rcs/ident.c index 7a6bab9c52e..a96f52f18d8 100644 --- a/usr.bin/rcs/ident.c +++ b/usr.bin/rcs/ident.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ident.c,v 1.12 2006/03/06 09:41:53 deraadt Exp $ */ +/* $OpenBSD: ident.c,v 1.13 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -50,6 +50,7 @@ ident_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ default: (usage)(); exit(1); diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c index abb2a3f3b15..072a6da1ee8 100644 --- a/usr.bin/rcs/rcsclean.c +++ b/usr.bin/rcs/rcsclean.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsclean.c,v 1.25 2006/03/15 05:05:36 deraadt Exp $ */ +/* $OpenBSD: rcsclean.c,v 1.26 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -78,6 +78,7 @@ rcsclean_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'x': rcs_suffixes = rcs_optarg; break; diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index e79a0f52163..3bb100b8244 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.38 2006/03/15 21:20:57 niallo Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.39 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -91,6 +91,7 @@ rcsdiff_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'x': rcs_suffixes = rcs_optarg; break; diff --git a/usr.bin/rcs/rcsmerge.c b/usr.bin/rcs/rcsmerge.c index 31a53805553..830cb848121 100644 --- a/usr.bin/rcs/rcsmerge.c +++ b/usr.bin/rcs/rcsmerge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsmerge.c,v 1.20 2006/03/14 15:59:06 xsa Exp $ */ +/* $OpenBSD: rcsmerge.c,v 1.21 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -79,6 +79,7 @@ rcsmerge_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'x': rcs_suffixes = rcs_optarg; break; diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 9bcc606b20f..ec37158f596 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.75 2006/03/16 03:51:18 ray Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.76 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -430,6 +430,7 @@ main(int argc, char **argv) } exit(ret); + /* NOTREACHED */ } @@ -487,6 +488,7 @@ rcs_main(int argc, char **argv) case 'h': (usage)(); exit(0); + /* NOTREACHED */ case 'i': flags |= RCS_CREATE; rcsflags |= RCS_CREATE; @@ -536,6 +538,7 @@ rcs_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'x': rcs_suffixes = rcs_optarg; break; diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index 9a1494257e2..819a497bbfd 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.28 2006/03/08 12:34:53 xsa Exp $ */ +/* $OpenBSD: rlog.c,v 1.29 2006/03/16 04:04:57 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -96,6 +96,7 @@ rlog_main(int argc, char **argv) case 'V': printf("%s\n", rcs_version); exit(0); + /* NOTREACHED */ case 'w': wflag = 1; wlist = rcs_optarg; |