提交 44b80ed0 编写于 作者: L Luqman Aden

Long lines.

上级 70185fdc
......@@ -831,7 +831,7 @@ unsafe fn strerror_r(errnum: c_int, buf: *c_char,
// GNU libc provides a non-compliant version of strerror_r by default
// and requires macros to instead use the POSIX compliant variant.
// So instead we just use __xpg_strerror_r which is always POSIX compliant
// So we just use __xpg_strerror_r which is always POSIX compliant
#[cfg(target_os = "linux")]
fn strerror_r(errnum: c_int, buf: *c_char, buflen: size_t) -> c_int {
#[nolink]
......@@ -884,7 +884,8 @@ unsafe fn FormatMessageA(flags: DWORD, lpSrc: LPVOID,
let res = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
ptr::mut_null(), err, langId,
&mut buf[0], TMPBUF_SZ as DWORD, ptr::null());
&mut buf[0], TMPBUF_SZ as DWORD,
ptr::null());
if res == 0 {
die!(fmt!("[%?] FormatMessage failure", errno()));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册