Source-Changes-HG archive

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

[src/trunk]: src/bin/date Make this slightly more portable by using putenv().



details:   https://anonhg.NetBSD.org/src/rev/ba75e9833110
branches:  trunk
changeset: 480118:ba75e9833110
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jan 04 14:15:09 2000 +0000

description:
Make this slightly more portable by using putenv().

diffstat:

 bin/date/date.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fd905c0d1f9d -r ba75e9833110 bin/date/date.c
--- a/bin/date/date.c   Tue Jan 04 13:51:55 2000 +0000
+++ b/bin/date/date.c   Tue Jan 04 14:15:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: date.c,v 1.28 1998/11/04 12:51:00 christos Exp $       */
+/*     $NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $ */
 
 /*
  * Copyright (c) 1985, 1987, 1988, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)date.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: date.c,v 1.28 1998/11/04 12:51:00 christos Exp $");
+__RCSID("$NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $");
 #endif
 #endif /* not lint */
 
@@ -98,7 +98,7 @@
                        tval = atol(optarg);
                        break;
                case 'u':               /* do everything in UTC */
-                       (void)setenv("TZ", "UTC", 1);
+                       (void)putenv("TZ=UTC0");
                        break;
                default:
                        usage();



Home | Main Index | Thread Index | Old Index