=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcsutil.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/rcs/rcsutil.c 2006/05/27 02:58:02 1.11 +++ src/usr.bin/rcs/rcsutil.c 2006/05/27 05:49:14 1.12 @@ -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 * Copyright (c) 2006 Xavier Santolaria @@ -262,27 +262,6 @@ fd = open(rcspath, O_RDONLY); if (strlcpy(out, rcspath, len) >= len) errx(1, "rcs_choosefile: truncation"); - - return (fd); -} - -/* - * 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); }