aboutsummaryrefslogtreecommitdiff
path: root/include/pci_caps
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-02-18 16:01:21 +0000
committerGitHub <noreply@github.com>2021-02-18 16:01:21 +0000
commitc4f6f81007cf6ab720067d8f8e9288c5dfd5a720 (patch)
treeb407c1b6355b8d3646a4f75ccd04f6610d4ae0b3 /include/pci_caps
parent22a80ef616beaf7ac495698a4219f37efe5635c8 (diff)
downloadlibvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.zip
libvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.tar.gz
libvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.tar.bz2
use sizeof() consistently (#351)
The most common way we have written this is as "sizeof()"; use this form consistently. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include/pci_caps')
-rw-r--r--include/pci_caps/dsn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pci_caps/dsn.h b/include/pci_caps/dsn.h
index 3894f5e..b393466 100644
--- a/include/pci_caps/dsn.h
+++ b/include/pci_caps/dsn.h
@@ -48,7 +48,7 @@ struct dsncap {
uint32_t sn_lo;
uint32_t sn_hi;
} __attribute__((packed));
-_Static_assert(sizeof (struct dsncap) == PCI_EXT_CAP_DSN_SIZEOF,
+_Static_assert(sizeof(struct dsncap) == PCI_EXT_CAP_DSN_SIZEOF,
"bad DSN Capability size");
#ifdef __cplusplus