summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c13
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>.