X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=fetch-clone.c;h=c5cf4776fabb8f9f09028dd1f0cfaf1d55e1397c;hb=3899e7a329aabfc22eca9beb82599e1bb214b3d2;hp=5e84c4620ff96f5c7ab93e5f3bfd10609edd5fd5;hpb=4e273c9dcfe8e898ea43b17213c47733a4fef842;p=git.git diff --git a/fetch-clone.c b/fetch-clone.c index 5e84c4620..c5cf4776f 100644 --- a/fetch-clone.c +++ b/fetch-clone.c @@ -44,9 +44,8 @@ static int finish_pack(const char *pack_tmp_name, const char *me) for (;;) { int status, code; - int retval = waitpid(pid, &status, 0); - if (retval < 0) { + if (waitpid(pid, &status, 0) < 0) { if (errno == EINTR) continue; error("waitpid failed (%s)", strerror(errno));