summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-04-10 08:08:01 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-04-10 08:08:01 +0000
commit6931a528d08a8c9f0cb64dc3dd4f8a2492de405b (patch)
tree33826c452f4d1e1fa9123732d37e88a3a0baab59 /usr.bin/cvs/rcs.c
parent5f66dcea266683bbff00705f64acceee5113f98c (diff)
change rcs_kwexp_set() return type to void and simplify its use. OK niallo@.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 90497032d26..97ccfdefa76 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.161 2006/04/05 01:38:55 ray Exp $ */
+/* $OpenBSD: rcs.c,v 1.162 2006/04/10 08:08:00 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1470,16 +1470,15 @@ rcs_findrev(RCSFILE *rfp, RCSNUM *rev)
* rcs_kwexp_set()
*
* Set the keyword expansion mode to use on the RCS file <file> to <mode>.
- * Returns 0 on success, or -1 on failure.
*/
-int
+void
rcs_kwexp_set(RCSFILE *file, int mode)
{
int i;
char *tmp, buf[8] = "";
if (RCS_KWEXP_INVAL(mode))
- return (-1);
+ return;
i = 0;
if (mode == RCS_KWEXP_NONE)
@@ -1501,8 +1500,6 @@ rcs_kwexp_set(RCSFILE *file, int mode)
file->rf_expand = tmp;
/* not synced anymore */
file->rf_flags &= ~RCS_SYNCED;
-
- return (0);
}
/*