sideband_demux(): fix decl-after-stmt
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
May 16, 2011 at 16:19 UTC
61432146ad707e969664c0151364e2d8da9fb157
1 file changed
+2
-2
builtin-send-pack.c
+2
-2
@@ -374,11 +374,11 @@ static void print_helper_status(struct ref *ref)
374
375
static int sideband_demux(int in, int out, void *data)
376
{
377
- int *fd = data;
377
+ int *fd = data, ret;
378
#ifndef WIN32
379
close(fd[1]);
380
#endif
381
- int ret = recv_sideband("send-pack", fd[0], out);
381
+ ret = recv_sideband("send-pack", fd[0], out);
382
close(out);
383
return ret;
384
}