projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dns: fix workaround for systems defaulting to ipv6-only sockets
[musl]
/
src
/
stdio
/
__towrite.c
diff --git
a/src/stdio/__towrite.c
b/src/stdio/__towrite.c
index
0a69d92
..
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;
}
-void __stdio_exit_needed(void);
-
-void __towrite_needs_stdio_exit()
+hidden void __towrite_needs_stdio_exit()
{
__stdio_exit_needed();
}
{
__stdio_exit_needed();
}