]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Use XFER_INIT() macro.
authorMichael Brown <mcb30@etherboot.org>
Tue, 22 Jan 2008 18:50:24 +0000 (18:50 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 22 Jan 2008 18:50:24 +0000 (18:50 +0000)
src/interface/pxe/pxe_udp.c

index 0d6d1b74154acfaf5e05b27787dd0b6e8c2794a5..40c2b2e5bb4e7fc8e61d561dc27335c34027f7e8 100644 (file)
@@ -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,
        },