summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt_long.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-01 02:32:07 +0000
committerguenther <guenther@openbsd.org>2015-10-01 02:32:07 +0000
commit9d9553bd2d73b47a1e6c954c7538bf7cd6b06ea5 (patch)
tree022c8bf1714eee5427f8033ca0d81a992629f7aa /lib/libc/stdlib/getopt_long.c
parentrename the internal functions that do ml_foo ops on classes to hfsc_cl_foo. (diff)
downloadwireguard-openbsd-9d9553bd2d73b47a1e6c954c7538bf7cd6b06ea5.tar.xz
wireguard-openbsd-9d9553bd2d73b47a1e6c954c7538bf7cd6b06ea5.zip
Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In one
case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
Diffstat (limited to 'lib/libc/stdlib/getopt_long.c')
-rw-r--r--lib/libc/stdlib/getopt_long.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c
index fe4565526ac..eb799c31f59 100644
--- a/lib/libc/stdlib/getopt_long.c
+++ b/lib/libc/stdlib/getopt_long.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getopt_long.c,v 1.28 2015/09/19 04:02:21 guenther Exp $ */
+/* $OpenBSD: getopt_long.c,v 1.29 2015/10/01 02:32:07 guenther Exp $ */
/* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */
/*
@@ -149,9 +149,7 @@ permute_args(int panonopt_start, int panonopt_end, int opt_end,
else
pos += nopts;
swap = nargv[pos];
- /* LINTED const cast */
- ((char **) nargv)[pos] = nargv[cstart];
- /* LINTED const cast */
+ ((char **)nargv)[pos] = nargv[cstart];
((char **)nargv)[cstart] = swap;
}
}