Przeglądaj źródła

Use XFER_INIT() macro.

tags/v0.9.3
Michael Brown 16 lat temu
rodzic
commit
84f99f781e
1 zmienionych plików z 1 dodań i 7 usunięć
  1. 1
    7
      src/interface/pxe/pxe_udp.c

+ 1
- 7
src/interface/pxe/pxe_udp.c Wyświetl plik

@@ -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
 	},

Ładowanie…
Anuluj
Zapisz