mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-30 17:49:08 +00:00
can: fix VirtioCan{Tx,Ctrl}Response definition
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
bb1d706fe6
commit
c90c64272c
@ -70,11 +70,10 @@ unsafe impl ByteValued for VirtioCanConfig {}
|
||||
///
|
||||
/// The response message is a stream of bytes, where first byte represents the
|
||||
/// status, and rest is message specific data.
|
||||
|
||||
#[derive(Copy, Clone, Default)]
|
||||
#[repr(C)]
|
||||
pub struct VirtioCanTxResponse {
|
||||
pub result: i8,
|
||||
pub result: u8,
|
||||
}
|
||||
|
||||
// SAFETY: The layout of the structure is fixed and can be initialized by
|
||||
@ -136,7 +135,7 @@ unsafe impl ByteValued for VirtioCanCtrlRequest {}
|
||||
#[derive(Copy, Clone, Default)]
|
||||
#[repr(C)]
|
||||
pub struct VirtioCanCtrlResponse {
|
||||
pub result: i8,
|
||||
pub result: u8,
|
||||
}
|
||||
|
||||
// SAFETY: The layout of the structure is fixed and can be initialized by
|
||||
|
||||
Loading…
Reference in New Issue
Block a user