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"​ <sp1ritCS@protonmail.com>
This commit is contained in:
Florian sp1rit​ 2022-08-21 00:24:26 +02:00 committed by Florian "sp1rit"​
parent d0ec2b72ae
commit 39a9980fb1
No known key found for this signature in database
GPG Key ID: BA579378AC81FB05
1 changed files with 0 additions and 6 deletions

View File

@ -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");