summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt_long.3
diff options
context:
space:
mode:
authorjaredy <>2005-10-11 01:23:41 +0000
committerjaredy <>2005-10-11 01:23:41 +0000
commite1d1b24354f52fc5c2530e9ea0bb3b597ad92fc5 (patch)
tree95ce29f3d0d95146fb733032126b399636d5c963 /src/lib/libc/stdlib/getopt_long.3
parent532c08f68e843a46a28fff0ae07e92866af2da42 (diff)
downloadopenbsd-e1d1b24354f52fc5c2530e9ea0bb3b597ad92fc5.tar.gz
openbsd-e1d1b24354f52fc5c2530e9ea0bb3b597ad92fc5.tar.bz2
openbsd-e1d1b24354f52fc5c2530e9ea0bb3b597ad92fc5.zip
tidy up examples
- use err() for error handling - add lint hints - spacing nits and missing braces ok otto
Diffstat (limited to 'src/lib/libc/stdlib/getopt_long.3')
-rw-r--r--src/lib/libc/stdlib/getopt_long.310
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3
index 7899499cf7..bf5ba22ece 100644
--- a/src/lib/libc/stdlib/getopt_long.3
+++ b/src/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getopt_long.3,v 1.11 2005/07/26 04:17:44 jaredy Exp $ 1.\" $OpenBSD: getopt_long.3,v 1.12 2005/10/11 01:23:41 jaredy Exp $
2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ 2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1988, 1991, 1993 4.\" Copyright (c) 1988, 1991, 1993
@@ -223,14 +223,14 @@ while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
223 err(1, "unable to open %s", optarg); 223 err(1, "unable to open %s", optarg);
224 break; 224 break;
225 case 0: 225 case 0:
226 if (daggerset) { 226 if (daggerset)
227 fprintf(stderr,"Buffy will use her dagger to " 227 fprintf(stderr, "Buffy will use her dagger to "
228 "apply fluoride to dracula's teeth\en"); 228 "apply fluoride to dracula's teeth\en");
229 }
230 break; 229 break;
231 default: 230 default:
232 usage(); 231 usage();
233} 232 /* NOTREACHED */
233 }
234argc -= optind; 234argc -= optind;
235argv += optind; 235argv += optind;
236.Ed 236.Ed