This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
PATCH: silence warning in spu/stat.c
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: newlib at sourceware dot org
- Date: Thu, 14 Dec 2006 10:22:45 +1100
- Subject: PATCH: silence warning in spu/stat.c
Just following the precedent set by other code in the spu directory
here. Okay to commit?
Ben
2006-12-14 Ben Elliston <bje@au.ibm.com>
* spu/stat.c (stat): Cast new sys.pathname value to unsigned int.
Index: spu/stat.c
===================================================================
RCS file: /cvs/src/src/libgloss/spu/stat.c,v
retrieving revision 1.2
diff -u -w -r1.2 stat.c
--- spu/stat.c 30 Aug 2006 19:06:48 -0000 1.2
+++ spu/stat.c 13 Dec 2006 23:16:19 -0000
@@ -42,7 +42,7 @@
syscall_out_t *psys_out = ( syscall_out_t* )&sys;
jsre_stat_t pjstat;
- sys.pathname = pathname;
+ sys.pathname = (unsigned int) pathname;
sys.ptr = ( unsigned int )&pjstat;
_send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_STAT, &sys);