From nobody Mon Feb 9 01:31:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693396782; cv=none; d=zohomail.com; s=zohoarc; b=LH+A3U5z89V7xVb5QVinYhrB69+W1E9ijwP36cZp8FoEv5lgx35jjV921OGyAU6jvssCjYG0hFqrcI87ic0XLpL13D6xabaIcUL6ljREljfP+EL0qw0S4GVxadRZM7B6GoHYs6Rl11deiyJGJ/wCG1vroeWd1qLsh0K4UHxJ2hQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693396782; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YZFKZN1ASBuQOjSJiV9i1LScpeK07jGaMj/cmG+mMaQ=; b=jhcF0GBKw0KfnVuBfHqCkDei+IcZwcxm2P8dOTGnDhVyWL4Gy50uhGZ7eCSuLieExt9hsnXVlxXEYsn4inB2bXyL/6737JporZg4LgtQj50AgtR1Hrf99av/3Aq9vhH+ugN7wUkCfDwBqpitSJNsgL7iOd5PMxvATorWD+nQDh8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1693396782460858.3948782906682; Wed, 30 Aug 2023 04:59:42 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-479-so0n4mBZM56eJ2pCrrfO8A-1; Wed, 30 Aug 2023 07:59:35 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB56185D06D; Wed, 30 Aug 2023 11:59:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9977C2166B26; Wed, 30 Aug 2023 11:59:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E667419452C5; Wed, 30 Aug 2023 11:59:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5896A19452C5 for ; Wed, 30 Aug 2023 11:59:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 54064C15BC0; Wed, 30 Aug 2023 11:59:27 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA551C15BAE for ; Wed, 30 Aug 2023 11:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693396781; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YZFKZN1ASBuQOjSJiV9i1LScpeK07jGaMj/cmG+mMaQ=; b=SRoE3fa7sjW5LjHyaKmOtMP/ASXKL5gXP9ethyJSes5Ye8s2ImAtLRiK4jB/Q40B5Ic9pl +AA7fMaN9e8bjR5VWBYPwMZCpkoAunq2zijMI63qjyLMKpCAe7VCEBl4u0FdMk9SaMeETO VzJ7toAcT5w/tG6QkFAaXsi6c0UC+T4= X-MC-Unique: so0n4mBZM56eJ2pCrrfO8A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 4/8] nss: aiforaf: Format one argument/variable per line Date: Wed, 30 Aug 2023 13:59:18 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693396784421100001 Content-Type: text/plain; charset="utf-8" Break up the argument and variable declarations to the preferred style. Signed-off-by: Peter Krempa Reviewed-by: Kristina Hanicova --- tools/nss/libvirt_nss.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c index b028f28608..cd2b8feb5a 100644 --- a/tools/nss/libvirt_nss.c +++ b/tools/nss/libvirt_nss.c @@ -464,13 +464,19 @@ ns_mtab methods[] =3D { }; static void -aiforaf(const char *name, int af, struct addrinfo *pai, struct addrinfo **= aip) +aiforaf(const char *name, + int af, + struct addrinfo *pai, + struct addrinfo **aip) { int ret; struct hostent resolved; char buf[1024] =3D { 0 }; - int err, herr; - struct addrinfo hints, *res0, *res; + int err; + int herr; + struct addrinfo hints; + struct addrinfo *res0; + struct addrinfo *res; char **addrList; if ((ret =3D NSS_NAME(gethostbyname2)(name, af, &resolved, --=20 2.41.0