This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [RFC 2/4] cell fwrite fix
jschopp wrote:
Fix a small bug from patch 1, will be folded together with patch 1 in
the future.
Actually attach patch this time :)
Index: newlib-1.14.0/newlib/libc/machine/spu/fwrite.c
===================================================================
--- newlib-1.14.0.orig/newlib/libc/machine/spu/fwrite.c
+++ newlib-1.14.0/newlib/libc/machine/spu/fwrite.c
@@ -16,8 +16,8 @@ typedef struct
} c99_fwrite_t;
size_t
-_DEFUN (fread, (buf, size, count, fp),
- _PTR buf _AND
+_DEFUN (fwrite, (buf, size, count, fp),
+ _CONST _PTR buf _AND
size_t size _AND
size_t count _AND
FILE * fp)