提交 3848a99f 编写于 作者: D Daniel Sabogal 提交者: Rich Felker

fix ifru_data and ifcu_buf types in net/if.h

glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses void pointer for the ifru_data type.
上级 78897b0d
......@@ -89,7 +89,7 @@ struct ifreq {
struct ifmap ifru_map;
char ifru_slave[IFNAMSIZ];
char ifru_newname[IFNAMSIZ];
void *ifru_data;
char *ifru_data;
} ifr_ifru;
};
......@@ -116,7 +116,7 @@ struct ifreq {
struct ifconf {
int ifc_len;
union {
void *ifcu_buf;
char *ifcu_buf;
struct ifreq *ifcu_req;
} ifc_ifcu;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册