Skip to content

Commit

Permalink
gcoap: cast payload to void*
Browse files Browse the repository at this point in the history
This accounts for a C-nonbreaking-Rust-breaking change in RIOT APIs.

Merges: https://gitlab.com/etonomy/riot-wrappers/-/merge_requests/10
See-Also: RIOT-OS/RIOT#17958
  • Loading branch information
benpicco authored and chrysn committed May 3, 2022
1 parent 75e783e commit aab605f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gcoap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl PacketBuffer {
coap_opt_add_opaque(
self.pkt,
optnum,
data.as_ptr(),
data.as_ptr() as _,
data.len().try_into().unwrap(),
)
}
Expand Down

0 comments on commit aab605f

Please sign in to comment.