Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Add const necessary for clean non-native build.



details:   https://anonhg.NetBSD.org/src/rev/313e8eec068c
branches:  trunk
changeset: 759573:313e8eec068c
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Dec 13 01:48:50 2010 +0000

description:
Add const necessary for clean non-native build.

diffstat:

 usr.bin/make/main.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e63cac619fab -r 313e8eec068c usr.bin/make/main.c
--- a/usr.bin/make/main.c       Mon Dec 13 01:45:38 2010 +0000
+++ b/usr.bin/make/main.c       Mon Dec 13 01:48:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.191 2010/12/09 22:30:16 sjg Exp $   */
+/*     $NetBSD: main.c,v 1.192 2010/12/13 01:48:50 dholland Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.191 2010/12/09 22:30:16 sjg Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.192 2010/12/13 01:48:50 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.191 2010/12/09 22:30:16 sjg Exp $");
+__RCSID("$NetBSD: main.c,v 1.192 2010/12/13 01:48:50 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -769,7 +769,7 @@
        struct stat sb, sa;
        char *p1, *path, *pwd;
        char mdpath[MAXPATHLEN];
-       char *machine = getenv("MACHINE");
+       const char *machine = getenv("MACHINE");
        const char *machine_arch = getenv("MACHINE_ARCH");
        char *syspath = getenv("MAKESYSPATH");
        Lst sysMkPath;                  /* Path of sys.mk */



Home | Main Index | Thread Index | Old Index