public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] libgloss: csky: fix pointer-to-integer warning
@ 2023-01-13 22:28 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-01-13 22:28 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=73e4ded2fe17b3a970c94a421c4b2191ca49a194

commit 73e4ded2fe17b3a970c94a421c4b2191ca49a194
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Jan 12 23:36:07 2023 -0500

    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.

Diff:
---
 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) &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]);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-13 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 22:28 [newlib-cygwin/main] libgloss: csky: fix pointer-to-integer warning Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).