From: deraadt Date: Tue, 31 Aug 2021 09:56:12 +0000 (+0000) Subject: shorten some code X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ef53e9e5937b9b0190ac5395d60128b121293581;p=openbsd shorten some code --- diff --git a/sbin/resolvd/resolvd.c b/sbin/resolvd/resolvd.c index de3b3bfaa24..6d047302240 100644 --- a/sbin/resolvd/resolvd.c +++ b/sbin/resolvd/resolvd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolvd.c,v 1.18 2021/08/30 19:14:30 kn Exp $ */ +/* $OpenBSD: resolvd.c,v 1.19 2021/08/31 09:56:12 deraadt Exp $ */ /* * Copyright (c) 2021 Florian Obser * Copyright (c) 2021 Theo de Raadt @@ -648,10 +648,7 @@ regen_resolvconf(char *why) int cmp(const void *a, const void *b) { - const struct rdns_proposal *rpa, *rpb; - - rpa = a; - rpb = b; + const struct rdns_proposal *rpa = a, *rpb = b; if (rpa->prio == rpb->prio) return strcmp(rpa->ip, rpb->ip);