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:
parent
4391d2aed3
commit
73e4ded2fe
|
@ -43,7 +43,7 @@ int gettimeofday (struct timeval *tv, void *tzvp)
|
|||
return -1;
|
||||
}
|
||||
parameters[0] = (uint32_t) >v;
|
||||
parameters[1] = NULL;
|
||||
parameters[1] = 0;
|
||||
ret = __hosted (HOSTED_GETTIMEOFDAY, parameters);
|
||||
__hosted_from_gdb_timeval (>v, tv);
|
||||
errno = __hosted_from_gdb_errno (parameters[0]);
|
||||
|
|
Loading…
Reference in New Issue