diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-06-10 01:00:36 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-06-10 01:00:36 +0000 |
commit | 9871af5b3959da6fb3438ea15e89bd35368b5ddf (patch) | |
tree | c333bfc469513312bd0c2809225fe699c694fb17 /usr.bin/cvs/buf.c | |
parent | 06b9f18cd5ed2ebd5b5b5b7837380ee2a5b8f116 (diff) |
New trigger framework that allows us to run the required scripts
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.
This enables the use of log_accum2 and all that other nice stuff we like.
This was mostly written by Jonathan Armani with help from tobias@ and myself.
ok tobias@
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 40133545593..91064edc182 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.71 2008/03/09 01:02:38 tobias Exp $ */ +/* $OpenBSD: buf.c,v 1.72 2008/06/10 01:00:34 joris Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -177,6 +177,17 @@ cvs_buf_putc(BUF *b, int c) } /* + * cvs_buf_puts() + * + * Wrapper function for constant strings to cvs_buf_append. + */ +void +cvs_buf_puts(BUF *b, const char *str) +{ + cvs_buf_append(b, str, strlen(str)); +} + +/* * cvs_buf_getc() * * Return u_char at buffer position <pos>. |