diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-01 18:27:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-01 18:27:19 -0400 |
commit | e89cfe51d2001af08fc2a13e5133ba8157f90beb (patch) | |
tree | dbb44c888d9c0933b4006123f5d5b3c42689e026 /src/linux/clock_adjtime.c | |
parent | 2d8cc92a7cb4a3256ed07d86843388ffd8a882b1 (diff) | |
download | musl-e89cfe51d2001af08fc2a13e5133ba8157f90beb.tar.gz musl-e89cfe51d2001af08fc2a13e5133ba8157f90beb.tar.xz musl-e89cfe51d2001af08fc2a13e5133ba8157f90beb.zip |
fix aliasing violations in mbtowc and mbrtowc
these functions were setting wc to point to wchar_t aliasing itself as a "cheap" way to support null wc arguments. doing so was anything but cheap, since even without the aliasing violation, it would limit the compiler's ability to optimize. making wc point to a dummy object is equally easy and does not suffer from the above problems.
Diffstat (limited to 'src/linux/clock_adjtime.c')
0 files changed, 0 insertions, 0 deletions