From aef1be7c1bcaf8983e9050a491d612ed5379ba8b Mon Sep 17 00:00:00 2001
From: Peter Limkilde Svendsen <peter.limkilde@gmail.com>
Date: Thu, 17 Sep 2020 23:01:20 +0200
Subject: [PATCH] Remove errno setting

---
 src/header/time/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs
index 114c7f8c..89eadd6a 100644
--- a/src/header/time/mod.rs
+++ b/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()
         }
     }
-- 
GitLab