aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorFlorian sp1rit​ <[email protected]>2022-08-21 00:24:26 +0200
committerFlorian "sp1rit"​ <[email protected]>2022-08-22 14:35:41 +0200
commit39a9980fb116108807ee68def27a6348184f282c (patch)
tree6fb8cecec2d920acc8dc767fa8a52ac37d7db241 /hyprctl
parentd0ec2b72aec8a91a904b7678ab093e648bd59cf2 (diff)
downloadHyprland-39a9980fb116108807ee68def27a6348184f282c.tar.gz
Hyprland-39a9980fb116108807ee68def27a6348184f282c.zip
dropped deprecated gethostbyname check
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"​ <[email protected]>
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index db8f48a3..820e9fe9 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");