summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2022-01-04 19:32:16 +0000
committeruwe <uwe@NetBSD.org>2022-01-04 19:32:16 +0000
commit6630fbb8a14e1df1dc285f16970376daab819e73 (patch)
tree2433d63b81b936d9b409ddfc51fd2c7d876b3e90 /lib/libc/stdlib
parent324327d8290c4062d8b22eac501ac8c3a590aff4 (diff)
getopt_long(3): use NULL, not 0, for flag in the example.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt_long.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index 142e91f8355..9eb022df9b2 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getopt_long.3,v 1.20 2018/12/09 20:29:53 christos Exp $
+.\" $NetBSD: getopt_long.3,v 1.21 2022/01/04 19:32:16 uwe Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -167,8 +167,8 @@ int daggerset;
/* options descriptor */
static struct option longopts[] = {
- { "buffy", no_argument, 0, 'b' },
- { "fluoride", required_argument, 0, 'f' },
+ { "buffy", no_argument, NULL, 'b' },
+ { "fluoride", required_argument, NULL, 'f' },
{ "daggerset", no_argument, &daggerset, 1 },
{ NULL, 0, NULL, 0 }
};