Browse Source

Use XFER_INIT() macro.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
84f99f781e
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/interface/pxe/pxe_udp.c

+ 1
- 7
src/interface/pxe/pxe_udp.c View File

@@ -111,13 +111,7 @@ static struct xfer_interface_operations pxe_udp_xfer_operations = {
111 111
 
112 112
 /** The PXE UDP connection */
113 113
 static struct pxe_udp_connection pxe_udp = {
114
-	.xfer = {
115
-		.intf = {
116
-			.dest = &null_xfer.intf,
117
-			.refcnt = NULL,
118
-		},
119
-		.op = &pxe_udp_xfer_operations,
120
-	},
114
+	.xfer = XFER_INIT ( &pxe_udp_xfer_operations ),
121 115
 	.local = {
122 116
 		.sin_family = AF_INET,
123 117
 	},

Loading…
Cancel
Save