File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ pub fn last_os_error() -> ~str {
831
831
832
832
// GNU libc provides a non-compliant version of strerror_r by default
833
833
// and requires macros to instead use the POSIX compliant variant.
834
- // So instead we just use __xpg_strerror_r which is always POSIX compliant
834
+ // So we just use __xpg_strerror_r which is always POSIX compliant
835
835
#[ cfg( target_os = "linux" ) ]
836
836
fn strerror_r ( errnum : c_int , buf : * c_char , buflen : size_t ) -> c_int {
837
837
#[ nolink]
@@ -884,7 +884,8 @@ pub fn last_os_error() -> ~str {
884
884
let res = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
885
885
FORMAT_MESSAGE_IGNORE_INSERTS,
886
886
ptr::mut_null(), err, langId,
887
- &mut buf[0], TMPBUF_SZ as DWORD, ptr::null());
887
+ &mut buf[0], TMPBUF_SZ as DWORD,
888
+ ptr::null());
888
889
if res == 0 {
889
890
die!(fmt!(" [ %?] FormatMessage failure", errno()));
890
891
}
You can’t perform that action at this time.
0 commit comments