From: florian Date: Wed, 21 Aug 2024 09:19:55 +0000 (+0000) Subject: s/inet_aton/inet_pton/ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e13b122f5943afc27f987d29a2980051b6c01e83;p=openbsd s/inet_aton/inet_pton/ OK claudio --- diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c index 926df9172af..3d9ffbb4332 100644 --- a/usr.sbin/dhcpd/dhcpd.c +++ b/usr.sbin/dhcpd/dhcpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.c,v 1.59 2023/10/06 05:31:54 jmc Exp $ */ +/* $OpenBSD: dhcpd.c,v 1.60 2024/08/21 09:19:55 florian Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -147,7 +147,7 @@ main(int argc, char *argv[]) case 'u': udpsockmode = 1; if (optarg != NULL) { - if (inet_aton(optarg, &udpaddr) != 1) + if (inet_pton(AF_INET, optarg, &udpaddr) != 1) errx(1, "Cannot parse binding IP " "address: %s", optarg); }