Module Name:    src
Committed By:   wiz
Date:           Sat Oct  2 19:31:14 UTC 2010

Modified Files:
        src/usr.bin/patch: util.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/patch/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/patch/util.c
diff -u src/usr.bin/patch/util.c:1.25 src/usr.bin/patch/util.c:1.26
--- src/usr.bin/patch/util.c:1.25	Sun Jan 10 01:10:16 2010
+++ src/usr.bin/patch/util.c	Sat Oct  2 19:31:14 2010
@@ -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);
 }
 

Reply via email to