From e13b122f5943afc27f987d29a2980051b6c01e83 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 21 Aug 2024 09:19:55 +0000 Subject: [PATCH] s/inet_aton/inet_pton/ OK claudio --- usr.sbin/dhcpd/dhcpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1