This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: fix another warning in spu/time.c


Patch applied.

-- Jeff J.

Ben Elliston wrote:
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);





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]