mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-06 15:51:41 +00:00
Remove remaining uses of deprecated inet_addr() function.
This commit is contained in:
1 parent
3ca4995d34
commit
fcb4dcaf7c
4 files changed
+10
-7
No files matched your search
+1
-1
@@ -922,7 +922,7 @@ void dhcp_read_ethers(void)
|
||||
|
||||
if (!*cp)
|
||||
{
|
||||
if ((addr.s_addr = inet_addr(ip)) == (in_addr_t)-1)
|
||||
if (inet_pton(AF_INET, ip, &addr.s_addr) < 1)
|
||||
{
|
||||
my_syslog(MS_DHCP | LOG_ERR, _("bad address at %s line %d"), ETHERSFILE, lineno);
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user