From e18dfc4c126d0ed664125d8b9f992b66bd06cff1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Aug 2015 23:29:59 +0200 Subject: mds-base: missed to change this earlier, protocol family is PF_, not AF_, which would be address family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2