File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11extern crate libc;
22
3- use self :: libc:: { c_int, c_uint, uint8_t } ;
3+ use self :: libc:: { c_int, c_uint} ;
44use crate :: defines:: { AfError , Backend } ;
55use crate :: error:: HANDLE_ERROR ;
66
77extern "C" {
8- fn af_set_backend ( bknd : uint8_t ) -> c_int ;
8+ fn af_set_backend ( bknd : u8 ) -> c_int ;
99 fn af_get_backend_count ( num_backends : * mut c_uint ) -> c_int ;
1010 fn af_get_available_backends ( backends : * mut c_int ) -> c_int ;
1111 fn af_get_active_backend ( backend : * mut c_int ) -> c_int ;
@@ -18,7 +18,7 @@ extern "C" {
1818/// - `backend` to which to switch to
1919pub fn set_backend ( backend : Backend ) {
2020 unsafe {
21- let err_val = af_set_backend ( backend as uint8_t ) ;
21+ let err_val = af_set_backend ( backend as u8 ) ;
2222 HANDLE_ERROR ( AfError :: from ( err_val) ) ;
2323 }
2424}
You can’t perform that action at this time.
0 commit comments