projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in clock_getres, check for null pointer before storing result
[musl]
/
src
/
stdio
/
__towrite.c
diff --git
a/src/stdio/__towrite.c
b/src/stdio/__towrite.c
index
ba67e0d
..
4c9c66a
100644
(file)
--- a/
src/stdio/__towrite.c
+++ b/
src/stdio/__towrite.c
@@
-3,7
+3,7
@@
int __towrite(FILE *f)
{
f->mode |= f->mode-1;
int __towrite(FILE *f)
{
f->mode |= f->mode-1;
- if (f->flags &
(F_NOWR)
) {
+ if (f->flags &
F_NOWR
) {
f->flags |= F_ERR;
return EOF;
}
f->flags |= F_ERR;
return EOF;
}
@@
-17,9
+17,7
@@
int __towrite(FILE *f)
return 0;
}
return 0;
}
-const int __towrite_used = 1;
-
-void __flush_on_exit()
+hidden void __towrite_needs_stdio_exit()
{
{
- __stdio_exit();
+ __stdio_exit
_needed
();
}
}