summaryrefslogtreecommitdiff
path: root/vcs-svn/line_buffer.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 16:48:00 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-05-09 12:29:08 -0700
commit1c8ead97f842fb385ce729bc45760b439365b79a (patch)
treedcdf6073f755245fbb8579232100e10ddafb928f /vcs-svn/line_buffer.c
parentupload-pack.c: use error_errno() (diff)
downloadtgif-1c8ead97f842fb385ce729bc45760b439365b79a.tar.xz
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>
Diffstat (limited to 'vcs-svn/line_buffer.c')
-rw-r--r--vcs-svn/line_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcs-svn/line_buffer.c b/vcs-svn/line_buffer.c
index 57cc1cec03..e416caf8a4 100644
--- a/vcs-svn/line_buffer.c
+++ b/vcs-svn/line_buffer.c
@@ -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;
}