MEDIUM: connection: make xprt->rcv_buf() use size_t for the count
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Jul 2018 09:22:03 +0000 (11:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
commitbfc4d77ad3e4ba146c07b3309030b28ddd120c94
tree8b2dc3a34b86a16edabb6a434599871947e8470e
parentdeccd1116db31d64e864a60f0b1a9d0ce017ee1d
MEDIUM: connection: make xprt->rcv_buf() use size_t for the count

Just like we have a size_t for xprt->snd_buf(), we adjust to use size_t
for rcv_buf()'s count argument and return value. It also removes the
ambiguity related to the possibility to see a negative value there.
include/types/connection.h
src/raw_sock.c
src/ssl_sock.c