diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-18 16:01:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:01:21 +0000 |
commit | c4f6f81007cf6ab720067d8f8e9288c5dfd5a720 (patch) | |
tree | b407c1b6355b8d3646a4f75ccd04f6610d4ae0b3 /include | |
parent | 22a80ef616beaf7ac495698a4219f37efe5635c8 (diff) | |
download | libvfio-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')
-rw-r--r-- | include/pci_caps/dsn.h | 2 |
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 |