summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 049965e5..1e84854f 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -689,7 +689,7 @@ pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType
let feat_atomic = features::socket_atomic_cloexec();
if feat_atomic {
- ty = ty | flags.bits();
+ ty |= flags.bits();
}
// TODO: Check the kernel version
@@ -732,7 +732,7 @@ pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: Sock
let feat_atomic = features::socket_atomic_cloexec();
if feat_atomic {
- ty = ty | flags.bits();
+ ty |= flags.bits();
}
let mut fds = [-1, -1];
let res = unsafe {