summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-27 15:26:13 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-27 15:26:13 +0000
commit7e4923781bbeec0a41f3fdb4310dad46bf804959 (patch)
treeca6fd10d3039d0a9a05e9c10f117aa7fe9d326ee /usr.bin/cvs/rcs.c
parent9816d820572fc80dbd0398873da42ec03b4ce805 (diff)
rcs_comment_set() will never return non-zero; change its return type to void.
OK ray@.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index b229b78b9e6..3daa98b6529 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.149 2006/03/27 07:14:13 xsa Exp $ */
+/* $OpenBSD: rcs.c,v 1.150 2006/03/27 15:26:12 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1038,9 +1038,8 @@ rcs_comment_get(RCSFILE *file)
* rcs_comment_set()
*
* Set the comment leader for the RCS file <file>.
- * Returns 0 on success, or -1 on failure.
*/
-int
+void
rcs_comment_set(RCSFILE *file, const char *comment)
{
char *tmp;
@@ -1050,8 +1049,6 @@ rcs_comment_set(RCSFILE *file, const char *comment)
xfree(file->rf_comment);
file->rf_comment = tmp;
file->rf_flags &= ~RCS_SYNCED;
-
- return (0);
}
/*