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.
This commit is contained in:
Mike Frysinger
2021-11-06 21:06:47 -04:00
parent 4a0bb487b8
commit a11cd3ddb2

View File

@@ -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