diff options
Diffstat (limited to 'generic/threadshare')
-rw-r--r-- | generic/threadshare/src/socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/threadshare/src/socket.rs b/generic/threadshare/src/socket.rs index bffd9081d..dca8dc982 100644 --- a/generic/threadshare/src/socket.rs +++ b/generic/threadshare/src/socket.rs @@ -217,7 +217,7 @@ impl GioSocketWrapper { } #[cfg(unix)] - pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::error::Error> { + pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> { use libc::{IPPROTO_IP, IPPROTO_IPV6, IPV6_TCLASS, IP_TOS}; let tos = (qos_dscp & 0x3f) << 2; @@ -234,7 +234,7 @@ impl GioSocketWrapper { } #[cfg(not(unix))] - pub fn set_tos(&self, qos_dscp: i32) -> Result<(), Error> { + pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> { Ok(()) } |