diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2006-01-05 11:56:37 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-06 04:22:45 +0300 |
commit | 7f272ca80c1dbb8157e204a821365448eaec52ea (patch) | |
tree | 224ddc51e38b6cfc073c7d126eb7111a6054e2ec | |
parent | b73cebf437252660cea670c27dcdedc422e1bff9 (diff) |
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>
-rw-r--r-- | fetch-clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-clone.c b/fetch-clone.c index 2b2aa15ea7..f46fe6ecbb 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)) { |