Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Declare variable only once. Fixes PR 44795.
details: https://anonhg.NetBSD.org/src/rev/9fa137c85b6d
branches: trunk
changeset: 763740:9fa137c85b6d
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Sat Apr 02 07:58:30 2011 +0000
description:
Declare variable only once. Fixes PR 44795.
diffstat:
usr.bin/make/util.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r ab239b96168f -r 9fa137c85b6d usr.bin/make/util.c
--- a/usr.bin/make/util.c Sat Apr 02 07:44:15 2011 +0000
+++ b/usr.bin/make/util.c Sat Apr 02 07:58:30 2011 +0000
@@ -1,15 +1,15 @@
-/* $NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $ */
+/* $NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $ */
/*
* Missing stuff from OS's
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $";
+static char rcsid[] = "$NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $");
+__RCSID("$NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $");
#endif
#endif
@@ -49,7 +49,7 @@
char *p, *q;
for (i = 0; (q = environ[i]); i++) {
- char *p = strchr(q, '=');
+ p = strchr(q, '=');
if (p == NULL)
continue;
if (strncmp(name, q, len = p - q) == 0) {
Home |
Main Index |
Thread Index |
Old Index