summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-05-09 12:31:28 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-05-09 12:31:28 +0000
commit9c8dad34baf669c19d6ee915ba46e63e88afbf0d (patch)
tree4d9989625a1bfe1d2c9ee8c5c075f935dfad5a7b /usr.bin/rcs
parent8074710c1c46ae43d46c5d47f8a09a24ae9ebe35 (diff)
Remove unused variable leftover from race condition cleanup.
OK xsa@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rcsutil.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index 5a6df338b02..800833276a4 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.9 2006/05/08 21:55:39 ray Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.10 2006/05/09 12:31:27 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -144,7 +144,7 @@ rcs_choosefile(const char *filename, char *out, size_t len)
int fd;
struct stat sb;
char *p, *ext, name[MAXPATHLEN], *next, *ptr, rcsdir[MAXPATHLEN],
- *ret, *suffixes, rcspath[MAXPATHLEN];
+ *suffixes, rcspath[MAXPATHLEN];
/* If -x flag was not given, use default. */
if (rcs_suffixes == NULL)
@@ -209,7 +209,7 @@ rcs_choosefile(const char *filename, char *out, size_t len)
* extension.
*/
suffixes = xstrdup(rcs_suffixes);
- for (ret = NULL, next = suffixes; (ext = strsep(&next, "/")) != NULL;) {
+ for (next = suffixes; (ext = strsep(&next, "/")) != NULL;) {
char fpath[MAXPATHLEN];
if ((p = strrchr(rcspath, ',')) != NULL) {
@@ -251,9 +251,6 @@ rcs_choosefile(const char *filename, char *out, size_t len)
}
/*
- * `ret' is still NULL. No RCS file with any extension exists
- * so we use the first extension.
- *
* `suffixes' should now be NUL separated, so the first
* extension can be read just by reading `suffixes'.
*/