From nobody Tue Feb 10 00:58:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1560874579; cv=none; d=zoho.com; s=zohoarc; b=ix06cy31WjIRRT4BijtzuPNgnIsXBdaPCEjjVqSSXAvF1r4oVQfRCkDOF29KoizVICRCQNwEi251emBu8BFmYn43uQGdQgh62RHRNMyd/p9FeeoESl+hs0Io+txklFn12MZFRV9SUtMK6F5I+e4B/hWgaQLTS1wln6k8qWHbZSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560874579; 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:ARC-Authentication-Results; bh=PRfmPvEuyExM79QQuFfpDZj+YKSIvMe40+Aa9y1J5ls=; b=bpT/wJkWKbynyaq3/9xJ6BivMebfhvEeZqV51QjmZ+j6ODHQ3wDLFCRcuuWNJObfuKvc3x0UDbh5huFzxcuLmxvso0AZUhghPxPfi2VQcgkTZRSJ9q6tsMb6T516DuedSa6PoeTEx00+k7x5dTDaRBzakrujnujNenaPTC+OoNI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1560874579551168.22782878096416; Tue, 18 Jun 2019 09:16:19 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7E358B2DF5; Tue, 18 Jun 2019 16:16:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E7E049F52; Tue, 18 Jun 2019 16:16:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A47161806B23; Tue, 18 Jun 2019 16:16:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5IGDYmm024324 for ; Tue, 18 Jun 2019 12:13:34 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3B30C84EF; Tue, 18 Jun 2019 16:13:34 +0000 (UTC) Received: from aegolius.redhat.com (ovpn-117-198.phx2.redhat.com [10.3.117.198]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0918F60FAB for ; Tue, 18 Jun 2019 16:13:33 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:13:00 -0500 Message-Id: <20190618161316.1722-31-jjongsma@redhat.com> In-Reply-To: <20190618161316.1722-1-jjongsma@redhat.com> References: <20190618161316.1722-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 30/46] util: mac: use #pragma once in headers X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 18 Jun 2019 16:16:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/util/virmacaddr.h | 17 +++++++---------- src/util/virmacmap.h | 5 +---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/util/virmacaddr.h b/src/util/virmacaddr.h index 55f9d61abe..55cfd12164 100644 --- a/src/util/virmacaddr.h +++ b/src/util/virmacaddr.h @@ -18,16 +18,15 @@ * . */ =20 -#ifndef LIBVIRT_VIRMACADDR_H -# define LIBVIRT_VIRMACADDR_H +#pragma once =20 -# include "internal.h" -# include "virautoclean.h" +#include "internal.h" +#include "virautoclean.h" =20 -# define VIR_MAC_BUFLEN 6 -# define VIR_MAC_HEXLEN (VIR_MAC_BUFLEN * 2) -# define VIR_MAC_PREFIX_BUFLEN 3 -# define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3) +#define VIR_MAC_BUFLEN 6 +#define VIR_MAC_HEXLEN (VIR_MAC_BUFLEN * 2) +#define VIR_MAC_PREFIX_BUFLEN 3 +#define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3) =20 typedef struct _virMacAddr virMacAddr; typedef virMacAddr *virMacAddrPtr; @@ -65,5 +64,3 @@ bool virMacAddrIsBroadcastRaw(const unsigned char s[VIR_M= AC_BUFLEN]); void virMacAddrFree(virMacAddrPtr addr); =20 VIR_DEFINE_AUTOPTR_FUNC(virMacAddr, virMacAddrFree); - -#endif /* LIBVIRT_VIRMACADDR_H */ diff --git a/src/util/virmacmap.h b/src/util/virmacmap.h index 68843b947a..4652295033 100644 --- a/src/util/virmacmap.h +++ b/src/util/virmacmap.h @@ -18,8 +18,7 @@ * . */ =20 -#ifndef LIBVIRT_VIRMACMAP_H -# define LIBVIRT_VIRMACMAP_H +#pragma once =20 typedef struct virMacMap virMacMap; typedef virMacMap *virMacMapPtr; @@ -46,5 +45,3 @@ int virMacMapWriteFile(virMacMapPtr mgr, =20 int virMacMapDumpStr(virMacMapPtr mgr, char **str); - -#endif /* LIBVIRT_VIRMACMAP_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list