diff options
author | 2000-12-20 21:09:07 +0000 | |
---|---|---|
committer | 2000-12-20 21:09:07 +0000 | |
commit | 6c2900a4c7e701f815f7cb10c1636115328b5419 (patch) | |
tree | f1394ec21fffb7e1262a3798f9ae25eb83225af5 | |
parent | use arc4random, clear secrets, use readpassphrase in tokeninit; ok millert@ (diff) | |
download | wireguard-openbsd-6c2900a4c7e701f815f7cb10c1636115328b5419.tar.xz wireguard-openbsd-6c2900a4c7e701f815f7cb10c1636115328b5419.zip |
Mention that /* NOTREACHED */ is unncessary following an exit(3) call, where it
is obvious.
-rw-r--r-- | share/man/man9/style.9 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index d73bc5e39c0..8426ed41e02 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: style.9,v 1.9 2000/10/25 15:03:41 aaron Exp $ +.\" $OpenBSD: style.9,v 1.10 2000/12/20 21:09:07 aaron Exp $ .\" .Dd August 19, 1999 .Dt STYLE 9 @@ -262,7 +262,10 @@ call and the switch statement, unless parts of the switch cascade. Elements in a switch statement that cascade should have a FALLTHROUGH comment. Numerical arguments should be checked for accuracy. -Code that cannot be reached should have a NOTREACHED comment. +Code that cannot be reached should have a NOTREACHED comment, except following, +i.e., an +.Xr exit 3 +call, where it is obvious. .Bd -literal -offset 0i while ((ch = getopt(argc, argv, "abn")) != -1) switch (ch) { /* Indent the switch. */ |