diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-05-08 16:47:33 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-09 12:29:08 -0700 |
commit | 17bef17ef8d319e620c19d032c082a18eb88a65f (patch) | |
tree | 611134eea19024063a8a615a4ffbea242d827caf /builtin | |
parent | builtin/update-index.c: prefer "err" to "errno" in process_lstat_error (diff) | |
download | tgif-17bef17ef8d319e620c19d032c082a18eb88a65f.tar.xz |
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')
-rw-r--r-- | builtin/upload-archive.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/upload-archive.c b/builtin/upload-archive.c index dbfe14f3fe..2caedf1849 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; |