From nobody Mon Feb 9 00:06:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1673972479; cv=none; d=zohomail.com; s=zohoarc; b=Ux0ds0OJRb1DU2gPgBFoaJ4nuQd0ygbLHIwXonX04N5hQgxooT9OQhrrRk4y3S/9kf+m21ZdIaYu3obJvvg6V6YVXLPi8FrS+xkGukW7Wwfzpf3mK5d20a//3Do0JN4x4nbga2Gy/GtdDWVLEzxncJLwmnGfRDTumiBQbysGrnI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673972479; 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=0yK/Yvd7Zx3jsQ1oRvWRkILmqC71emLCo298OlkDZpk=; b=Si6myNuJD+Dg3eUbYdNP3kR6XK1gajg3UsZv59H267as19F5/IeB4fI4+whs52awJGKu6/GvvDuT+uj8HQ67D+meCrrXBMz5HGsuLFRpl6d5fmCGG7XnXUwHFMRcbYxZ6ks56M4JwviLKDQ1kCJqE/LI598RYQ71P1+DrjcHgtA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1673972479107175.31415939987596; Tue, 17 Jan 2023 08:21:19 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-518-zNaLx9FpM4q0D7uCpcYjeQ-1; Tue, 17 Jan 2023 11:21:12 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 262FF2801E59; Tue, 17 Jan 2023 16:20:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 088954078909; Tue, 17 Jan 2023 16:20:47 +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 E8B991946A77; Tue, 17 Jan 2023 16:20:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 742B519465A3 for ; Tue, 17 Jan 2023 16:20:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 5869B1121318; Tue, 17 Jan 2023 16:20:46 +0000 (UTC) Received: from speedmetal.lan (ovpn-208-29.brq.redhat.com [10.40.208.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id C03821121315 for ; Tue, 17 Jan 2023 16:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673972477; 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=0yK/Yvd7Zx3jsQ1oRvWRkILmqC71emLCo298OlkDZpk=; b=X+lM5UGR8HmTDmQnFxzs8R7IC6DgyToZb82sbsZV7izS48QnXxEVVsJrI4XzQi3KxYXUZQ W0YtjL9zXbrPorsX2jYKxSfCkaV3U6viqp7KnQa8EIe62bcA642LndYqOEDKtiy+2uOyKj 4z5T77hIcj+Mmz2dwxMveUVgpfQeVak= X-MC-Unique: zNaLx9FpM4q0D7uCpcYjeQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 04/15] util: authconfig: Use conteporary and consistent header style Date: Tue, 17 Jan 2023 17:20:29 +0100 Message-Id: <8518fde3b8bea2c0b6947e75d0c116c18c72f82c.1673972406.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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.2 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: 1673972480680100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/util/virauthconfig.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/util/virauthconfig.c b/src/util/virauthconfig.c index 983ac47f6b..0363a1bef9 100644 --- a/src/util/virauthconfig.c +++ b/src/util/virauthconfig.c @@ -35,7 +35,8 @@ struct _virAuthConfig { VIR_LOG_INIT("util.authconfig"); -virAuthConfig *virAuthConfigNew(const char *path) +virAuthConfig * +virAuthConfigNew(const char *path) { g_autoptr(virAuthConfig) auth =3D g_new0(virAuthConfig, 1); @@ -51,9 +52,10 @@ virAuthConfig *virAuthConfigNew(const char *path) } -virAuthConfig *virAuthConfigNewData(const char *path, - const char *data, - size_t len) +virAuthConfig * +virAuthConfigNewData(const char *path, + const char *data, + size_t len) { g_autoptr(virAuthConfig) auth =3D g_new0(virAuthConfig, 1); @@ -69,7 +71,8 @@ virAuthConfig *virAuthConfigNewData(const char *path, } -void virAuthConfigFree(virAuthConfig *auth) +void +virAuthConfigFree(virAuthConfig *auth) { if (!auth) return; @@ -80,11 +83,12 @@ void virAuthConfigFree(virAuthConfig *auth) } -int virAuthConfigLookup(virAuthConfig *auth, - const char *service, - const char *hostname, - const char *credname, - char **value) +int +virAuthConfigLookup(virAuthConfig *auth, + const char *service, + const char *hostname, + const char *credname, + char **value) { g_autofree char *authgroup =3D NULL; g_autofree char *credgroup =3D NULL; --=20 2.38.1