diff options
author | 2008-11-09 08:51:43 +0000 | |
---|---|---|
committer | 2008-11-09 08:51:43 +0000 | |
commit | 7a347c71a9840d3a107ce4a16330aa0ea9d51c64 (patch) | |
tree | b7d89f6e6e459b84a6001f77a3497b53cffae623 | |
parent | remove reference to POOL_DIAGNOSTIC which hasn't existed for nearly a year. (diff) | |
download | wireguard-openbsd-7a347c71a9840d3a107ce4a16330aa0ea9d51c64.tar.xz wireguard-openbsd-7a347c71a9840d3a107ce4a16330aa0ea9d51c64.zip |
Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.
oki joris@
-rw-r--r-- | usr.bin/cvs/rcs.c | 7 | ||||
-rw-r--r-- | 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 <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); |