kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
b6b3496b00
commit
4e2aa9185e
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue