From 17fadf661d157ba2a756646f71fd03369db612f0 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Thu, 1 Oct 2015 02:32:07 +0000 Subject: 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@ --- src/lib/libc/stdlib/getopt_long.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/libc/stdlib/getopt_long.c') 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 @@ -/* $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; } } -- cgit v1.2.3-55-g6feb