File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -847,12 +847,13 @@ impl<'a> ControlMessage<'a> {
847
847
}
848
848
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
849
849
ControlMessage :: AlgSetIv ( iv) => {
850
+ #[ allow( deprecated) ]
850
851
let af_alg_iv = libc:: af_alg_iv {
851
852
ivlen : iv. len ( ) as u32 ,
852
853
iv : [ 0u8 ; 0 ] ,
853
854
} ;
854
855
855
- let size = mem:: size_of :: < libc :: af_alg_iv > ( ) ;
856
+ let size = mem:: size_of_val ( & af_alg_iv ) ;
856
857
857
858
unsafe {
858
859
ptr:: copy_nonoverlapping (
@@ -915,7 +916,7 @@ impl<'a> ControlMessage<'a> {
915
916
}
916
917
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
917
918
ControlMessage :: AlgSetIv ( iv) => {
918
- mem:: size_of :: < libc :: af_alg_iv > ( ) + iv. len ( )
919
+ mem:: size_of_val ( & iv ) + iv. len ( )
919
920
} ,
920
921
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
921
922
ControlMessage :: AlgSetOp ( op) => {
You can’t perform that action at this time.
0 commit comments