ctdb: Replace calculation of bytes to read from socket by MIN() macro
authorSwen Schillig <swen@vnet.ibm.com>
Thu, 9 Aug 2018 07:15:36 +0000 (09:15 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 18 Aug 2018 00:01:26 +0000 (02:01 +0200)
commit8262efbc96b06535b5d29395c71d5fa4e0d8bc63
tree2413e23d4ab99ca0aa22bccf63530ab047288796
parent41aa55f49233ea7682cf14e5a7062617274434ce
ctdb: Replace calculation of bytes to read from socket by MIN() macro

The calculation of the bytes to read from the socket can be done easier
by the usage of the common MIN() macro.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/common/ctdb_io.c