remote-curl: reduce scope of rpc_state.argv
authorJonathan Tan <jonathantanmy@google.com>
Thu, 14 Feb 2019 19:06:35 +0000 (11:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 20:47:55 +0000 (12:47 -0800)
commit7d50d34fc7d9764766c13eb4f86171f241664b98
tree3d76648f819a3c67714ce70de3589ecfb928a778
parent8989e1950a845ceeb186d490321a4f917ca4de47
remote-curl: reduce scope of rpc_state.argv

The argv 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