aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-25 23:29:59 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-25 23:29:59 +0200
commite18dfc4c126d0ed664125d8b9f992b66bd06cff1 (patch)
treecb25923ea270835a816641e26d2372e5b2966b33 /src
parentimplement libmds_connection_send_unlocked (diff)
downloadmds-e18dfc4c126d0ed664125d8b9f992b66bd06cff1.tar.gz
mds-e18dfc4c126d0ed664125d8b9f992b66bd06cff1.tar.bz2
mds-e18dfc4c126d0ed664125d8b9f992b66bd06cff1.tar.xz
mds-base: missed to change this earlier, protocol family is PF_, not AF_, which would be address family
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-base.c b/src/mds-base.c
index e9c7c8b..3704ca9 100644
--- a/src/mds-base.c
+++ b/src/mds-base.c
@@ -179,7 +179,7 @@ int __attribute__((weak)) connect_to_display(void)
xsnprintf(pathname, "%s/%s.socket", MDS_RUNTIME_ROOT_DIRECTORY, display + 1);
address.sun_family = AF_UNIX;
strcpy(address.sun_path, pathname);
- fail_if ((socket_fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0);
+ fail_if ((socket_fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0);
fail_if (connect(socket_fd, (struct sockaddr*)(&address), sizeof(address)) < 0);
return 0;