@@ -493,10 +493,10 @@ mod _sqlite {
493493 unsafe extern "C" fn authorizer_callback (
494494 data : * mut c_void ,
495495 action : c_int ,
496- arg1 : * const i8 ,
497- arg2 : * const i8 ,
498- db_name : * const i8 ,
499- access : * const i8 ,
496+ arg1 : * const libc :: c_char ,
497+ arg2 : * const libc :: c_char ,
498+ db_name : * const libc :: c_char ,
499+ access : * const libc :: c_char ,
500500 ) -> c_int {
501501 let ( callable, vm) = ( * data. cast :: < Self > ( ) ) . retrive ( ) ;
502502 let f = || -> PyResult < c_int > {
@@ -2304,7 +2304,7 @@ mod _sqlite {
23042304 raise_exception ( typ. to_owned ( ) , extended_errcode, errmsg, vm)
23052305 }
23062306
2307- fn open ( path : * const i8 , uri : bool , vm : & VirtualMachine ) -> PyResult < Self > {
2307+ fn open ( path : * const libc :: c_char , uri : bool , vm : & VirtualMachine ) -> PyResult < Self > {
23082308 let mut db = null_mut ( ) ;
23092309 let ret = unsafe {
23102310 sqlite3_open_v2 (
@@ -2328,8 +2328,8 @@ mod _sqlite {
23282328
23292329 fn prepare (
23302330 self ,
2331- sql : * const i8 ,
2332- tail : * mut * const i8 ,
2331+ sql : * const libc :: c_char ,
2332+ tail : * mut * const libc :: c_char ,
23332333 vm : & VirtualMachine ,
23342334 ) -> PyResult < Option < SqliteStatement > > {
23352335 let mut st = null_mut ( ) ;
@@ -2412,7 +2412,7 @@ mod _sqlite {
24122412 #[ allow( clippy:: too_many_arguments) ]
24132413 fn create_function (
24142414 self ,
2415- name : * const i8 ,
2415+ name : * const libc :: c_char ,
24162416 narg : c_int ,
24172417 flags : c_int ,
24182418 data : * mut c_void ,
@@ -2631,15 +2631,15 @@ mod _sqlite {
26312631 unsafe { sqlite3_column_text ( self . st , pos) }
26322632 }
26332633
2634- fn column_decltype ( self , pos : c_int ) -> * const i8 {
2634+ fn column_decltype ( self , pos : c_int ) -> * const libc :: c_char {
26352635 unsafe { sqlite3_column_decltype ( self . st , pos) }
26362636 }
26372637
26382638 fn column_bytes ( self , pos : c_int ) -> c_int {
26392639 unsafe { sqlite3_column_bytes ( self . st , pos) }
26402640 }
26412641
2642- fn column_name ( self , pos : c_int ) -> * const i8 {
2642+ fn column_name ( self , pos : c_int ) -> * const libc :: c_char {
26432643 unsafe { sqlite3_column_name ( self . st , pos) }
26442644 }
26452645
@@ -2803,7 +2803,7 @@ mod _sqlite {
28032803 Ok ( obj)
28042804 }
28052805
2806- fn ptr_to_str < ' a > ( p : * const i8 , vm : & VirtualMachine ) -> PyResult < & ' a str > {
2806+ fn ptr_to_str < ' a > ( p : * const libc :: c_char , vm : & VirtualMachine ) -> PyResult < & ' a str > {
28072807 if p. is_null ( ) {
28082808 return Err ( vm. new_memory_error ( "string pointer is null" . to_owned ( ) ) ) ;
28092809 }
@@ -2840,7 +2840,7 @@ mod _sqlite {
28402840 }
28412841 }
28422842
2843- fn str_to_ptr_len ( s : & PyStr , vm : & VirtualMachine ) -> PyResult < ( * const i8 , i32 ) ><
8EA4
/span> {
2843+ fn str_to_ptr_len ( s : & PyStr , vm : & VirtualMachine ) -> PyResult < ( * const libc :: c_char , i32 ) > {
28442844 let len = c_int:: try_from ( s. byte_len ( ) )
28452845 . map_err ( |_| vm. new_overflow_error ( "TEXT longer than INT_MAX bytes" . to_owned ( ) ) ) ?;
28462846 let ptr = s. as_str ( ) . as_ptr ( ) . cast ( ) ;
@@ -2909,7 +2909,7 @@ mod _sqlite {
29092909 fn begin_statement_ptr_from_isolation_level (
29102910 s : & PyStr ,
29112911 vm : & VirtualMachine ,
2912- ) -> PyResult < * const i8 > {
2912+ ) -> PyResult < * const libc :: c_char > {
29132913 BEGIN_STATEMENTS
29142914 . iter ( )
29152915 . find ( |& & x| x[ 6 ..] . eq_ignore_ascii_case ( s. as_str ( ) . as_bytes ( ) ) )
0 commit comments