diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-25 23:29:59 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-25 23:29:59 +0200 |
commit | e18dfc4c126d0ed664125d8b9f992b66bd06cff1 (patch) | |
tree | cb25923ea270835a816641e26d2372e5b2966b33 /src | |
parent | implement libmds_connection_send_unlocked (diff) | |
download | mds-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 'src')
-rw-r--r-- | src/mds-base.c | 2 |
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; |