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) --- hyprtester/src/hyprctlCompat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hyprtester/src/hyprctlCompat.cpp') diff --git a/hyprtester/src/hyprctlCompat.cpp b/hyprtester/src/hyprctlCompat.cpp index 6e6cfc0f..2c8e0644 100644 --- a/hyprtester/src/hyprctlCompat.cpp +++ b/hyprtester/src/hyprctlCompat.cpp @@ -14,6 +14,8 @@ #include #include #include +#include +using namespace Hyprutils::Memory; static int getUID() { const auto UID = getuid(); @@ -95,7 +97,7 @@ std::string getFromSocket(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("Couldn't connect to {}. (3)", socketPath); return ""; } -- cgit v1.2.3