summaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown2014-03-14 16:15:14 +0100
committerMichael Brown2014-03-14 17:20:55 +0100
commite662912c53825ed9ab0cd02c41b2ab460716c3c7 (patch)
treec8366704d57ac2d920310762d337d35ebc10d9cc /src/image
parent[netdevice] Notify upper-layer drivers when RX processing is (un)frozen (diff)
downloadipxe-e662912c53825ed9ab0cd02c41b2ab460716c3c7.tar.gz
ipxe-e662912c53825ed9ab0cd02c41b2ab460716c3c7.tar.xz
ipxe-e662912c53825ed9ab0cd02c41b2ab460716c3c7.zip
[efi] Avoid accidentally calling main() twice
EFIRC() uses PLATFORM_TO_ERRNO(), which evaluates its argument twice (and can't trivially use a braced-group expression or an inline function to avoid this, since it gets used outside of function context). The expression "EFIRC(main())" will therefore end up calling main() twice, which is not the intended behaviour. Every other instance of EFIRC() is of the simple form "EFIRC(rc)", so fix by converting this instance to match. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
0 files changed, 0 insertions, 0 deletions