Skip to content

Commit 6a370d0

Browse files
committed
---
yaml --- r: 98273 b: refs/heads/master c: c6123ca h: refs/heads/master i: 98271: b4112de v: v3
1 parent 651c064 commit 6a370d0

File tree

6 files changed

+159
-209
lines changed

6 files changed

+159
-209
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d4640f9d661ac293bce5f5bc9f8e9150d363e178
2+
refs/heads/master: c6123ca105880de1ec34ef1d85391ccc8071a7b9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b6400f998497c3958f40997a71756ead344a776d
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36

trunk/src/librustuv/addrinfo.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use ai = std::io::net::addrinfo;
12+
use std::cast;
1213
use std::libc::c_int;
1314
use std::ptr::null;
1415
use std::rt::task::BlockedTask;
@@ -138,7 +139,8 @@ pub fn accum_addrinfo(addr: &Addrinfo) -> ~[ai::Info] {
138139

139140
let mut addrs = ~[];
140141
loop {
141-
let rustaddr = net::sockaddr_to_socket_addr((*addr).ai_addr);
142+
let rustaddr = net::sockaddr_to_addr(cast::transmute((*addr).ai_addr),
143+
(*addr).ai_addrlen as uint);
142144

143145
let mut flags = 0;
144146
each_ai_flag(|cval, aival| {

trunk/src/librustuv/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ via `close` and `delete` methods.
4747
use std::cast;
4848
use std::io;
4949
use std::io::IoError;
50-
use std::libc::{c_int, malloc};
50+
use std::libc::c_int;
5151
use std::ptr::null;
5252
use std::ptr;
5353
use std::rt::local::Local;

0 commit comments

Comments
 (0)