diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-02-21 23:44:20 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-02-21 23:44:20 -0500 |
commit | a01f1fe66f44ffdbe2f15c2b2e850c2708f6ae5d (patch) | |
tree | 7dc067fc1d463c5ee278025f8648d5cfc626556d | |
parent | d20558148d8a2c52229b02668627697e83ca3840 (diff) | |
download | musl-a01f1fe66f44ffdbe2f15c2b2e850c2708f6ae5d.tar.gz musl-a01f1fe66f44ffdbe2f15c2b2e850c2708f6ae5d.tar.bz2 musl-a01f1fe66f44ffdbe2f15c2b2e850c2708f6ae5d.tar.xz musl-a01f1fe66f44ffdbe2f15c2b2e850c2708f6ae5d.zip |
remove wrap_write helper from vdprintf
this reverts commit 4ee039f3545976f9e3e25a7e5d7b58f1f2316dc3, which
added the helper as a hack to make vdprintf usable before relocation,
contingent on strong assumptions about the arch and tooling, back when
the dynamic linker did not have a real staged model for
self-relocation. since commit f3ddd173806fd5c60b3f034528ca24542aecc5b9
this has been unnecessary and the function was just wasting size and
execution time.
-rw-r--r-- | src/stdio/vdprintf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/stdio/vdprintf.c b/src/stdio/vdprintf.c index c35d9b4f..3b9c093b 100644 --- a/src/stdio/vdprintf.c +++ b/src/stdio/vdprintf.c @@ -1,14 +1,9 @@ #include "stdio_impl.h" -static size_t wrap_write(FILE *f, const unsigned char *buf, size_t len) -{ - return __stdio_write(f, buf, len); -} - int vdprintf(int fd, const char *restrict fmt, va_list ap) { FILE f = { - .fd = fd, .lbf = EOF, .write = wrap_write, + .fd = fd, .lbf = EOF, .write = __stdio_write, .buf = (void *)fmt, .buf_size = 0, .lock = -1 }; |