From 73e4ded2fe17b3a970c94a421c4b2191ca49a194 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 12 Jan 2023 23:36:07 -0500 Subject: [PATCH] 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. --- libgloss/csky/io-gettimeofday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgloss/csky/io-gettimeofday.c b/libgloss/csky/io-gettimeofday.c index 77f446fb8..59b1abb83 100644 --- a/libgloss/csky/io-gettimeofday.c +++ b/libgloss/csky/io-gettimeofday.c @@ -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]);