From d5b90bc41762e7b29e86b98b20b168c4683b80b2 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Mon, 17 Apr 2006 04:50:09 +0000 Subject: Remove pointless stat() call. OK joris@ --- usr.bin/rcs/rcsclean.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr.bin/rcs/rcsclean.c') 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 * 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; -- cgit v1.2.3