Skip to content

Commit

Permalink
fix(types): BaoIoRequest return value
Browse files Browse the repository at this point in the history
This commit is based on replacing the return type of
the BaoIoRequest struct (u64 -> i32) in order to handle
error cases (when the return value is less than zero).

Signed-off-by: joaopeixoto13 <[email protected]>
  • Loading branch information
joaopeixoto13 committed Apr 18, 2024
1 parent 771ad83 commit 71aebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct BaoIoRequest {
pub access_width: u64,
pub cpu_id: u64,
pub vcpu_id: u64,
pub ret: u64,
pub ret: i32,
}

/// Struct representing a Bao I/O event file descriptor.
Expand Down

0 comments on commit 71aebc9

Please sign in to comment.