]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[libc] Ensure that error numbers from EUNIQ() have the correct type
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Sep 2010 18:59:37 +0000 (19:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Sep 2010 19:04:11 +0000 (20:04 +0100)
commit2a92697bda9405523d350c5698398d61468fa9fd
tree762a8c46d58c04a3acf84d90419fa80443f2a82e
parenta5a4dcd0c702d73a61b796e9a5d84433f162693c
[libc] Ensure that error numbers from EUNIQ() have the correct type

Error numbers are signed ints.  EUNIQ() should not allow implicit type
promotion based on the supplied error diambiguator, because this
causes problems with statements such as

  rc = ( condition ? -EUNIQ ( EBASE, disambiguator ) : -EBASE );

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/errno.h