From 4167b89bbf00b58300648b6bc8ecc491aa6a3707 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sun, 9 Nov 2008 08:51:44 +0000 Subject: Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog. oki joris@ --- usr.bin/cvs/rcs.c | 7 ++----- usr.bin/rcs/rcs.c | 7 ++----- 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 * 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 to + * Sets the log message of revision to . */ 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 * 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 to + * Sets the log message of revision to . */ 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); -- cgit v1.2.3