From 6d857f8db778c9500324052b7b52e7be5e2d44c7 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sat, 27 Apr 2019 20:23:32 -0600
Subject: [PATCH] C flavored Rust doesn't taste good

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

diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs
index 0ad01720e..5ffe5d048 100644
--- a/src/header/time/mod.rs
+++ b/src/header/time/mod.rs
@@ -343,13 +343,13 @@ pub unsafe extern "C" fn time(tloc: *mut time_t) -> time_t {
 }
 
 #[no_mangle]
-pub unsafe extern "C" fn timelocal(tm: *mut struct tm) -> time_t {
+pub unsafe extern "C" fn timelocal(tm: *mut tm) -> time_t {
     //TODO: timezone
     timegm(tm)
 }
 
 #[no_mangle]
-pub unsafe extern "C" fn timegm(tm: *mut struct tm) -> time_t {
+pub unsafe extern "C" fn timegm(tm: *mut tm) -> time_t {
     let mut y = (*tm).tm_year as time_t + 1900;
     let mut m = (*tm).tm_mon as time_t + 1;
     if m <= 2 {
-- 
GitLab