diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-09-13 17:13:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-09-13 17:13:38 +0000 |
commit | 521b34672a73bdafe70fac2343c8b8d5371d3931 (patch) | |
tree | 0172cef4fbae3a2a7686035539c19fdec0b9ad6d /usr.sbin/acme-client/dnsproc.c | |
parent | 1b8bf583de578903250ae2851fb2991f46d14658 (diff) |
A small amount more KNF to make this easier on our eyes. Not going further
than this.
ok florian
Diffstat (limited to 'usr.sbin/acme-client/dnsproc.c')
-rw-r--r-- | usr.sbin/acme-client/dnsproc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/acme-client/dnsproc.c b/usr.sbin/acme-client/dnsproc.c index 6f102dce553..22a588e04ed 100644 --- a/usr.sbin/acme-client/dnsproc.c +++ b/usr.sbin/acme-client/dnsproc.c @@ -1,4 +1,4 @@ -/* $Id: dnsproc.c,v 1.5 2016/09/13 16:49:28 deraadt Exp $ */ +/* $Id: dnsproc.c,v 1.6 2016/09/13 17:13:37 deraadt Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -80,8 +80,8 @@ host_dns(const char *s, struct addr *vec) } for (vecsz = 0, res = res0; - NULL != res && vecsz < MAX_SERVERS_DNS; - res = res->ai_next) { + NULL != res && vecsz < MAX_SERVERS_DNS; + res = res->ai_next) { if (res->ai_family != AF_INET && res->ai_family != AF_INET6) continue; @@ -91,13 +91,13 @@ host_dns(const char *s, struct addr *vec) if (AF_INET == res->ai_family) { vec[vecsz].family = 4; inet_ntop(AF_INET, - &(((struct sockaddr_in *)sa)->sin_addr), + &(((struct sockaddr_in *)sa)->sin_addr), vec[vecsz].ip, INET6_ADDRSTRLEN); } else { vec[vecsz].family = 6; inet_ntop(AF_INET6, - &(((struct sockaddr_in6 *)sa)->sin6_addr), - vec[vecsz].ip, INET6_ADDRSTRLEN); + &(((struct sockaddr_in6 *)sa)->sin6_addr), + vec[vecsz].ip, INET6_ADDRSTRLEN); } dodbg("%s: DNS: %s", s, vec[vecsz].ip); |