projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
select: fix 64-bit timeout truncation on pre-time64 kernels
[musl]
/
src
/
stdio
/
putw.c
diff --git
a/src/stdio/putw.c
b/src/stdio/putw.c
index
137832e
..
0ff9d7f
100644
(file)
--- a/
src/stdio/putw.c
+++ b/
src/stdio/putw.c
@@
-1,6
+1,7
@@
+#define _GNU_SOURCE
#include <stdio.h>
int putw(int x, FILE *f)
{
- return
fwrite(&x, sizeof x, 1, f) ? x : EOF
;
+ return
(int)fwrite(&x, sizeof x, 1, f)-1
;
}