aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-09-20 08:55:51 -0400
committerThanos <tmakatos@gmail.com>2019-09-27 15:59:11 +0100
commitc228bef24d038498526c6c1aca53376906ff3c4a (patch)
tree84b5dd3faa29d23e455f5645f8f607182cee3b0a /lib
parent681b9ce80ca3bd1e16c77d4264e484371b878133 (diff)
downloadlibvfio-user-c228bef24d038498526c6c1aca53376906ff3c4a.zip
libvfio-user-c228bef24d038498526c6c1aca53376906ff3c4a.tar.gz
libvfio-user-c228bef24d038498526c6c1aca53376906ff3c4a.tar.bz2
fix order of MSI capability id and next
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/caps/msi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/caps/msi.h b/lib/caps/msi.h
index bfcf1cd..141181f 100644
--- a/lib/caps/msi.h
+++ b/lib/caps/msi.h
@@ -31,8 +31,8 @@
*/
struct mid {
- unsigned int next:8;
unsigned int cid:8;
+ unsigned int next:8;
} __attribute__ ((packed));
_Static_assert(sizeof(struct mid) == 0x2, "bad MID size");