Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Constness correction for the getopt(3) funct...
details: https://anonhg.NetBSD.org/src/rev/b3df76345055
branches: trunk
changeset: 340330:b3df76345055
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Sep 01 01:28:17 2015 +0000
description:
Constness correction for the getopt(3) function under REPLACE_GETOPT
Use the __UNCONST() macro, which is used in the other parts for the same
argument nargv, but under the !REPLACE_GETOPT namespace.
diffstat:
lib/libc/stdlib/getopt_long.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9b7931b7975e -r b3df76345055 lib/libc/stdlib/getopt_long.c
--- a/lib/libc/stdlib/getopt_long.c Tue Sep 01 01:17:56 2015 +0000
+++ b/lib/libc/stdlib/getopt_long.c Tue Sep 01 01:28:17 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getopt_long.c,v 1.25 2009/03/20 14:05:54 joerg Exp $ */
+/* $NetBSD: getopt_long.c,v 1.26 2015/09/01 01:28:17 kamil Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: getopt_long.c,v 1.25 2009/03/20 14:05:54 joerg Exp $");
+__RCSID("$NetBSD: getopt_long.c,v 1.26 2015/09/01 01:28:17 kamil Exp $");
#include "namespace.h"
@@ -326,7 +326,7 @@
*/
if (nonopt_end != -1) {
permute_args(nonopt_start, nonopt_end, optind,
- nargv);
+ __UNCONST(nargv));
optind -= nonopt_end - nonopt_start;
}
nonopt_start = nonopt_end = -1;
Home |
Main Index |
Thread Index |
Old Index