projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78897b0
)
fix ifru_data and ifcu_buf types in net/if.h
author
Daniel Sabogal
<dsabogalcc@gmail.com>
Fri, 16 Sep 2016 17:34:24 +0000
(13:34 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 16 Sep 2016 21:59:54 +0000
(17:59 -0400)
glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses void pointer for the ifru_data type.
include/net/if.h
patch
|
blob
|
history
diff --git
a/include/net/if.h
b/include/net/if.h
index 1a4059d60f680e6db9e28c355f1cee2f074de114..2f2fcc10e484368d51b29497ae75bcda3bdcda15 100644
(file)
--- a/
include/net/if.h
+++ b/
include/net/if.h
@@
-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;
};