diff options
| author | guenther <> | 2015-10-01 02:32:07 +0000 |
|---|---|---|
| committer | guenther <> | 2015-10-01 02:32:07 +0000 |
| commit | aed599ac4549b88be4bdafdecb43f3a21971358e (patch) | |
| tree | 6a902f9af0ce8df1ba9e863ca22796acaafb59d0 /src/lib/libc/stdlib | |
| parent | 13c35ef70579a16fe44d3c4652f203fb9d955733 (diff) | |
| download | openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.tar.gz openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.tar.bz2 openbsd-aed599ac4549b88be4bdafdecb43f3a21971358e.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 '')
| -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 | } |
