From beee22a95ed9044950e5486f22edd813e00ffa2c Mon Sep 17 00:00:00 2001 From: Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> Date: Thu, 14 Aug 2025 19:44:56 +0500 Subject: refactor: Use new hyprutils casts (#11377) --- hyprpm/src/core/HyprlandSocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hyprpm/src/core/HyprlandSocket.cpp') diff --git a/hyprpm/src/core/HyprlandSocket.cpp b/hyprpm/src/core/HyprlandSocket.cpp index 50b3558c..47142e54 100644 --- a/hyprpm/src/core/HyprlandSocket.cpp +++ b/hyprpm/src/core/HyprlandSocket.cpp @@ -6,6 +6,9 @@ #include #include #include +#include + +using namespace Hyprutils::Memory; static int getUID() { const auto UID = getuid(); @@ -46,7 +49,7 @@ std::string NHyprlandSocket::send(const std::string& cmd) { strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1); - if (connect(SERVERSOCKET, (sockaddr*)&serverAddress, SUN_LEN(&serverAddress)) < 0) { + if (connect(SERVERSOCKET, rc(&serverAddress), SUN_LEN(&serverAddress)) < 0) { std::println("{}", failureString("Couldn't connect to " + socketPath + ". (4)")); return ""; } -- cgit v1.2.3