File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ use protobuf::Message;
89
89
use protobuf :: RepeatedField ;
90
90
91
91
#[no_mangle]
92
- pub unsafe extern " C" fn plugmain (s : * const c_char ) -> * const c_char {
93
- let r_str = CStr :: from_ptr (s ). to_str (). unwrap ();
92
+ pub unsafe extern " C" fn plugmain (args : * const c_char ) -> * const c_char {
93
+ let args = CStr :: from_ptr (args ). to_str (). unwrap ();
94
94
95
95
let mut prs = Vec :: <plug :: PassResult >:: new ();
96
96
prs . push (plug :: PassResult :: new ());
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ use protobuf::Message;
6
6
use protobuf:: RepeatedField ;
7
7
8
8
#[ no_mangle]
9
- pub unsafe extern "C" fn plugmain ( s : * const c_char ) -> * const c_char {
10
- let r_str = CStr :: from_ptr ( s ) . to_str ( ) . unwrap ( ) ;
9
+ pub unsafe extern "C" fn plugmain ( args : * const c_char ) -> * const c_char {
10
+ let args = CStr :: from_ptr ( args ) . to_str ( ) . unwrap ( ) ;
11
11
12
12
let mut prs = Vec :: < plug:: PassResult > :: new ( ) ;
13
13
prs. push ( plug:: PassResult :: new ( ) ) ;
You can’t perform that action at this time.
0 commit comments