chiark / gitweb /
buffers: Introduce buf_remaining_space
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Sep 2014 23:03:20 +0000 (00:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Sep 2014 23:07:22 +0000 (00:07 +0100)
commit927950400bd569326c3babf4e29038523fa464a6
tree501190e4f0ff9880cc6f4631e256f799f3751c80
parent5540bab74ca1a39639a098d15e87daf45d83b7ec
buffers: Introduce buf_remaining_space

This calculates the remaining space available to append to a buffer.

Use it in tun_afterpoll and udp_afterpoll (no functional change),
slip_unstuff and buf_append (fixes what appear to be latent bugs).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
slip.c
tun.c
udp.c
util.c
util.h