mirror of https://github.com/ipxe/ipxe.git
Use XFER_INIT() macro.
parent
a2b4252d5a
commit
84f99f781e
|
@ -111,13 +111,7 @@ static struct xfer_interface_operations pxe_udp_xfer_operations = {
|
||||||
|
|
||||||
/** The PXE UDP connection */
|
/** The PXE UDP connection */
|
||||||
static struct pxe_udp_connection pxe_udp = {
|
static struct pxe_udp_connection pxe_udp = {
|
||||||
.xfer = {
|
.xfer = XFER_INIT ( &pxe_udp_xfer_operations ),
|
||||||
.intf = {
|
|
||||||
.dest = &null_xfer.intf,
|
|
||||||
.refcnt = NULL,
|
|
||||||
},
|
|
||||||
.op = &pxe_udp_xfer_operations,
|
|
||||||
},
|
|
||||||
.local = {
|
.local = {
|
||||||
.sin_family = AF_INET,
|
.sin_family = AF_INET,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue