Home GnuPG
Diffusion GnuPG a250f73783c0

common/iobuf.c: Improve iobuf_peek.
a250f73783c0Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common/iobuf.c: Improve iobuf_peek.

* common/iobuf.c (underflow): Take additional parameter
clear_pending_eof.  If not set, don't clear a pending eof when
returning EOF.  Update callers.
(iobuf_peek): Fill the internal buffer, if needed, to be able to
better satisfy any request.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 12 2015, 10:57 PM
Parents
rGc7ad36eb0d7f: common/iobuf.c: When requested, fill the buffer even if it is not empty.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGa250f73783c0: common/iobuf.c: Improve iobuf_peek. (authored by Neal H. Walfield <neal@g10code.com>).Aug 20 2015, 2:16 PM