]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[legacy] Rename the global legacy NIC to "legacy_nic"
authorMichael Brown <mcb30@ipxe.org>
Tue, 24 Jun 2025 12:10:53 +0000 (13:10 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Jun 2025 12:41:51 +0000 (13:41 +0100)
commit6ea800ab549823fc957902e85b587a7b8d3859de
tree2fd3676537a5169e55f3480558b1446ad8579de9
parentd0c02e0df8ae42b75b422f5df83c600a98d7cbc7
[legacy] Rename the global legacy NIC to "legacy_nic"

We currently have contexts in which the local variable "nic" is a
pointer to the global variable also called "nic".  This complicates
the creation of macros.

Rename the global variable to "legacy_nic" to reduce pollution of the
global namespace and to allow for the creation of macros referring to
fields within this global variable.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/legacy.c
src/include/nic.h