Skip to content

Commit

Permalink
sideband_demux(): fix decl-after-stmt
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed May 16, 2011
1 parent e07fd15 commit 6143214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,11 @@ static void print_helper_status(struct ref *ref)

static int sideband_demux(int in, int out, void *data)
{
int *fd = data;
int *fd = data, ret;
#ifndef WIN32
close(fd[1]);
#endif
int ret = recv_sideband("send-pack", fd[0], out);
ret = recv_sideband("send-pack", fd[0], out);
close(out);
return ret;
}
Expand Down

0 comments on commit 6143214

Please sign in to comment.