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 1
1
extern crate libc;
2
2
3
- use self :: libc:: { c_int, c_uint, uint8_t } ;
3
+ use self :: libc:: { c_int, c_uint} ;
4
4
use crate :: defines:: { AfError , Backend } ;
5
5
use crate :: error:: HANDLE_ERROR ;
6
6
7
7
extern "C" {
8
- fn af_set_backend ( bknd : uint8_t ) -> c_int ;
8
+ fn af_set_backend ( bknd : u8 ) -> c_int ;
9
9
fn af_get_backend_count ( num_backends : * mut c_uint ) -> c_int ;
10
10
fn af_get_available_backends ( backends : * mut c_int ) -> c_int ;
11
11
fn af_get_active_backend ( backend : * mut c_int ) -> c_int ;
@@ -18,7 +18,7 @@ extern "C" {
18
18
/// - `backend` to which to switch to
19
19
pub fn set_backend ( backend : Backend ) {
20
20
unsafe {
21
- let err_val = af_set_backend ( backend as uint8_t ) ;
21
+ let err_val = af_set_backend ( backend as u8 ) ;
22
22
HANDLE_ERROR ( AfError :: from ( err_val) ) ;
23
23
}
24
24
}
You can’t perform that action at this time.
0 commit comments