mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 05:05:59 +01:00
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:
parent
d0ec2b72ae
commit
39a9980fb1
1 changed files with 0 additions and 6 deletions
|
@ -50,12 +50,6 @@ void request(std::string arg) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto SERVER = gethostbyname("localhost");
|
|
||||||
|
|
||||||
if (!SERVER) {
|
|
||||||
std::cout << "Couldn't get host (2)";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the instance signature
|
// get the instance signature
|
||||||
auto instanceSig = getenv("HYPRLAND_INSTANCE_SIGNATURE");
|
auto instanceSig = getenv("HYPRLAND_INSTANCE_SIGNATURE");
|
||||||
|
|
Loading…
Reference in a new issue