summaryrefslogtreecommitdiff
path: root/builtin/upload-archive.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 09:47:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 19:29:08 (GMT)
commit17bef17ef8d319e620c19d032c082a18eb88a65f (patch)
tree611134eea19024063a8a615a4ffbea242d827caf /builtin/upload-archive.c
parent23d05364fc5ba9fcc54cf5ae5503f3e987cec315 (diff)
downloadgit-17bef17ef8d319e620c19d032c082a18eb88a65f.zip
git-17bef17ef8d319e620c19d032c082a18eb88a65f.tar.gz
git-17bef17ef8d319e620c19d032c082a18eb88a65f.tar.bz2
builtin/upload-archive.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/upload-archive.c')
-rw-r--r--builtin/upload-archive.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/upload-archive.c b/builtin/upload-archive.c
index dbfe14f..2caedf1 100644
--- a/builtin/upload-archive.c
+++ b/builtin/upload-archive.c
@@ -104,8 +104,7 @@ int cmd_upload_archive(int argc, const char **argv, const char *prefix)
pfd[1].events = POLLIN;
if (poll(pfd, 2, -1) < 0) {
if (errno != EINTR) {
- error("poll failed resuming: %s",
- strerror(errno));
+ error_errno("poll failed resuming");
sleep(1);
}
continue;