summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsclean.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-17 04:50:09 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-17 04:50:09 +0000
commitd5b90bc41762e7b29e86b98b20b168c4683b80b2 (patch)
treece0ff183f29ac0403920ada7df9caba8fa489222 /usr.bin/rcs/rcsclean.c
parent64372536ba743728274c93af0efbea8b2e30f6ac (diff)
Remove pointless stat() call.
OK joris@
Diffstat (limited to 'usr.bin/rcs/rcsclean.c')
-rw-r--r--usr.bin/rcs/rcsclean.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c
index 0a33c47eca7..b29407a9865 100644
--- a/usr.bin/rcs/rcsclean.c
+++ b/usr.bin/rcs/rcsclean.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsclean.c,v 1.35 2006/04/14 16:28:24 ray Exp $ */
+/* $OpenBSD: rcsclean.c,v 1.36 2006/04/17 04:50:08 ray Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -133,16 +133,12 @@ rcsclean_file(char *fname, const char *rev_str)
char fpath[MAXPATHLEN], numb[64];
RCSNUM *rev;
BUF *b1, *b2;
- struct stat st;
time_t rcs_mtime = -1;
b1 = b2 = NULL;
file = NULL;
rev = NULL;
- if (stat(fname, &st) == -1)
- goto out;
-
if (rcs_statfile(fname, fpath, sizeof(fpath)) < 0)
goto out;