tree-wide: replace AF_LOCAL with AF_UNIX

This commit is contained in:
Yu Watanabe
2022-05-14 10:51:05 +01:00
committed by Luca Boccassi
parent bf7a24e50f
commit 618b3642e1
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ int udev_ctrl_new_from_fd(UdevCtrl **ret, int fd) {
assert(ret);
if (fd < 0) {
sock = socket(AF_LOCAL, SOCK_SEQPACKET|SOCK_NONBLOCK|SOCK_CLOEXEC, 0);
sock = socket(AF_UNIX, SOCK_SEQPACKET|SOCK_NONBLOCK|SOCK_CLOEXEC, 0);
if (sock < 0)
return log_error_errno(errno, "Failed to create socket: %m");
}