fix: lint

This commit is contained in:
Alex 2023-04-17 09:09:13 +02:00
parent 33d1ee413f
commit a9a2223469
1 changed files with 3 additions and 3 deletions

View File

@ -132,16 +132,16 @@ void IPC::unregisterForIPC(EventHandler* ev_handler) {
std::string IPC::getSocket1Reply(const std::string& rq) { std::string IPC::getSocket1Reply(const std::string& rq) {
// basically hyprctl // basically hyprctl
struct addrinfo ai_hints; struct addrinfo ai_hints;
struct addrinfo *ai_res = NULL; struct addrinfo* ai_res = NULL;
const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0); const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0);
if (SERVERSOCKET < 0) { if (SERVERSOCKET < 0) {
spdlog::error("Hyprland IPC: Couldn't open a socket (1)"); spdlog::error("Hyprland IPC: Couldn't open a socket (1)");
return ""; return "";
} }
memset(&ai_hints, 0, sizeof(struct addrinfo)); memset(&ai_hints, 0, sizeof(struct addrinfo));
ai_hints.ai_family = AF_UNSPEC; ai_hints.ai_family = AF_UNSPEC;
ai_hints.ai_socktype = SOCK_STREAM; ai_hints.ai_socktype = SOCK_STREAM;