diff options
| author | Florian sp1rit <sp1ritCS@protonmail.com> | 2022-08-21 00:24:26 +0200 |
|---|---|---|
| committer | Florian "sp1rit" <sp1ritCS@protonmail.com> | 2022-08-22 14:35:41 +0200 |
| commit | 39a9980fb116108807ee68def27a6348184f282c (patch) | |
| tree | 6fb8cecec2d920acc8dc767fa8a52ac37d7db241 /hyprctl/main.cpp | |
| parent | d0ec2b72aec8a91a904b7678ab093e648bd59cf2 (diff) | |
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>
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 6 |
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"); |
