diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-07-30 06:25:44 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-07-30 06:25:44 +0000 |
commit | b925f84d854acdd5c1f81ce5eecba6ec3f9db06d (patch) | |
tree | 634b6df316f7d16c7e244f806060c96343dd1bec /usr.bin | |
parent | 7d410a1a76fce65f9bda822221b4124605406b80 (diff) |
Remove double variable assignment.
From Bret Lambert <bret dot lambert at gmail dot com>
OK krw@ and deraadt@.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rev/rev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c index 420a916415b..3eba3a7c49e 100644 --- a/usr.bin/rev/rev.c +++ b/usr.bin/rev/rev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $ */ +/* $OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $ */ /* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $"; #endif #endif /* not lint */ @@ -89,7 +89,6 @@ main(int argc, char *argv[]) while ((p = fgetln(fp, &len)) != NULL) { if (p[len - 1] == '\n') --len; - t = p + len - 1; for (t = p + len - 1; t >= p; --t) putchar(*t); putchar('\n'); |