File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ struct MapSkelConfig {
38
38
#[ derive( Debug ) ]
39
39
struct ProgSkelConfig {
40
40
name : String ,
41
- p : Box < * mut bpf_program > ,
41
+ prog : Box < * mut bpf_program > ,
42
42
link : Box < * mut bpf_link > ,
43
43
}
44
44
@@ -106,7 +106,7 @@ impl<'dat> ObjectSkeletonConfigBuilder<'dat> {
106
106
pub fn prog < T : AsRef < str > > ( & mut self , name : T ) -> & mut Self {
107
107
self . progs . push ( ProgSkelConfig {
108
108
name : name. as_ref ( ) . to_string ( ) ,
109
- p : Box :: new ( ptr:: null_mut ( ) ) ,
109
+ prog : Box :: new ( ptr:: null_mut ( ) ) ,
110
110
link : Box :: new ( ptr:: null_mut ( ) ) ,
111
111
} ) ;
112
112
@@ -172,7 +172,7 @@ impl<'dat> ObjectSkeletonConfigBuilder<'dat> {
172
172
// See above for `expect()` rationale
173
173
( * current_prog) . name = str_to_cstring_and_pool ( & prog. name , string_pool)
174
174
. expect ( "Invalid unicode in prog name" ) ;
175
- ( * current_prog) . prog = & mut * prog. p ;
175
+ ( * current_prog) . prog = & mut * prog. prog ;
176
176
( * current_prog) . link = & mut * prog. link ;
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments