From 1ae5c18721fbfd2fca142d47b202a1bb4de3b645 Mon Sep 17 00:00:00 2001 From: sakh-ML Date: Sun, 20 Sep 2026 13:54:57 +0200 Subject: [PATCH] arp: set default hw-type after parsing arguments Move default hardware type initialization after getopt_long. If no -H or -t option was specified, fall back to default. --- arp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arp.c b/arp.c index ae3990a..10fe42e 100644 --- a/arp.c +++ b/arp.c @@ -679,10 +679,6 @@ int main(int argc, char **argv) #endif /* Initialize variables... */ - if ((hw = get_hwtype(DFLT_HW)) == NULL) { - fprintf(stderr, _("%s: hardware type not supported!\n"), DFLT_HW); - return (-1); - } if ((ap = get_aftype(DFLT_AF)) == NULL) { fprintf(stderr, _("%s: address family not supported!\n"), DFLT_AF); return (-1);