remote-curl: reduce scope of rpc_state.result
commitb35903092e35cf249777ff14c1135c0b50f4e1f3
authorJonathan Tan <jonathantanmy@google.com>
Thu, 14 Feb 2019 19:06:37 +0000 (14 11:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 20:47:55 +0000 (14 12:47 -0800)
treebe0909cab4efa26d9b1ddd36229594fd688dde2f
parent5d91669309d23383651c352abd00254982e31902
remote-curl: reduce scope of rpc_state.result

The result field in struct rpc_state is only used in rpc_service(), and
not in any functions it directly or indirectly calls. Refactor it to
become an argument of rpc_service() instead.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c