38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
From c7dff774e4b36d7068f91fd4db7c21484938d7cd Mon Sep 17 00:00:00 2001
|
|||
|
From: =?UTF-8?q?Florian=20=22sp1rit=22=E2=80=8B?= <sp1ritCS@protonmail.com>
|
|||
|
Date: Sun, 21 Aug 2022 00:24:26 +0200
|
|||
|
Subject: [PATCH] dropped deprecated gethostbyname check
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
Done to avoid the rpmlint warning:
|
|||
|
hyprland.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/bin/hyprctl
|
|||
|
The binary calls gethostbyname. Please port the code to use getaddrinfo.
|
|||
|
|
|||
|
Signed-off-by: Florian "sp1rit" <sp1ritCS@protonmail.com>
|
|||
|
---
|
|||
|
hyprctl/main.cpp | 6 ------
|
|||
|
1 file changed, 6 deletions(-)
|
|||
|
|
|||
|
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
|
|||
|
index db8f48a..820e9fe 100644
|
|||
|
--- a/hyprctl/main.cpp
|
|||
|
+++ b/hyprctl/main.cpp
|
|||
|
@@ -50,12 +50,6 @@ void request(std::string arg) {
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
- const auto SERVER = gethostbyname("localhost");
|
|||
|
-
|
|||
|
- if (!SERVER) {
|
|||
|
- std::cout << "Couldn't get host (2)";
|
|||
|
- return;
|
|||
|
- }
|
|||
|
|
|||
|
// get the instance signature
|
|||
|
auto instanceSig = getenv("HYPRLAND_INSTANCE_SIGNATURE");
|
|||
|
--
|
|||
|
2.37.2
|
|||
|
|