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>tags/v1.20.1
|
|
||
33 |
|
33 |
|
34 |
|
34 |
|
35 |
|
35 |
|
|
36 |
|
|
36 |
|
37 |
|
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
42 |
|
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
43 |
|
47 |
|