mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ifaddr.c: unused member
* ext/socket/ifaddr.c (struct rb_ifaddr_tag): removed set but unused member root. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64d1a9e3ac
commit
7a936a6362
1 changed files with 0 additions and 2 deletions
|
@ -24,7 +24,6 @@ typedef struct rb_ifaddr_root_tag rb_ifaddr_root_t;
|
||||||
struct rb_ifaddr_tag {
|
struct rb_ifaddr_tag {
|
||||||
int ord;
|
int ord;
|
||||||
struct ifaddrs *ifaddr;
|
struct ifaddrs *ifaddr;
|
||||||
rb_ifaddr_root_t *root;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rb_ifaddr_root_tag {
|
struct rb_ifaddr_root_tag {
|
||||||
|
@ -114,7 +113,6 @@ rsock_getifaddrs(void)
|
||||||
for (i = 0; i < numifaddrs; i++) {
|
for (i = 0; i < numifaddrs; i++) {
|
||||||
root->ary[i].ord = i;
|
root->ary[i].ord = i;
|
||||||
root->ary[i].ifaddr = ifa;
|
root->ary[i].ifaddr = ifa;
|
||||||
root->ary[i].root = root;
|
|
||||||
ifa = ifa->ifa_next;
|
ifa = ifa->ifa_next;
|
||||||
}
|
}
|
||||||
RTYPEDDATA_DATA(addr) = &root->ary[0];
|
RTYPEDDATA_DATA(addr) = &root->ary[0];
|
||||||
|
|
Loading…
Reference in a new issue