diff options
Diffstat (limited to 'usr.sbin/faithd')
-rw-r--r-- | usr.sbin/faithd/prefix.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.sbin/faithd/prefix.c b/usr.sbin/faithd/prefix.c index 6a3f66b..bdb763a 100644 --- a/usr.sbin/faithd/prefix.c +++ b/usr.sbin/faithd/prefix.c @@ -63,7 +63,6 @@ prefix_set(const char *s, struct prefix *prefix, int slash) char *p = NULL, *q, *r; struct addrinfo hints, *res = NULL; int max; - char *a; p = strdup(s); if (!p) @@ -88,14 +87,11 @@ prefix_set(const char *s, struct prefix *prefix, int slash) switch (prefix->a.ss_family) { case AF_INET: max = 32; - a = (char *)&((struct sockaddr_in *)&prefix->a)->sin_addr; break; case AF_INET6: max = 128; - a = (char *)&((struct sockaddr_in6 *)&prefix->a)->sin6_addr; break; default: - a = NULL; max = -1; break; } |