From 8f1dc553d2eeed2354d6c914c4f1aded20dbb458 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 16 Nov 2020 10:53:18 +0100 Subject: PadInterface: try again getting OSX to compile --- src/PadInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PadInterface.cpp b/src/PadInterface.cpp index 3de1100..47b9bce 100644 --- a/src/PadInterface.cpp +++ b/src/PadInterface.cpp @@ -61,7 +61,7 @@ void PadInterface::open(const std::string& pad_ident) fprintf(stderr, "Unlinking of socket %s failed: %s\n", claddr.sun_path, strerror(errno)); } - int ret = ::bind(m_sock, (const struct sockaddr *) &claddr, sizeof(struct sockaddr_un)); + const auto ret = ::bind(m_sock, (const struct sockaddr *) &claddr, sizeof(struct sockaddr_un)); if (ret == -1) { throw runtime_error("PAD socket bind failed " + string(strerror(errno))); } -- cgit v1.2.3