diff options
author | 2012-03-03 08:34:27 +0000 | |
---|---|---|
committer | 2012-03-03 08:34:27 +0000 | |
commit | 05f23e4efbbd22400f10316a8a3f309843e989fa (patch) | |
tree | c609093109ce0a3271d07faaaa628ece05f54ad0 | |
parent | Add move-pane command (like join-pane but allows the same window). Also (diff) | |
download | wireguard-openbsd-05f23e4efbbd22400f10316a8a3f309843e989fa.tar.xz wireguard-openbsd-05f23e4efbbd22400f10316a8a3f309843e989fa.zip |
Remove unused variable, from Michael W Bombardieri who also got an ok
from tobias@.
-rw-r--r-- | usr.bin/rcs/rcs.c | 9 |
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); } /* |