diff options
Diffstat (limited to 'newlib/libc/stdio/putw.c')
-rw-r--r-- | newlib/libc/stdio/putw.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/newlib/libc/stdio/putw.c b/newlib/libc/stdio/putw.c index 19f4abc..78406ee 100644 --- a/newlib/libc/stdio/putw.c +++ b/newlib/libc/stdio/putw.c @@ -44,7 +44,8 @@ PORTABILITY <<fwrite>> should be used instead. In fact, this implementation of <<putw>> is based upon <<fwrite>>. -Supporting OS subroutines required: <<fwrite>>. */ +Supporting OS subroutines required: <<fwrite>>. +*/ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "%W% (Berkeley) %G%"; @@ -53,11 +54,11 @@ static char sccsid[] = "%W% (Berkeley) %G%"; #include <stdio.h> int -putw (w, fp) - int w; - register FILE *fp; +_DEFUN(putw, (w, fp), + int w _AND + register FILE *fp) { - if (fwrite((const char*)&w, sizeof(w), 1, fp) != 1) + if (fwrite ((_CONST char*)&w, sizeof (w), 1, fp) != 1) return EOF; return 0; } |