convert less-trivial versions of "write_in_full() != len"
commit564bde9ae69dc3d60e764078745275b637f90991
authorJeff King <peff@peff.net>
Wed, 13 Sep 2017 17:16:28 +0000 (13 13:16 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Sep 2017 06:17:59 +0000 (14 15:17 +0900)
tree45365f924c0622698493ee62ee0ede6c51133e4c
parent06f46f237afa823c0a2775e60ed8fbd80e7c751f
convert less-trivial versions of "write_in_full() != len"

The prior commit converted many sites to check the return
value of write_in_full() for negativity, rather than a
mismatch with the input length. This patch covers similar
cases, but where the return value is stored in an
intermediate variable. These should get the same treatment,
but they need to be reviewed more carefully since it would
be a bug if the return value is stored in an unsigned type
(which indeed, it is in one of the cases).

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c
refs/files-backend.c
streaming.c