From a6a9b6259f597c6345d485ce2d1409e9bd87ba18 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Fri, 28 Jul 2017 10:57:22 -0700 Subject: [PATCH] missed a format I guess --- src/connection_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection_unix.cpp b/src/connection_unix.cpp index e3c01bb..0249ab1 100644 --- a/src/connection_unix.cpp +++ b/src/connection_unix.cpp @@ -32,7 +32,6 @@ static const char* GetTempPath() /*static*/ BaseConnection* BaseConnection::Create() { - PipeAddr.sun_family = AF_UNIX; return &Connection; } @@ -54,7 +53,8 @@ bool BaseConnection::Open() } fcntl(self->sock, F_SETFL, O_NONBLOCK); for (int pipeNum = 0; pipeNum < 10; ++pipeNum) { - snprintf(PipeAddr.sun_path, sizeof(PipeAddr.sun_path), "%s/discord-ipc-%d", tempPath, pipeNum); + snprintf( + PipeAddr.sun_path, sizeof(PipeAddr.sun_path), "%s/discord-ipc-%d", tempPath, pipeNum); int err = connect(self->sock, (const sockaddr*)&PipeAddr, sizeof(PipeAddr)); if (err == 0) { return true;