libgloss: csky: fix pointer-to-integer warning

parameters is an array of integers, so assigning NULL (a pointer)
doesn't make sense.  Use 0 instead which produces the same code.
This commit is contained in:
Mike Frysinger 2023-01-12 23:36:07 -05:00
parent 4391d2aed3
commit 73e4ded2fe
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ int gettimeofday (struct timeval *tv, void *tzvp)
return -1;
}
parameters[0] = (uint32_t) &gtv;
parameters[1] = NULL;
parameters[1] = 0;
ret = __hosted (HOSTED_GETTIMEOFDAY, parameters);
__hosted_from_gdb_timeval (&gtv, tv);
errno = __hosted_from_gdb_errno (parameters[0]);