From: Nguyễn Thái Ngọc Duy Date: Tue, 03 May 2016 12:03:55 GMT Subject: [PATCH v2 22/41] diff-no-index.c: use error_errno() Message-ID: <1462277054-5943-23-git-send-email-pclouds@gmail.com> In-Reply-To: <1462277054-5943-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- diff-no-index.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/diff-no-index.c b/diff-no-index.c index 03daadb..1f8999b 100644 --- a/diff-no-index.c +++ b/diff-no-index.c @@ -65,8 +65,7 @@ static int populate_from_stdin(struct diff_filespec *s) size_t size = 0; if (strbuf_read(&buf, 0, 0) < 0) - return error("error while reading from stdin %s", - strerror(errno)); + return error_errno("error while reading from stdin"); s->should_munmap = 0; s->data = strbuf_detach(&buf, &size); -- 2.8.0.rc0.210.gd302cd2