diff options
author | guenther <> | 2015-10-01 02:32:07 +0000 |
---|---|---|
committer | guenther <> | 2015-10-01 02:32:07 +0000 |
commit | 17fadf661d157ba2a756646f71fd03369db612f0 (patch) | |
tree | 6a902f9af0ce8df1ba9e863ca22796acaafb59d0 /src/lib/libc/stdlib/getopt_long.c | |
parent | 7d6f4a12ac5b7dc7f80591c2e74ac77a6f543194 (diff) | |
download | openbsd-17fadf661d157ba2a756646f71fd03369db612f0.tar.gz openbsd-17fadf661d157ba2a756646f71fd03369db612f0.tar.bz2 openbsd-17fadf661d157ba2a756646f71fd03369db612f0.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 'src/lib/libc/stdlib/getopt_long.c')
-rw-r--r-- | src/lib/libc/stdlib/getopt_long.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.c b/src/lib/libc/stdlib/getopt_long.c index fe4565526a..eb799c31f5 100644 --- a/src/lib/libc/stdlib/getopt_long.c +++ b/src/lib/libc/stdlib/getopt_long.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getopt_long.c,v 1.28 2015/09/19 04:02:21 guenther Exp $ */ | 1 | /* $OpenBSD: getopt_long.c,v 1.29 2015/10/01 02:32:07 guenther Exp $ */ |
2 | /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ | 2 | /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -149,9 +149,7 @@ permute_args(int panonopt_start, int panonopt_end, int opt_end, | |||
149 | else | 149 | else |
150 | pos += nopts; | 150 | pos += nopts; |
151 | swap = nargv[pos]; | 151 | swap = nargv[pos]; |
152 | /* LINTED const cast */ | 152 | ((char **)nargv)[pos] = nargv[cstart]; |
153 | ((char **) nargv)[pos] = nargv[cstart]; | ||
154 | /* LINTED const cast */ | ||
155 | ((char **)nargv)[cstart] = swap; | 153 | ((char **)nargv)[cstart] = swap; |
156 | } | 154 | } |
157 | } | 155 | } |