Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[.joined/src/trunk]: .joined/src/lib/libc/stdlib getopt_long(3): use NULL, no...



details:   https://anonhg.NetBSD.org/.joined/src/rev/cdb8b57af165
branches:  trunk
changeset: 359425:cdb8b57af165
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Jan 04 19:32:16 2022 +0000

description:
getopt_long(3): use NULL, not 0, for flag in the example.

diffstat:

 lib/libc/stdlib/getopt_long.3 |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 37715e1220bb -r cdb8b57af165 lib/libc/stdlib/getopt_long.3
--- a/lib/libc/stdlib/getopt_long.3     Tue Jan 04 14:32:21 2022 +0000
+++ b/lib/libc/stdlib/getopt_long.3     Tue Jan 04 19:32:16 2022 +0000
@@ -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 @@
 
 /* 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 }
 };



Home | Main Index | Thread Index | Old Index