Source-Changes-HG archive

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

[src/trunk]: src/bin/date Use setprogname. Patch by Petri Koistinen.



details:   https://anonhg.NetBSD.org/src/rev/36779dac6310
branches:  trunk
changeset: 515088:36779dac6310
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Sep 16 13:35:52 2001 +0000

description:
Use setprogname. Patch by Petri Koistinen.

diffstat:

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

diffs (26 lines):

diff -r ed2fe5f645bd -r 36779dac6310 bin/date/date.c
--- a/bin/date/date.c   Sun Sep 16 12:58:53 2001 +0000
+++ b/bin/date/date.c   Sun Sep 16 13:35:52 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: date.c,v 1.34 2001/09/13 10:06:40 wiz Exp $ */
+/* $NetBSD: date.c,v 1.35 2001/09/16 13:35:52 wiz 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.34 2001/09/13 10:06:40 wiz Exp $");
+__RCSID("$NetBSD: date.c,v 1.35 2001/09/16 13:35:52 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -81,6 +81,7 @@
        char buf[1024], *format;
        int ch, rflag;
 
+       setprogname(argv[0]);
        (void)setlocale(LC_ALL, "");
 
        rflag = 0;



Home | Main Index | Thread Index | Old Index