bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] m2: fix build with new M2-Planet.


From: Andrius Štikonas
Subject: [PATCH] m2: fix build with new M2-Planet.
Date: Fri, 23 Dec 2022 23:25:44 +0000

Newer M2-Planet is slightly more standards compliant and
notices that we are assigning 64-bit struct (on x86) to function argument
that is 32-bit wide.

* lib/m2/time.c: Use pointers to structs
---
 lib/m2/time.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/m2/time.c b/lib/m2/time.c
index c589de85..a052be7b 100644
--- a/lib/m2/time.c
+++ b/lib/m2/time.c
@@ -26,8 +26,8 @@ long
 time (long* result)
 {
   int r;
-  struct timeval tv;
-  struct timezone tz;
+  struct timeval* tv;
+  struct timezone* tz;
   r = _sys_call2 (SYS_gettimeofday, tv, tz);
   if (r != 0)
     return -1;
-- 
2.38.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]