diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-03-23 08:50:42 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-03-23 08:50:42 +0000 |
commit | 773d0e6e50114e5b11d6098c4bcc5e8d3b901e04 (patch) | |
tree | 836744a2ed6f61a9ce3bdaffef0d733abf19f5b6 /usr.bin/cvs/buf.c | |
parent | 16169beb365d63140b6de93016940fa6650456a5 (diff) |
- cvs_buf_putc() will never return non-zero
- change cvs_buf_putc() return type to void
OK ray@.
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 5933a9b51ca..74614a18062 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.38 2006/03/20 16:18:13 niallo Exp $ */ +/* $OpenBSD: buf.c,v 1.39 2006/03/23 08:50:41 xsa Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -219,9 +219,8 @@ cvs_buf_set(BUF *b, const void *src, size_t len, size_t off) * cvs_buf_putc() * * Append a single character <c> to the end of the buffer <b>. - * Returns 0 on success. */ -int +void cvs_buf_putc(BUF *b, int c) { u_char *bp; @@ -238,8 +237,6 @@ cvs_buf_putc(BUF *b, int c) } *bp = (u_char)c; b->cb_len++; - - return (0); } /* |