diff options
author | 2006-05-27 05:49:14 +0000 | |
---|---|---|
committer | 2006-05-27 05:49:14 +0000 | |
commit | f3876e23031aac26e0815e725a39330ec5187364 (patch) | |
tree | 7f7ed98775f7489754e95436b47cfcb94a0c12ec /usr.bin/rcs/rcsutil.c | |
parent | pruning (-P) support for both the update and checkout commands; (diff) | |
download | wireguard-openbsd-f3876e23031aac26e0815e725a39330ec5187364.tar.xz wireguard-openbsd-f3876e23031aac26e0815e725a39330ec5187364.zip |
Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),
handling exceptions oddly.
OK joris@
Diffstat (limited to 'usr.bin/rcs/rcsutil.c')
-rw-r--r-- | usr.bin/rcs/rcsutil.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c index dbffca483c3..b8542fa1959 100644 --- a/usr.bin/rcs/rcsutil.c +++ b/usr.bin/rcs/rcsutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsutil.c,v 1.11 2006/05/27 02:58:02 ray Exp $ */ +/* $OpenBSD: rcsutil.c,v 1.12 2006/05/27 05:49:14 ray Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -267,27 +267,6 @@ rcs_choosefile(const char *filename, char *out, size_t len) } /* - * Find the name of an RCS file, given a file name `fname'. If an RCS - * file is found, the name is copied to the `len' sized buffer `out'. - * Returns 0 if RCS file was found, -1 otherwise. - */ -int -rcs_statfile(char *fname, char *out, size_t len, int flags) -{ - int fd; - - fd = rcs_choosefile(fname, out, len); - if (fd == -1 && !(flags & RCS_CREATE)) { - if (strcmp(__progname, "rcsclean") != 0 && - strcmp(__progname, "ci") != 0) - warnx("%s", out); - return (-1); - } - - return (fd); -} - -/* * Allocate an RCSNUM and store in <rev>. */ void |