diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-27 18:22:51 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-27 18:22:51 +0000 |
commit | 874116adb5b95052aefde16aaffc0c83a0d8b948 (patch) | |
tree | 397f1eb1c308b8297462ebf9bc4ef8262077bbba /usr.bin/rcs | |
parent | b2211c0277366f1c3e7ea21cf16474dc6ef07267 (diff) |
- remove unused variables
from Michael W. Bombardieri
ok chl@ nicm@
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcs.c | 5 | ||||
-rw-r--r-- | usr.bin/rcs/rcsparse.c | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c index afe14aeb6e6..6a69cb31f5e 100644 --- a/usr.bin/rcs/rcs.c +++ b/usr.bin/rcs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.72 2010/12/10 09:48:43 jasper Exp $ */ +/* $OpenBSD: rcs.c,v 1.73 2011/03/27 18:22:50 jasper Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -1195,7 +1195,7 @@ rcs_delta_stats(struct rcs_delta *rdp, int *ladded, int *lremoved) { struct rcs_lines *plines; struct rcs_line *lp; - int added, i, lineno, nbln, removed; + int added, i, nbln, removed; char op, *ep; u_char tmp; @@ -1214,7 +1214,6 @@ rcs_delta_stats(struct rcs_delta *rdp, int *ladded, int *lremoved) /* NUL-terminate line buffer for strtol() safety. */ tmp = lp->l_line[lp->l_len - 1]; lp->l_line[lp->l_len - 1] = '\0'; - lineno = (int)strtol((lp->l_line + 1), &ep, 10); ep++; nbln = (int)strtol(ep, &ep, 10); /* Restore the last byte of the buffer */ diff --git a/usr.bin/rcs/rcsparse.c b/usr.bin/rcs/rcsparse.c index b8a8b42fb21..0a89c7a546d 100644 --- a/usr.bin/rcs/rcsparse.c +++ b/usr.bin/rcs/rcsparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsparse.c,v 1.4 2010/10/20 19:53:53 tobias Exp $ */ +/* $OpenBSD: rcsparse.c,v 1.5 2011/03/27 18:22:50 jasper Exp $ */ /* * Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org> * @@ -1137,7 +1137,6 @@ end: static int rcsparse_deltatext(RCSFILE *rfp) { - struct rcs_pdata *pdp; int ret; if (rfp->rf_flags & PARSED_DELTATEXTS) @@ -1147,8 +1146,6 @@ rcsparse_deltatext(RCSFILE *rfp) if ((ret = rcsparse_desc(rfp))) return (ret); - pdp = (struct rcs_pdata *)rfp->rf_pdata; - if (rcsparse(rfp, sec_deltatext)) return (-1); |