From ef53e9e5937b9b0190ac5395d60128b121293581 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 31 Aug 2021 09:56:12 +0000 Subject: [PATCH] shorten some code --- sbin/resolvd/resolvd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.20.1