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
@@ -403,7 +403,7 @@ static int bus_socket_set_transient_property(
if (p->address.type < 0)
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid address type: %s", t);
if (socket_address_family(&p->address) != AF_LOCAL && p->address.type == SOCK_SEQPACKET)
if (socket_address_family(&p->address) != AF_UNIX && p->address.type == SOCK_SEQPACKET)
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Address family not supported: %s", a);
}
+1 -1
View File
@@ -644,7 +644,7 @@ int config_parse_socket_listen(
p->address.type = SOCK_SEQPACKET;
}
if (socket_address_family(&p->address) != AF_LOCAL && p->address.type == SOCK_SEQPACKET) {
if (socket_address_family(&p->address) != AF_UNIX && p->address.type == SOCK_SEQPACKET) {
log_syntax(unit, LOG_WARNING, filename, line, 0, "Address family not supported, ignoring: %s", rvalue);
return 0;
}