Explorar o código

header/sys_un: Set sockaddr_un members to public.

Future commits will make use of this, in order to support AF_UNIX
sockets.
Tiago Lam %!s(int64=5) %!d(string=hai) anos
pai
achega
2bc667f71c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/header/sys_un/mod.rs

+ 2 - 2
src/header/sys_un/mod.rs

@@ -2,6 +2,6 @@ use crate::{header::sys_socket::sa_family_t, platform::types::*};
 
 #[repr(C)]
 pub struct sockaddr_un {
-    sun_family: sa_family_t,
-    sun_path: [c_char; 108],
+    pub sun_family: sa_family_t,
+    pub sun_path: [c_char; 108],
 }