Skip to content

Commit

Permalink
Trivial fixes to make it compile
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzzy committed Jun 7, 2012
1 parent b79517b commit 7dad894
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/servo/gfx/renderer.rs
Expand Up @@ -5,6 +5,7 @@ import image::base::image;
import dl = layout::display_list;
import azure::*;
import azure::bindgen::*;
import libc::size_t;

enum msg {
render(dl::display_list),
Expand Down Expand Up @@ -185,7 +186,7 @@ fn draw_some_text(draw_target: AzDrawTargetRef) {
let fontprov = vec::as_buf(fontbin) {|buf|
CGDataProviderCreateWithData(ptr::null(),
unsafe { unsafe::reinterpret_cast(buf) },
fontbin.len(),
fontbin.len() as size_t,
ptr::null())
};

Expand Down
6 changes: 5 additions & 1 deletion src/servo/net.rs
Expand Up @@ -18,7 +18,11 @@ iface io_service {
}

class file_channel implements channel {
new() { }
let bogus : int;

new() {
self.bogus = 0;
}

fn uri() -> uri { fail }
fn open() -> input_stream { fail }
Expand Down

0 comments on commit 7dad894

Please sign in to comment.