]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
s/PF_UNIX/AF_UNIX
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 8 Feb 2022 08:10:34 +0000 (12:10 +0400)
committerSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 15:26:17 +0000 (16:26 +0100)
PF_UNIX is an old BSD 4.x relic, and even there they promise that PF_UNIX
is the same as AF_UNIX. (Linux socket(2))

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
dbus/dbus-sysdeps-unix.c

index 24a4a242499f4082e8c3c616d4063abf7455f793..a7856e778daf6a5e83e080163b7f0ab484bae2fb 100644 (file)
@@ -293,7 +293,7 @@ static dbus_bool_t
 _dbus_open_unix_socket (int              *fd,
                         DBusError        *error)
 {
-  return _dbus_open_socket(fd, PF_UNIX, SOCK_STREAM, 0, error);
+  return _dbus_open_socket(fd, AF_UNIX, SOCK_STREAM, 0, error);
 }
 
 /**