diff options
-rw-r--r-- | usr.bin/cvs/buf.c | 6 | ||||
-rw-r--r-- | usr.bin/cvs/buf.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index ded55b4d649..d2d67d3cadb 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.36 2006/03/15 19:48:12 niallo Exp $ */ +/* $OpenBSD: buf.c,v 1.37 2006/03/17 07:37:08 ray Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -293,10 +293,10 @@ cvs_buf_append(BUF *b, const void *data, size_t len) * cvs_buf_fappend() * */ -int +ssize_t cvs_buf_fappend(BUF *b, const char *fmt, ...) { - int ret; + ssize_t ret; char *str; va_list vap; diff --git a/usr.bin/cvs/buf.h b/usr.bin/cvs/buf.h index 3bf945fa935..c5feec02b2a 100644 --- a/usr.bin/cvs/buf.h +++ b/usr.bin/cvs/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.9 2006/02/01 16:28:20 xsa Exp $ */ +/* $OpenBSD: buf.h,v 1.10 2006/03/17 07:37:08 ray Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -54,7 +54,7 @@ void cvs_buf_empty(BUF *); ssize_t cvs_buf_copy(BUF *, size_t, void *, size_t); ssize_t cvs_buf_set(BUF *, const void *, size_t, size_t); ssize_t cvs_buf_append(BUF *, const void *, size_t); -int cvs_buf_fappend(BUF *, const char *, ...) +ssize_t cvs_buf_fappend(BUF *, const char *, ...) __attribute__((format(printf, 2, 3))); int cvs_buf_putc(BUF *, int); size_t cvs_buf_len(BUF *); |