diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-10 05:01:37 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-10 05:01:37 +0000 |
commit | 957d1787f9bc2f98d871edd683475f8763d55936 (patch) | |
tree | 122a8478ffd9b35009e7fdf01fcdbfa2e9beb80e /usr.bin/cvs/trigger.c | |
parent | 2a1bccc129e04118f40916019a15c3364bf46eec (diff) |
We have a cvs_buf_puts implementation now, also use cvs_buf_putc instead
of cvs_buf_append where appropiate.
ok joris
Diffstat (limited to 'usr.bin/cvs/trigger.c')
-rw-r--r-- | usr.bin/cvs/trigger.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.bin/cvs/trigger.c b/usr.bin/cvs/trigger.c index 824f1984e11..bcb78b1d401 100644 --- a/usr.bin/cvs/trigger.c +++ b/usr.bin/cvs/trigger.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trigger.c,v 1.9 2008/06/10 04:38:46 tobias Exp $ */ +/* $OpenBSD: trigger.c,v 1.10 2008/06/10 05:01:36 tobias Exp $ */ /* * Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org> * Copyright (c) 2008 Jonathan Armani <dbd@asystant.net> @@ -71,7 +71,7 @@ expand_args(BUF *buf, struct file_info_list *file_info, const char *repo, if (quote) cvs_buf_putc(buf, '"'); if (oldstyle) { - cvs_buf_append(buf, repo, strlen(repo)); + cvs_buf_puts(buf, repo); cvs_buf_putc(buf, ' '); } @@ -82,16 +82,14 @@ expand_args(BUF *buf, struct file_info_list *file_info, const char *repo, * check like this, add only uses loginfo for directories anyway */ if (cvs_cmdop == CVS_OP_ADD) { - cvs_buf_append(buf, "- New directory", - strlen("- New directory")); + cvs_buf_puts(buf, "- New directory"); if (quote) cvs_buf_putc(buf, '"'); return (0); } if (cvs_cmdop == CVS_OP_IMPORT) { - cvs_buf_append(buf, "- Imported sources", - strlen("- Imported sources")); + cvs_buf_puts(buf, "- Imported sources"); if (quote) cvs_buf_putc(buf, '"'); return (0); @@ -155,7 +153,7 @@ expand_args(BUF *buf, struct file_info_list *file_info, const char *repo, } if (val != NULL) - cvs_buf_append(buf, val, strlen(val)); + cvs_buf_puts(buf, val); if (*(++p) != '\0') cvs_buf_putc(buf, ','); |