From 029a5cada9f89c6f594bf4e3e3e4002d6e9f2ae9 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 18 Aug 2024 12:22:43 +0300 Subject: [PATCH] mdig.c: tab formatting --- mdig/mdig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mdig/mdig.c b/mdig/mdig.c index 92fd826..54a7198 100644 --- a/mdig/mdig.c +++ b/mdig/mdig.c @@ -76,11 +76,11 @@ static const char* eai_str(int r) static bool dom_valid(char *dom) { - if (!dom || *dom=='.') return false; - for (; *dom; dom++) + if (!dom || *dom=='.') return false; + for (; *dom; dom++) if (*dom < 0x20 || (*dom & 0x80) || !(*dom == '.' || *dom == '-' || *dom == '_' || (*dom >= '0' && *dom <= '9') || (*dom >= 'a' && *dom <= 'z') || (*dom >= 'A' && *dom <= 'Z'))) - return false; - return true; + return false; + return true; } static void invalid_domain_beautify(char *dom)