diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 21:06:47 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 21:06:47 -0400 |
commit | a11cd3ddb2af90da3e5af9917a3cf1c749479983 (patch) | |
tree | a784e55d57367b2ec6685115a905b778df57ff2d /sim/sh/interp.c | |
parent | 4a0bb487b8027a317b5c7011d870ae719098e8f0 (diff) | |
download | fsf-binutils-gdb-a11cd3ddb2af90da3e5af9917a3cf1c749479983.zip fsf-binutils-gdb-a11cd3ddb2af90da3e5af9917a3cf1c749479983.tar.gz fsf-binutils-gdb-a11cd3ddb2af90da3e5af9917a3cf1c749479983.tar.bz2 |
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.
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |