diff options
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 | } |