vcs-svn: 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>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2016-05-08 16:48:00 +07:00
committed by Junio C Hamano
parent d2b6afa2cb
commit 1c8ead97f8
4 changed files with 7 additions and 7 deletions

View File

@ -53,9 +53,9 @@ long buffer_tmpfile_prepare_to_read(struct line_buffer *buf)
{
long pos = ftell(buf->infile);
if (pos < 0)
return error("ftell error: %s", strerror(errno));
return error_errno("ftell error");
if (fseek(buf->infile, 0, SEEK_SET))
return error("seek error: %s", strerror(errno));
return error_errno("seek error");
return pos;
}