diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-08-02 03:28:51 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-08-02 03:28:51 +0000 |
commit | e557c339cdc3678c69db3ff3bba215d5ba737ce1 (patch) | |
tree | eaed26cc13f6a823e199a008d19950afd5ba4fdc /usr.bin/rcs/buf.h | |
parent | 1801a36e7d92e0d3d516ebc46bcd1d170892056a (diff) |
rcs_buf_set(), rcs_buf_append, and rcs_buf_fappend should not return
ssize_t. The return values aren't usually checked anyway.
Also remove unnecessary casts and improve type usage.
OK xsa@
Diffstat (limited to 'usr.bin/rcs/buf.h')
-rw-r--r-- | usr.bin/rcs/buf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rcs/buf.h b/usr.bin/rcs/buf.h index 197118441fa..5e2ffc9224e 100644 --- a/usr.bin/rcs/buf.h +++ b/usr.bin/rcs/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.4 2006/07/08 09:25:44 ray Exp $ */ +/* $OpenBSD: buf.h,v 1.5 2006/08/02 03:28:50 ray Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -49,9 +49,9 @@ void rcs_buf_free(BUF *); void *rcs_buf_release(BUF *); u_char rcs_buf_getc(BUF *, size_t); void rcs_buf_empty(BUF *); -ssize_t rcs_buf_set(BUF *, const void *, size_t, size_t); -ssize_t rcs_buf_append(BUF *, const void *, size_t); -ssize_t rcs_buf_fappend(BUF *, const char *, ...) +size_t rcs_buf_set(BUF *, const void *, size_t, size_t); +size_t rcs_buf_append(BUF *, const void *, size_t); +size_t rcs_buf_fappend(BUF *, const char *, ...) __attribute__((format(printf, 2, 3))); void rcs_buf_putc(BUF *, int); size_t rcs_buf_len(BUF *); |