File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pub extern "C" fn uwr_request_handler(addr: *mut u8) -> i32 {
51
51
uwr_init_ctx ( ctx, addr, 4096 ) ;
52
52
53
53
// Set where we will copy the request into
54
- uwr_set_req_buf ( ctx, unsafe { addr_of_mut ! ( REQUEST_BUF ) } , LUW_SRB_NONE ) ;
54
+ uwr_set_req_buf ( ctx, addr_of_mut ! ( REQUEST_BUF ) , LUW_SRB_NONE ) ;
55
55
56
56
// Define the Response Body Text.
57
57
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub unsafe extern "C" fn uwr_response_end_handler() {
32
32
33
33
#[ no_mangle]
34
34
pub extern "C" fn uwr_request_handler ( addr : * mut u8 ) -> i32 {
35
- let ctx: * mut luw_ctx_t = unsafe { addr_of_mut ! ( CTX ) } ;
35
+ let ctx: * mut luw_ctx_t = addr_of_mut ! ( CTX ) ;
36
36
let mut f;
37
37
let bytes_wrote: isize ;
38
38
let mut total = unsafe { TOTAL_BYTES_WROTE } ;
@@ -41,7 +41,7 @@ pub extern "C" fn uwr_request_handler(addr: *mut u8) -> i32 {
41
41
uwr_init_ctx ( ctx, addr, 0 ) ;
42
42
uwr_set_req_buf (
43
43
ctx,
44
- unsafe { addr_of_mut ! ( REQUEST_BUF ) } ,
44
+ addr_of_mut ! ( REQUEST_BUF ) ,
45
45
LUW_SRB_NONE ,
46
46
) ;
47
47
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub fn upload_reflector(ctx: *mut luw_ctx_t) -> i32 {
72
72
73
73
#[ no_mangle]
74
74
pub extern "C" fn uwr_request_handler ( addr : * mut u8 ) -> i32 {
75
- let ctx: * mut luw_ctx_t = unsafe { addr_of_mut ! ( CTX ) } ;
75
+ let ctx: * mut luw_ctx_t = addr_of_mut ! ( CTX ) ;
76
76
77
77
if unsafe { REQUEST_BUF . is_null ( ) } {
78
78
uwr_init_ctx ( ctx, addr, 0 /* Response offset */ ) ;
@@ -87,7 +87,7 @@ pub extern "C" fn uwr_request_handler(addr: *mut u8) -> i32 {
87
87
*/
88
88
uwr_set_req_buf (
89
89
ctx,
90
- unsafe { addr_of_mut ! ( REQUEST_BUF ) } ,
90
+ addr_of_mut ! ( REQUEST_BUF ) ,
91
91
LUW_SRB_APPEND | LUW_SRB_ALLOC | LUW_SRB_FULL_SIZE ,
92
92
) ;
93
93
} else {
You can’t perform that action at this time.
0 commit comments