summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2005-09-29 20:47:35 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2005-09-29 20:47:35 +0000
commitb10d664578370fb1c03c149bb75eb4c55ff27791 (patch)
treeb55969a640e06010b9b268a5c4351c764b2b93bf /usr.bin/cvs
parentda070ab660bb3ade14cf72e1a0b9389ec6b27871 (diff)
return -1 instead of NULL in rcs_sym_{add,remove}. ok joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/rcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 126053901f1..1d39bd35e82 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.68 2005/09/29 20:44:58 moritz Exp $ */
+/* $OpenBSD: rcs.c,v 1.69 2005/09/29 20:47:34 moritz Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -707,7 +707,7 @@ rcs_sym_add(RCSFILE *rfp, const char *sym, RCSNUM *snum)
if (!rcs_sym_check(sym)) {
rcs_errno = RCS_ERR_BADSYM;
- return (NULL);
+ return (-1);
}
/* first look for duplication */
@@ -760,7 +760,7 @@ rcs_sym_remove(RCSFILE *file, const char *sym)
if (!rcs_sym_check(sym)) {
rcs_errno = RCS_ERR_BADSYM;
- return (NULL);
+ return (-1);
}
TAILQ_FOREACH(symp, &(file->rf_symbols), rs_list)