Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/patch Print version string to stdout instead of stderr;



details:   https://anonhg.NetBSD.org/src/rev/d8843ebab675
branches:  trunk
changeset: 757903:d8843ebab675
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Oct 02 19:31:14 2010 +0000

description:
Print version string to stdout instead of stderr;
it is user-requested and not an error.

diffstat:

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

diffs (30 lines):

diff -r 2b28363fb6b5 -r d8843ebab675 usr.bin/patch/util.c
--- a/usr.bin/patch/util.c      Sat Oct 02 18:06:47 2010 +0000
+++ b/usr.bin/patch/util.c      Sat Oct 02 19:31:14 2010 +0000
@@ -1,7 +1,7 @@
 /*
  * $OpenBSD: util.c,v 1.32 2006/03/11 19:41:30 otto Exp $
  * $DragonFly: src/usr.bin/patch/util.c,v 1.9 2007/09/29 23:11:10 swildner Exp $
- * $NetBSD: util.c,v 1.25 2010/01/10 01:10:16 joerg Exp $
+ * $NetBSD: util.c,v 1.26 2010/10/02 19:31:14 wiz Exp $
  */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: util.c,v 1.25 2010/01/10 01:10:16 joerg Exp $");
+__RCSID("$NetBSD: util.c,v 1.26 2010/10/02 19:31:14 wiz Exp $");
 
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -418,7 +418,7 @@
 void
 version(void)
 {
-       fprintf(stderr, "Patch version 2.0-12u8-NetBSD\n");
+       printf("Patch version 2.0-12u8-NetBSD\n");
        my_exit(EXIT_SUCCESS);
 }
 



Home | Main Index | Thread Index | Old Index