diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-29 13:57:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-29 13:57:13 -0400 |
commit | 9b732fe51b814468a08c84d13238b4c83a42451a (patch) | |
tree | ba7d4fed8688a352ffb8904b2493839dd7ca0578 /include/ifaddrs.h | |
parent | 780cbbe63ad9e60ef30dbcb2d74271e899dae245 (diff) | |
download | musl-9b732fe51b814468a08c84d13238b4c83a42451a.tar.gz musl-9b732fe51b814468a08c84d13238b4c83a42451a.tar.xz musl-9b732fe51b814468a08c84d13238b4c83a42451a.zip |
fix shifts possibly larger than type in major() macro
in theory this should not be an issue, since major() should only be applied to type dev_t, which is 64-bit. however, it appears some applications are not using dev_t but a smaller integer type (which works on Linux because the kernel's dev_t is really only 32-bit). to avoid the undefined behavior, do it as two shifts.
Diffstat (limited to 'include/ifaddrs.h')
0 files changed, 0 insertions, 0 deletions