aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/whois
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-06-29 23:56:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-06-29 23:56:31 +0000
commite5637075a35acd0f8c92e25eff5cec92328099c1 (patch)
tree57384f9f9bb4acbe1066b7467cae4be282440219 /usr.bin/whois
parentdbc6f4c07d5f2ea73bb7f1845acccd55049a60dd (diff)
downloadsrc-e5637075a35acd0f8c92e25eff5cec92328099c1.tar.gz
src-e5637075a35acd0f8c92e25eff5cec92328099c1.zip
Notes
Diffstat (limited to 'usr.bin/whois')
-rw-r--r--usr.bin/whois/whois.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 6b8924d58a9d..729c2e284396 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -175,8 +175,6 @@ main(int argc, char *argv[])
}
while (argc-- > 0) {
if (country != NULL) {
- if (strcasecmp(country, "su") == 0)
- country = "ru";
s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL);
whois(*argv, qnichost, flags);
} else if (use_qnichost)
@@ -218,11 +216,8 @@ choose_server(char *domain)
return (NULL);
if (isdigit((unsigned char)*++pos))
s_asprintf(&retval, "%s", ANICHOST);
- else {
- if (strcasecmp(pos, "su") == 0)
- pos = "ru";
+ else
s_asprintf(&retval, "%s%s", pos, QNICHOST_TAIL);
- }
return (retval);
}