From: Mike Frysinger Date: Sun, 7 Nov 2021 01:06:47 +0000 (-0400) Subject: sim: sh: clean up time(NULL) call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a11cd3ddb2af90da3e5af9917a3cf1c749479983;p=binutils-gdb.git 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. --- diff --git a/sim/sh/interp.c b/sim/sh/interp.c index c1b05ddf620..c502b21b49f 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