summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-11-09 08:51:44 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-11-09 08:51:44 +0000
commit4167b89bbf00b58300648b6bc8ecc491aa6a3707 (patch)
treecc918d2f3ad27d5510c034e2773134cb1be9b8b1
parent2705c94bbafcfd3d24824cbedf924b865acd1518 (diff)
Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.
oki joris@
-rw-r--r--usr.bin/cvs/rcs.c7
-rw-r--r--usr.bin/rcs/rcs.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 752e0cd0e08..afc7c25cafb 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.281 2008/09/17 06:47:57 reyk Exp $ */
+/* $OpenBSD: rcs.c,v 1.282 2008/11/09 08:51:43 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2539,15 +2539,12 @@ rcs_deltatext_set(RCSFILE *rfp, RCSNUM *rev, BUF *bp)
/*
* rcs_rev_setlog()
*
- * Sets the log message of revision <rev> to <logtext>
+ * Sets the log message of revision <rev> to <logtext>.
*/
int
rcs_rev_setlog(RCSFILE *rfp, RCSNUM *rev, const char *logtext)
{
struct rcs_delta *rdp;
- char buf[CVS_REV_BUFSZ];
-
- rcsnum_tostr(rev, buf, sizeof(buf));
if ((rdp = rcs_findrev(rfp, rev)) == NULL)
return (-1);
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index 61925b1f5d0..ca97a99f81d 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.50 2008/11/08 11:48:49 tobias Exp $ */
+/* $OpenBSD: rcs.c,v 1.51 2008/11/09 08:51:43 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2902,15 +2902,12 @@ rcs_deltatext_set(RCSFILE *rfp, RCSNUM *rev, BUF *bp)
/*
* rcs_rev_setlog()
*
- * Sets the log message of revision <rev> to <logtext>
+ * Sets the log message of revision <rev> to <logtext>.
*/
int
rcs_rev_setlog(RCSFILE *rfp, RCSNUM *rev, const char *logtext)
{
struct rcs_delta *rdp;
- char buf[RCS_REV_BUFSZ];
-
- rcsnum_tostr(rev, buf, sizeof(buf));
if ((rdp = rcs_findrev(rfp, rev)) == NULL)
return (-1);