summaryrefslogtreecommitdiff
path: root/fetch-clone.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2006-01-05 08:56:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-01-06 01:22:45 (GMT)
commit7f272ca80c1dbb8157e204a821365448eaec52ea (patch)
tree224ddc51e38b6cfc073c7d126eb7111a6054e2ec /fetch-clone.c
parentb73cebf437252660cea670c27dcdedc422e1bff9 (diff)
downloadgit-7f272ca80c1dbb8157e204a821365448eaec52ea.zip
git-7f272ca80c1dbb8157e204a821365448eaec52ea.tar.gz
git-7f272ca80c1dbb8157e204a821365448eaec52ea.tar.bz2
trivial: retval of waitpid is not errno
...but is used as such and passed to strerror. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-clone.c')
-rw-r--r--fetch-clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-clone.c b/fetch-clone.c
index 2b2aa15..f46fe6e 100644
--- a/fetch-clone.c
+++ b/fetch-clone.c
@@ -47,7 +47,7 @@ static int finish_pack(const char *pack_tmp_name, const char *me)
if (retval < 0) {
if (errno == EINTR)
continue;
- error("waitpid failed (%s)", strerror(retval));
+ error("waitpid failed (%s)", strerror(errno));
goto error_die;
}
if (WIFSIGNALED(status)) {