From a11cd3ddb2af90da3e5af9917a3cf1c749479983 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Nov 2021 21:06:47 -0400 Subject: sim: sh: clean up time(NULL) call Casting 0 to a pointer via (long *) doesn't work on LLP64 targets: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] It's also unnecessary here. We can simply pass NULL like every other bit of code does. --- sim/sh/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/sh/interp.c') diff --git a/sim/sh/interp.c b/sim/sh/interp.c index c1b05dd..c502b21 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -761,7 +761,7 @@ IOMEM (int addr, int write, int value) static int get_now (void) { - return time ((long *) 0); + return time (NULL); } static int -- cgit v1.1