Browse Source

Follow style(9) and drop lint /* NOTREACHED */ annotations from

the examples.
Diff from Juuso Lapinlampi < wub () partyvan ! eu >, thanks!
ok schwarze@
OPENBSD_5_9
tb 8 years ago
parent
commit
d5584793c3
2 changed files with 4 additions and 6 deletions
  1. +2
    -3
      src/lib/libc/stdlib/getopt.3
  2. +2
    -3
      src/lib/libc/stdlib/getopt_long.3

+ 2
- 3
src/lib/libc/stdlib/getopt.3 View File

@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: getopt.3,v 1.45 2015/11/24 09:03:16 bentley Exp $
.\" $OpenBSD: getopt.3,v 1.46 2016/01/04 19:43:13 tb Exp $
.\"
.Dd $Mdocdate: November 24 2015 $
.Dd $Mdocdate: January 4 2016 $
.Dt GETOPT 3
.Os
.Sh NAME
@ -183,7 +183,6 @@ while ((ch = getopt(argc, argv, "bf:")) != -1) {
break;
default:
usage();
/* NOTREACHED */
}
}
argc -= optind;


+ 2
- 3
src/lib/libc/stdlib/getopt_long.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: getopt_long.3,v 1.20 2013/06/05 03:39:23 tedu Exp $
.\" $OpenBSD: getopt_long.3,v 1.21 2016/01/04 19:43:13 tb Exp $
.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
@ -30,7 +30,7 @@
.\"
.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
.\"
.Dd $Mdocdate: June 5 2013 $
.Dd $Mdocdate: January 4 2016 $
.Dt GETOPT_LONG 3
.Os
.Sh NAME
@ -420,7 +420,6 @@ while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
break;
default:
usage();
/* NOTREACHED */
}
argc -= optind;
argv += optind;


Loading…
Cancel
Save