Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
fixup! Fix ip_monitor example
Browse files Browse the repository at this point in the history
  • Loading branch information
WGH- committed Aug 29, 2022
1 parent 6077ef4 commit 546e944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtnetlink/examples/ip_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use rtnetlink::{
sys::{AsyncSocket, SocketAddr},
};

fn nl_mgrp(group: u32) -> u32 {
const fn nl_mgrp(group: u32) -> u32 {
if group > 31 {
panic!("use NETLINK_ADD_MEMBERSHIP for this group");
panic!("use netlink_sys::Socket::add_membership() for this group");
}
if group == 0 {
0
Expand Down

0 comments on commit 546e944

Please sign in to comment.