From 5a892970ed47d386ca336895dae2fea594f6780e Mon Sep 17 00:00:00 2001 From: Markus Moeller Date: Tue, 31 Aug 2021 20:42:35 +0100 Subject: [PATCH] Remove duplication --- src/hostspec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/hostspec.c b/src/hostspec.c index ec1961e..6a94400 100644 --- a/src/hostspec.c +++ b/src/hostspec.c @@ -15,15 +15,6 @@ static int dotted_mask(char *bitmask_string, unsigned char array[]) return 0; } -static int dotted_mask(char *bitmask_string, unsigned char array[]) -{ - unsigned char v4bits[4]; - if (1 != inet_pton (AF_INET, bitmask_string, v4bits)) return -1; - memset (array, 0xff, IPV6_LEN-4); - memcpy (array + IPV6_LEN-4, v4bits, 4); - return 0; -} - /* * Fills in the netmask array given a numeric value. *