浏览代码

Use XFER_INIT() macro.

tags/v0.9.3
Michael Brown 16 年前
父节点
当前提交
84f99f781e
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1
    7
      src/interface/pxe/pxe_udp.c

+ 1
- 7
src/interface/pxe/pxe_udp.c 查看文件

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

正在加载...
取消
保存