PATCH: fix another warning in spu/time.c

Ben Elliston bje@au1.ibm.com
Fri Dec 22 17:27:00 GMT 2006


This patch is along the lines of another one recently: cast pointers to
unsigned int to match the fields of various syscall structures.  Okay
for mainline?

2006-12-21  Ben Elliston  <bje@au.ibm.com>

        * spu/time.c (time): Cast new sys.time value to unsigned int.

Index: time.c
===================================================================
RCS file: /cvs/src/src/libgloss/spu/time.c,v
retrieving revision 1.1
diff -u -p -r1.1 time.c
--- time.c      13 Dec 2006 19:42:56 -0000      1.1
+++ time.c      21 Dec 2006 04:58:05 -0000
@@ -39,7 +39,7 @@ time (time_t *t)
        syscall_time_t sys;
        syscall_out_t   *psys_out = ( syscall_out_t* )&sys;
 
-       sys.time = t;
+       sys.time = (unsigned int) t;
 
        _send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_TIME, &sys);
 




More information about the Newlib mailing list