Skip to content

Commit a359550

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 12972 b: refs/heads/master c: 64048d4 h: refs/heads/master v: v3
1 parent e30820d commit a359550

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
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: 83cca502406dec68ec7833fa41e3821d0fe058c0
2+
refs/heads/master: 64048d43d6d71d022b8324b36b5132df4099e2ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libstd/uv_ll.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,15 @@ unsafe fn tcp_bind(tcp_server_ptr: *uv_tcp_t,
637637
addr_ptr);
638638
}
639639

640-
unsafe fn listen(stream: *libc::c_void, backlog: libc::c_int,
640+
unsafe fn listen<T>(stream: *T, backlog: libc::c_int,
641641
cb: *u8) -> libc::c_int {
642-
ret rustrt::rust_uv_listen(stream, backlog, cb);
642+
ret rustrt::rust_uv_listen(stream as *libc::c_void, backlog, cb);
643643
}
644644

645-
unsafe fn accept(server: *libc::c_void, client: *libc::c_void)
645+
unsafe fn accept<T, U>(server: *T, client: *T)
646646
-> libc::c_int {
647-
ret rustrt::rust_uv_accept(server, client);
647+
ret rustrt::rust_uv_accept(server as *libc::c_void,
648+
client as *libc::c_void);
648649
}
649650

650651
unsafe fn write<T>(req: *uv_write_t, stream: *T,

0 commit comments

Comments
 (0)