aboutsummaryrefslogtreecommitdiff
path: root/fetch-clone.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetch-clone.c')
-rw-r--r--fetch-clone.c3
1 files changed, 1 insertions, 2 deletions
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));