diff options
author | harti <harti@FreeBSD.org> | 2005-02-04 13:34:16 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-04 13:34:16 +0000 |
commit | 6861248dfcd7d5c6641f437335516c106f83df33 (patch) | |
tree | 8f4d2441bdfa94ac38f4f284b8ac56d81e8a6fb3 /usr.bin/make/buf.h | |
parent | 7403bf4c90000b970a2aa9da9e5c116a4aac5bb8 (diff) | |
download | FreeBSD-src-6861248dfcd7d5c6641f437335516c106f83df33.zip FreeBSD-src-6861248dfcd7d5c6641f437335516c106f83df33.tar.gz |
None of the users of Buf_Discard used it to get rid of only a part of
the buffer. So replace Buf_Discard by Buf_Clear which just gets rid
of the entire contents.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/buf.h')
-rw-r--r-- | usr.bin/make/buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/buf.h b/usr.bin/make/buf.h index db25f70..9c1df40 100644 --- a/usr.bin/make/buf.h +++ b/usr.bin/make/buf.h @@ -83,7 +83,7 @@ typedef struct Buffer { void Buf_OvAddByte(Buffer *, Byte); void Buf_AddBytes(Buffer *, size_t, const Byte *); Byte *Buf_GetAll(Buffer *, size_t *); -void Buf_Discard(Buffer *, size_t); +void Buf_Clear(Buffer *); size_t Buf_Size(Buffer *); Buffer *Buf_Init(size_t); void Buf_Destroy(Buffer *, Boolean); |