summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-03-03 08:34:28 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-03-03 08:34:28 +0000
commit7176e37c18e3d6009c9e0a9b6dc7c5dcde0f911e (patch)
tree4ea9f72eb02550a3739dbffccd13b2e771c398ab /usr.bin/rcs
parent9c860108cb4b13cf21d9eac066059b3fe483b26d (diff)
Remove unused variable, from Michael W Bombardieri who also got an ok
from tobias@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rcs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index 0755e6baf03..02968b10032 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.78 2011/07/14 16:38:39 sobrado Exp $ */
+/* $OpenBSD: rcs.c,v 1.79 2012/03/03 08:34:27 nicm Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -363,9 +363,6 @@ rcs_movefile(char *from, char *to, mode_t perm, u_int to_flags)
FILE *src, *dst;
size_t nread, nwritten;
char *buf;
- int ret;
-
- ret = -1;
if (rename(from, to) == 0) {
if (chmod(to, perm) == -1) {
@@ -416,8 +413,6 @@ rcs_movefile(char *from, char *to, mode_t perm, u_int to_flags)
}
}
- ret = 0;
-
(void)unlink(from);
out:
@@ -425,7 +420,7 @@ out:
(void)fclose(dst);
xfree(buf);
- return (ret);
+ return (0);
}
/*