From: florian Date: Wed, 21 Aug 2024 14:55:17 +0000 (+0000) Subject: get rid of inet_aton X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9a380d2b77163f0d66777ed32367139cae1f51a7;p=openbsd get rid of inet_aton OK deraadt --- diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index 2efec81aaab..e8b9ae90510 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: driver.c,v 1.30 2020/02/14 19:17:33 schwarze Exp $ */ +/* $OpenBSD: driver.c,v 1.31 2024/08/21 14:55:17 florian Exp $ */ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -107,7 +107,8 @@ main(int ac, char **av) Server_port = atoi(optarg); break; case 'a': - if (!inet_aton(optarg, (struct in_addr *)&Server_addr)) + if (inet_pton(AF_INET, optarg, + (struct in_addr *)&Server_addr) != 1) err(1, "bad interface address: %s", optarg); break; case 'D':