1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.

oki joris@
This commit is contained in:
tobias 2008-11-09 08:51:43 +00:00
parent dbbe37168b
commit 7a347c71a9
2 changed files with 4 additions and 10 deletions

View File

@ -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);

View File

@ -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);