Browse Source

Remove errno setting

Peter Limkilde Svendsen 4 years ago
parent
commit
aef1be7c1b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/header/time/mod.rs

+ 2 - 1
src/header/time/mod.rs

@@ -146,7 +146,8 @@ pub unsafe extern "C" fn asctime_r(tm: *const tm, buf: *mut c_char) -> *mut c_ch
     match write_result {
         Ok(_) => buf,
         Err(_) => {
-            platform::errno = EIO;
+            /* asctime()/asctime_r() or the equivalent sprintf() call
+             * have no defined errno setting */
             core::ptr::null_mut()
         }
     }