Skip to content

Commit

Permalink
fix broken build
Browse files Browse the repository at this point in the history
We have a merge problem on main, one PR used functions there were
removed in another.
#448
#447

Sorry I should have noticed this and rebased.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Oct 18, 2022
1 parent 706601a commit c11c5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/netlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl Socket {
let msg = Self::create_addr_msg(link_id, addr);
let result = self.make_netlink_request(RtnlMessage::DelAddress(msg), NLM_F_ACK)?;
if !result.is_empty() {
return Err(NetavarkError::msg_str("unexpected netlink result"));
return Err(NetavarkError::msg("unexpected netlink result"));
}

Ok(())
Expand Down Expand Up @@ -217,7 +217,7 @@ impl Socket {

let result = self.make_netlink_request(RtnlMessage::DelRoute(msg), NLM_F_ACK)?;
if !result.is_empty() {
return Err(NetavarkError::msg_str("unexpected netlink result"));
return Err(NetavarkError::msg("unexpected netlink result"));
}

Ok(())
Expand Down

0 comments on commit c11c5f8

Please sign in to comment.