net/*, ...: use AF_LOCAL instead of AF_UNIX

This commit is contained in:
Max Kellermann
2017-08-10 12:26:15 +02:00
parent 796956970e
commit 54de8b8e77
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ AllocatedSocketAddress::SetLocal(const char *path) noexcept
struct sockaddr_un *sun;
SetSize(sizeof(*sun) - sizeof(sun->sun_path) + path_length);
sun = (struct sockaddr_un *)address;
sun->sun_family = AF_UNIX;
sun->sun_family = AF_LOCAL;
memcpy(sun->sun_path, path, path_length);
if (is_abstract)