File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use crate::Result;
31
31
#[ derive( Debug ) ]
32
32
struct MapSkelConfig {
33
33
name : String ,
34
- p : Box < * mut bpf_map > ,
34
+ map : Box < * mut bpf_map > ,
35
35
mmaped : Option < Box < * mut c_void > > ,
36
36
}
37
37
@@ -95,7 +95,7 @@ impl<'dat> ObjectSkeletonConfigBuilder<'dat> {
95
95
96
96
self . maps . push ( MapSkelConfig {
97
97
name : name. as_ref ( ) . to_string ( ) ,
98
- p : Box :: new ( ptr:: null_mut ( ) ) ,
98
+ map : Box :: new ( ptr:: null_mut ( ) ) ,
99
99
mmaped : m,
100
100
} ) ;
101
101
@@ -137,7 +137,7 @@ impl<'dat> ObjectSkeletonConfigBuilder<'dat> {
137
137
// leak. Extremely unlikely to have invalid unicode anyways.
138
138
( * current_map) . name = str_to_cstring_and_pool ( & map. name , string_pool)
139
139
. expect ( "Invalid unicode in map name" ) ;
140
- ( * current_map) . map = & mut * map. p ;
140
+ ( * current_map) . map = & mut * map. map ;
141
141
( * current_map) . mmaped = if let Some ( ref mut mmaped) = map. mmaped {
142
142
& mut * * mmaped
143
143
} else {
You can’t perform that action at this time.
0 commit comments