Fix windows breakage.

This commit is contained in:
Graydon Hoare 2012-07-24 13:53:15 -07:00
parent 539a160bb7
commit b91da0945d
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ mod win32 {
let mut done = false;
while !done {
let buf = vec::to_mut(vec::from_elem(n as uint, 0u16));
do vec::as_mut_buf(buf) |b| {
do vec::as_mut_buf(buf) |b, _sz| {
let k : dword = f(b, tmpbuf_sz as dword);
if k == (0 as dword) {
done = true;

View file

@ -136,7 +136,7 @@ fn with_envp<T>(env: option<~[(~str,~str)]>,
::unsafe::forget(v);
}
blk += ~[0_u8];
vec::as_buf(blk, |p| cb(::unsafe::reinterpret_cast(p)))
vec::as_buf(blk, |p, _len| cb(::unsafe::reinterpret_cast(p)))
}
_ {
cb(ptr::null())