aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/interp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-06 21:06:47 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-06 21:06:47 -0400
commita11cd3ddb2af90da3e5af9917a3cf1c749479983 (patch)
treea784e55d57367b2ec6685115a905b778df57ff2d /sim/sh/interp.c
parent4a0bb487b8027a317b5c7011d870ae719098e8f0 (diff)
downloadgdb-a11cd3ddb2af90da3e5af9917a3cf1c749479983.zip
gdb-a11cd3ddb2af90da3e5af9917a3cf1c749479983.tar.gz
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.c2
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