1- use crate :: bindings:: { fclose , fopen , fprintf , fwrite , lib_ccx_ctx, net_send_epg, FILE } ;
1+ use crate :: bindings:: { lib_ccx_ctx, net_send_epg, FILE } ;
22use crate :: common:: CType ;
33use crate :: ctorust:: FromCType ;
44use crate :: transportstream:: epg_event:: { EPGEventRust , EPGRatingRust } ;
55use crate :: transportstream:: tables:: TS_PMT_MAP_SIZE ;
6+ use crate :: { fclose, fopen, fprintf, fwrite} ;
67use chrono:: { Datelike , NaiveDate , NaiveDateTime , NaiveTime , Timelike } ;
78use encoding_rs:: * ;
89use lib_ccxr:: common:: Options ;
@@ -11,7 +12,7 @@ use lib_ccxr::info;
1112use lib_ccxr:: util:: log:: DebugMessageFlag ;
1213use std:: alloc:: { alloc, dealloc, realloc, Layout } ;
1314use std:: ffi:: { CStr , CString } ;
14- use std:: os:: raw:: { c_char, c_ulong , c_void} ;
15+ use std:: os:: raw:: { c_char, c_void} ;
1516use std:: ptr;
1617
1718/// Specific errors for EPG DVB string decoding.
@@ -162,7 +163,7 @@ fn write_raw_bytes(f: &mut FILE, bytes: &[u8]) {
162163 fwrite (
163164 bytes. as_ptr ( ) as * const c_void ,
164165 1 ,
165- bytes. len ( ) as c_ulong ,
166+ bytes. len ( ) as _ ,
166167 f as * mut FILE ,
167168 ) ;
168169 }
0 commit comments