Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fast-import.c: use error_errno()
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 8 May 2016 09:47:45 +0000
(16:47 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 May 2016 19:29:08 +0000
(12:29 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e1ebb3c
)
diff --git
a/fast-import.c
b/fast-import.c
index 9fc7093406b1e2085a3b2180a8506bcd6d486e06..21881d1fddf9b2ddb3a14a67baf03fccf73e0a3f 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-414,7
+414,7
@@
static void write_crash_report(const char *err)
struct recent_command *rc;
if (!rpt) {
struct recent_command *rc;
if (!rpt) {
- error
("can't write crash report %s: %s", loc, strerror(errno)
);
+ error
_errno("can't write crash report %s", loc
);
free(loc);
return;
}
free(loc);
return;
}
@@
-1806,8
+1806,8
@@
static void dump_marks(void)
return;
if (hold_lock_file_for_update(&mark_lock, export_marks_file, 0) < 0) {
return;
if (hold_lock_file_for_update(&mark_lock, export_marks_file, 0) < 0) {
- failure |= error
("Unable to write marks file %s:
%s",
-
export_marks_file, strerror(errno)
);
+ failure |= error
_errno("Unable to write marks file
%s",
+
export_marks_file
);
return;
}
return;
}
@@
-1822,8
+1822,8
@@
static void dump_marks(void)
dump_marks_helper(f, 0, marks);
if (commit_lock_file(&mark_lock)) {
dump_marks_helper(f, 0, marks);
if (commit_lock_file(&mark_lock)) {
- failure |= error
("Unable to write file %s:
%s",
-
export_marks_file, strerror(errno)
);
+ failure |= error
_errno("Unable to write file
%s",
+
export_marks_file
);
return;
}
}
return;
}
}