summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt_long.3
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2003-05-29 17:48:49 +0000
committerkleink <kleink@NetBSD.org>2003-05-29 17:48:49 +0000
commit4f95ecd71a7c9b89ccfbfb0dfa1c262516c130a7 (patch)
tree62178db01363108a3d8e533eb06934ac8e7225c3 /lib/libc/stdlib/getopt_long.3
parent85d0052723f72cee8f7a12f9d1030c66776f2711 (diff)
KNF example: NULL vs. 0, space after switch.
Diffstat (limited to 'lib/libc/stdlib/getopt_long.3')
-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 4d69bdc0f95..8995bfe1787 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.12 2003/04/16 13:34:46 wiz Exp $
+.\" $NetBSD: getopt_long.3,v 1.13 2003/05/29 17:48:49 kleink Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -154,12 +154,12 @@ static struct option longopts[] = {
{ "buffy", no_argument, 0, 'b' },
{ "floride", required_argument, 0, 'f' },
{ "daggerset", no_argument, \*[Am]daggerset, 1 },
- { 0, 0, 0, 0 }
+ { NULL, 0, NULL, 0 }
};
bflag = 0;
while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
- switch(ch) {
+ switch (ch) {
case 'b':
bflag = 1;
break;