summaryrefslogtreecommitdiffstats
path: root/safe_libc/src/stdio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'safe_libc/src/stdio.rs')
-rw-r--r--safe_libc/src/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/safe_libc/src/stdio.rs b/safe_libc/src/stdio.rs
index 5f33f74..271f023 100644
--- a/safe_libc/src/stdio.rs
+++ b/safe_libc/src/stdio.rs
@@ -22,7 +22,7 @@ impl OStream {
pub fn write(&mut self, b: &[u8]) {
unsafe {
libc::fwrite(
- b.as_ptr() as *const libc::c_void,
+ b.as_ptr().cast(),
1,
b.len(),
self.file,