diff options
author | drkhsh <me@drkhsh.at> | 2022-10-28 00:51:34 +0200 |
---|---|---|
committer | drkhsh <me@drkhsh.at> | 2022-10-28 01:03:38 +0200 |
commit | 6c3cd320737419cc5e936a60f0f501b1edfa2ecf (patch) | |
tree | dc9b6927e963a994286babd803357615c9b37a22 /components/ip.c | |
parent | 0c8ac6edf9ad50506465db3fb70535ab561e6872 (diff) |
radical re-formatting 2/3: Fix blocks
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
Diffstat (limited to 'components/ip.c')
-rw-r--r-- | components/ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/ip.c b/components/ip.c index a954ae1..9476549 100644 --- a/components/ip.c +++ b/components/ip.c @@ -27,9 +27,9 @@ ip(const char *interface, unsigned short sa_family) } for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { - if (!ifa->ifa_addr) { + if (!ifa->ifa_addr) continue; - } + s = getnameinfo(ifa->ifa_addr, sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); if (!strcmp(ifa->ifa_name, interface) && |