Source-Changes-HG archive

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

[src/trunk]: src/gnu/usr.bin/rcs/rcsdiff Allow -L on both files, not only one.



details:   https://anonhg.NetBSD.org/src/rev/d1501123d88e
branches:  trunk
changeset: 474826:d1501123d88e
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Thu Jul 22 01:48:09 1999 +0000

description:
Allow -L on both files, not only one.

Reported in PR 1947 by Niklas Hallqvist <niklas%filippa.appli.se@localhost> and
also fed back to the GNU RCS maintainers.

diffstat:

 gnu/usr.bin/rcs/rcsdiff/rcsdiff.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 18d1bbbb774d -r d1501123d88e gnu/usr.bin/rcs/rcsdiff/rcsdiff.c
--- a/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c Thu Jul 22 01:17:41 1999 +0000
+++ b/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c Thu Jul 22 01:48:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcsdiff.c,v 1.4 1996/10/15 07:00:40 veego Exp $        */
+/*     $NetBSD: rcsdiff.c,v 1.5 1999/07/22 01:48:09 hubertf Exp $      */
 
 /* Compare RCS revisions.  */
 
@@ -31,6 +31,12 @@
 
 /*
  * $Log: rcsdiff.c,v $
+ * Revision 1.5  1999/07/22 01:48:09  hubertf
+ * Allow -L on both files, not only one.
+ *
+ * Reported in PR 1947 by Niklas Hallqvist <niklas%filippa.appli.se@localhost> and
+ * also fed back to the GNU RCS maintainers.
+ *
  * Revision 1.4  1996/10/15 07:00:40  veego
  * Merge rcs 5.7.
  *
@@ -221,7 +227,7 @@
                    /* fall into */
            case 'C': case 'F': case 'I': case 'L': case 'W':
 #if DIFF_L
-                   if (c == 'L'  &&  ++file_labels == 2)
+                   if (c == 'L'  &&  file_labels++ == 2)
                        faterror("too many -L options");
 #endif
                    *dcp++ = c;



Home | Main Index | Thread Index | Old Index