Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rsh putenv() no longer accepts a const string
details: https://anonhg.NetBSD.org/src/rev/0453894da8c1
branches: trunk
changeset: 757896:0453894da8c1
user: gson <gson%NetBSD.org@localhost>
date: Sat Oct 02 09:24:16 2010 +0000
description:
putenv() no longer accepts a const string
diffstat:
usr.bin/rsh/rsh.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 22df735e2c07 -r 0453894da8c1 usr.bin/rsh/rsh.c
--- a/usr.bin/rsh/rsh.c Sat Oct 02 09:18:57 2010 +0000
+++ b/usr.bin/rsh/rsh.c Sat Oct 02 09:24:16 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rsh.c,v 1.31 2009/01/18 00:42:35 lukem Exp $ */
+/* $NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $ */
/*-
* Copyright (c) 1983, 1990, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)rsh.c 8.4 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: rsh.c,v 1.31 2009/01/18 00:42:35 lukem Exp $");
+__RCSID("$NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $");
#endif
#endif /* not lint */
@@ -135,7 +135,7 @@
if ((loop = getenv("RCMD_LOOP")) && strcmp(loop, "YES") == 0)
warnx("rcmd appears to be looping!");
- putenv("RCMD_LOOP=YES");
+ setenv("RCMD_LOOP", "YES", 1);
# define OPTIONS "468KLdel:np:u:w"
Home |
Main Index |
Thread Index |
Old Index