Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit f8c085f

Browse files
author
bors-servo
committed
Auto merge of #215 - Daggerbot:pr, r=larsbergstrom
Pass XFree param as '*mut _' to avoid c_void conflicts. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-layers/215) <!-- Reviewable:end -->
2 parents 8267281 + 871f856 commit f8c085f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ default = []
99
plugins = ["euclid/plugins", "azure/plugins", "skia/euclid/plugins", "io-surface/euclid/plugins"]
1010

1111
[dependencies]
12-
libc = "*"
12+
libc = "0.2"
1313
rustc-serialize = "*"
1414
log = "*"
1515
gleam = "0.1"
@@ -41,19 +41,19 @@ git = "https://github.com/servo/rust-glx"
4141
git = "https://github.com/servo/rust-glx"
4242

4343
[target.i686-unknown-linux-gnu.dependencies.x11]
44-
version = "2.0.0"
44+
version = "2.3.0"
4545
features = ["xlib"]
4646

4747
[target.x86_64-unknown-linux-gnu.dependencies.x11]
48-
version = "2.0.0"
48+
version = "2.3.0"
4949
features = ["xlib"]
5050

5151
[target.arm-unknown-linux-gnueabihf.dependencies.x11]
52-
version = "2.0.0"
52+
version = "2.3.0"
5353
features = ["xlib"]
5454

5555
[target.aarch64-unknown-linux-gnu.dependencies.x11]
56-
version = "2.0.0"
56+
version = "2.3.0"
5757
features = ["xlib"]
5858

5959
[target.arm-linux-androideabi.dependencies.egl]

src/platform/linux/surface.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl NativeDisplay {
101101
let config = *configs.offset(0);
102102
let visual = glx::GetVisualFromFBConfig(mem::transmute(display), config);
103103

104-
xlib::XFree(configs as *mut c_void);
104+
xlib::XFree(configs as *mut _);
105105
return (mem::transmute(visual), Some(config));
106106
}
107107

@@ -113,13 +113,13 @@ impl NativeDisplay {
113113
let visual: *mut xlib::XVisualInfo =
114114
mem::transmute(glx::GetVisualFromFBConfig(mem::transmute(display), config));
115115
if (*visual).depth == 32 {
116-
xlib::XFree(configs as *mut c_void);
116+
xlib::XFree(configs as *mut _);
117117
return (visual, Some(config));
118118
}
119-
xlib::XFree(visual as *mut c_void);
119+
xlib::XFree(visual as *mut _);
120120
}
121121

122-
xlib::XFree(configs as *mut c_void);
122+
xlib::XFree(configs as *mut _);
123123
panic!("Could not find 32-bit visual.");
124124
}
125125
}

0 commit comments

Comments
 (0)