@@ -59,7 +59,7 @@ impl From<UsdtOpts> for libbpf_sys::bpf_usdt_opts {
5959 _non_exhaustive,
6060 } = opts;
6161 libbpf_sys:: bpf_usdt_opts {
62- sz : mem:: size_of :: < Self > ( ) as u64 ,
62+ sz : mem:: size_of :: < Self > ( ) as _ ,
6363 usdt_cookie : cookie,
6464 }
6565 }
@@ -82,7 +82,7 @@ impl From<TracepointOpts> for libbpf_sys::bpf_tracepoint_opts {
8282 } = opts;
8383
8484 libbpf_sys:: bpf_tracepoint_opts {
85- sz : mem:: size_of :: < Self > ( ) as u64 ,
85+ sz : mem:: size_of :: < Self > ( ) as _ ,
8686 bpf_cookie : cookie,
8787 }
8888 }
@@ -818,11 +818,11 @@ impl Program {
818818 pub fn attach_iter ( & mut self , map_fd : BorrowedFd < ' _ > ) -> Result < Link > {
819819 util:: create_bpf_entity_checked ( || unsafe {
820820 let mut linkinfo = libbpf_sys:: bpf_iter_link_info:: default ( ) ;
821- linkinfo. map . map_fd = map_fd. as_raw_fd ( ) as u32 ;
821+ linkinfo. map . map_fd = map_fd. as_raw_fd ( ) as _ ;
822822 let attach_opt = libbpf_sys:: bpf_iter_attach_opts {
823823 link_info : & mut linkinfo as * mut libbpf_sys:: bpf_iter_link_info ,
824- link_info_len : std:: mem:: size_of :: < libbpf_sys:: bpf_iter_link_info > ( ) as u32 ,
825- sz : std:: mem:: size_of :: < libbpf_sys:: bpf_iter_attach_opts > ( ) as u64 ,
824+ link_info_len : std:: mem:: size_of :: < libbpf_sys:: bpf_iter_link_info > ( ) as _ ,
825+ sz : std:: mem:: size_of :: < libbpf_sys:: bpf_iter_attach_opts > ( ) as _ ,
826826 ..Default :: default ( )
827827 } ;
828828
0 commit comments