diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-17 07:37:09 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-17 07:37:09 +0000 |
commit | 160b884359d736d16e9705869212b7fc154f380e (patch) | |
tree | c6a40f2bbc8d7e43fe4f4512cc8b8b0db79775ed /usr.bin/cvs | |
parent | 44ca898c50779cd84ff2bed6cbbd045763b11108 (diff) |
Use ssize_t in appropriate places.
Found by lint.
OK niallo@
Diffstat (limited to 'usr.bin/cvs')
-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 *); |