summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-01-22 19:50:24 +0100
committerMichael Brown2008-01-22 19:50:24 +0100
commit84f99f781e405f90460f72cd3f5c1b5f97242f06 (patch)
tree8afdeff2760e6cc4f48b4b38b5739f293b56519b
parentAdd XFER_INIT() macro. (diff)
downloadipxe-84f99f781e405f90460f72cd3f5c1b5f97242f06.tar.gz
ipxe-84f99f781e405f90460f72cd3f5c1b5f97242f06.tar.xz
ipxe-84f99f781e405f90460f72cd3f5c1b5f97242f06.zip
Use XFER_INIT() macro.
-rw-r--r--src/interface/pxe/pxe_udp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/interface/pxe/pxe_udp.c b/src/interface/pxe/pxe_udp.c
index 0d6d1b74..40c2b2e5 100644
--- a/src/interface/pxe/pxe_udp.c
+++ b/src/interface/pxe/pxe_udp.c
@@ -111,13 +111,7 @@ static struct xfer_interface_operations pxe_udp_xfer_operations = {
/** The PXE UDP connection */
static struct pxe_udp_connection pxe_udp = {
- .xfer = {
- .intf = {
- .dest = &null_xfer.intf,
- .refcnt = NULL,
- },
- .op = &pxe_udp_xfer_operations,
- },
+ .xfer = XFER_INIT ( &pxe_udp_xfer_operations ),
.local = {
.sin_family = AF_INET,
},