Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
[ipc] B: Fixing Message Constructor Signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Aug 26, 2024
1 parent 66fdca8 commit a03d955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/event/information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl From<EventInformation> for Message {
.copy_from_slice(&instruction.to_ne_bytes());
}

Message::new(info.pid, info.pid, payload, MessageType::Exception)
Message::new(info.pid, info.pid, MessageType::Exception, payload)
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/ipc/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl Message {
///
/// - `source`: The source process.
/// - `destination`: The destination process.
/// - `message_type`: The type of the message.
/// - `payload`: The message payload.
///
/// # Returns
Expand All @@ -125,8 +126,8 @@ impl Message {
pub fn new(
source: ProcessIdentifier,
destination: ProcessIdentifier,
payload: [u8; Self::PAYLOAD_SIZE],
message_type: MessageType,
payload: [u8; Self::PAYLOAD_SIZE],
) -> Self {
Self {
source,
Expand Down

0 comments on commit a03d955

Please sign in to comment.