Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/deroff Kill self assignment
details: https://anonhg.NetBSD.org/src/rev/c4360fec250e
branches: trunk
changeset: 765326:c4360fec250e
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 12:19:11 2011 +0000
description:
Kill self assignment
diffstat:
usr.bin/deroff/deroff.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r aeb2e10fde85 -r c4360fec250e usr.bin/deroff/deroff.c
--- a/usr.bin/deroff/deroff.c Tue May 24 12:18:03 2011 +0000
+++ b/usr.bin/deroff/deroff.c Tue May 24 12:19:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: deroff.c,v 1.7 2009/08/07 14:05:58 wiz Exp $ */
+/* $NetBSD: deroff.c,v 1.8 2011/05/24 12:19:11 joerg Exp $ */
/* taken from: OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp */
@@ -74,7 +74,7 @@
#if 0
static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$NetBSD: deroff.c,v 1.7 2009/08/07 14:05:58 wiz Exp $";
+static const char rcsid[] = "$NetBSD: deroff.c,v 1.8 2011/05/24 12:19:11 joerg Exp $";
#endif
#endif /* not lint */
@@ -998,7 +998,7 @@
*/
if (((np - cp) > constant) &&
(inquote || (chars[(unsigned char)cp[0]] == LETTER))) {
- for (cp = cp; cp < np; cp++)
+ for (; cp < np; cp++)
putchar(*cp);
last = np[-1];
found++;
Home |
Main Index |
Thread Index |
Old Index