Use inet_pton() instead of inet_aton() to avoid compilation errors on e.g.

OS/2.
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-02-14 19:36:25 +00:00
rodzic b6b3496b00
commit 4e2aa9185e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -464,7 +464,7 @@ check_host (int fd)
}
else
{
if (inet_aton (config_line, &config_line_address))
if (inet_pton (AF_INET, config_line, &config_line_address) > 0)
{
if (memcmp (&remote_address.s_addr,
&config_line_address.s_addr, 4) == 0)
@ -473,7 +473,7 @@ check_host (int fd)
else
{
DBG (DBG_DBG,
"check_host: inet_aton for `%s' failed\n",
"check_host: inet_pton for `%s' failed\n",
config_line);
he = gethostbyname (config_line);
if (!he)