On Tue, 3 Oct 2017 13:14:59 -0700
Brandon Williams wrote:
> +void packet_write(const int fd_out, const char *buf, size_t size)
No need for "const" in "const int fd_out", I think. Same comment for the
header file.
> +{
> + if (packet_write_gently(fd_out, buf, size))
> + die_errn
Add a function which can be used to write the contents of an arbitrary
buffer. This makes it easy to build up data in a buffer before writing
the packet instead of formatting the entire contents of the packet using
'packet_write_fmt()'.
Signed-off-by: Brandon Williams
---
pkt-line.c | 6 ++
2 matches
Mail list logo