diff options
| author | Rukai <[email protected]> | 2021-07-04 12:42:39 +1000 |
|---|---|---|
| committer | Rukai <[email protected]> | 2021-07-04 12:46:04 +1000 |
| commit | 56d0c5ffe1c7f49473e479e791b31685a6faaba7 (patch) | |
| tree | 5959d5fd9fffa8717b724dd317b3dd355f7c0bf1 /examples/std/src/tuntap.rs | |
| parent | 8615ffb523edbfa10b9bc13c24668da760cf06c5 (diff) | |
Fix warnings in std and rp
Diffstat (limited to 'examples/std/src/tuntap.rs')
| -rw-r--r-- | examples/std/src/tuntap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index dd453deb3..53d3afd5c 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -7,10 +7,10 @@ use std::io::{Read, Write}; | |||
| 7 | use std::os::unix::io::{AsRawFd, RawFd}; | 7 | use std::os::unix::io::{AsRawFd, RawFd}; |
| 8 | 8 | ||
| 9 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; | 9 | pub const SIOCGIFMTU: libc::c_ulong = 0x8921; |
| 10 | pub const SIOCGIFINDEX: libc::c_ulong = 0x8933; | 10 | pub const _SIOCGIFINDEX: libc::c_ulong = 0x8933; |
| 11 | pub const ETH_P_ALL: libc::c_short = 0x0003; | 11 | pub const _ETH_P_ALL: libc::c_short = 0x0003; |
| 12 | pub const TUNSETIFF: libc::c_ulong = 0x400454CA; | 12 | pub const TUNSETIFF: libc::c_ulong = 0x400454CA; |
| 13 | pub const IFF_TUN: libc::c_int = 0x0001; | 13 | pub const _IFF_TUN: libc::c_int = 0x0001; |
| 14 | pub const IFF_TAP: libc::c_int = 0x0002; | 14 | pub const IFF_TAP: libc::c_int = 0x0002; |
| 15 | pub const IFF_NO_PI: libc::c_int = 0x1000; | 15 | pub const IFF_NO_PI: libc::c_int = 0x1000; |
| 16 | 16 | ||
