diff options
author | 2005-10-11 01:23:41 +0000 | |
---|---|---|
committer | 2005-10-11 01:23:41 +0000 | |
commit | 2fe637cb0bbda731e0b8fe03052750949216dfbf (patch) | |
tree | bb45cab4e901be328633f90a50c89a02358a856e /lib/libc/stdlib/getopt_long.3 | |
parent | A while back, undo records were moved from the BUFFER struct to MGWIN. (diff) | |
download | wireguard-openbsd-2fe637cb0bbda731e0b8fe03052750949216dfbf.tar.xz wireguard-openbsd-2fe637cb0bbda731e0b8fe03052750949216dfbf.zip |
tidy up examples
- use err() for error handling
- add lint hints
- spacing nits and missing braces
ok otto
Diffstat (limited to 'lib/libc/stdlib/getopt_long.3')
-rw-r--r-- | lib/libc/stdlib/getopt_long.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3 index 7899499cf7c..bf5ba22ece5 100644 --- a/lib/libc/stdlib/getopt_long.3 +++ b/lib/libc/stdlib/getopt_long.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getopt_long.3,v 1.11 2005/07/26 04:17:44 jaredy Exp $ +.\" $OpenBSD: getopt_long.3,v 1.12 2005/10/11 01:23:41 jaredy Exp $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 @@ -223,14 +223,14 @@ while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1) err(1, "unable to open %s", optarg); break; case 0: - if (daggerset) { - fprintf(stderr,"Buffy will use her dagger to " + if (daggerset) + fprintf(stderr, "Buffy will use her dagger to " "apply fluoride to dracula's teeth\en"); - } break; default: usage(); -} + /* NOTREACHED */ + } argc -= optind; argv += optind; .Ed |