Skip to content

Commit

Permalink
Let noop() use std::os::raw::c_void instead of libc::c_void
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette-eai committed Mar 8, 2017
1 parent 5fe297d commit 7743e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow-sys/examples/multiplication.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate libc;
extern crate tensorflow_sys as ffi;

use libc::{c_int, c_void, int64_t, size_t};
use libc::{c_int, int64_t, size_t};
use std::ffi::{CStr, CString};
use std::path::Path;

Expand Down Expand Up @@ -107,7 +107,7 @@ fn main() {
ffi::TF_DeleteSessionOptions(options);
}

unsafe extern "C" fn noop(_: *mut c_void, _: size_t, _: *mut c_void) {}
unsafe extern "C" fn noop(_: *mut std::os::raw::c_void, _: size_t, _: *mut std::os::raw::c_void) {}
}

fn read<T: AsRef<Path>>(path: T) -> Vec<u8> {
Expand Down

0 comments on commit 7743e53

Please sign in to comment.