[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/8] 9pfs: fix P9_NOTAG and P9_NOFID macros
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH 3/8] 9pfs: fix P9_NOTAG and P9_NOFID macros |
Date: |
Fri, 09 Dec 2016 10:28:00 +0100 |
User-agent: |
StGit/0.17.1-20-gc0b1b-dirty |
The u16 and u32 types don't exist in QEMU common headers. It never broke
build because these two macros aren't use by the current code, but this
is about to change with the future addition of functional tests for 9P.
This patch convert the types to uintXX_t.
Signed-off-by: Greg Kurz <address@hidden>
---
hw/9pfs/9p.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
index 3976b7fe3dcd..89c904bdb7e7 100644
--- a/hw/9pfs/9p.h
+++ b/hw/9pfs/9p.h
@@ -99,8 +99,8 @@ enum p9_proto_version {
V9FS_PROTO_2000L = 0x02,
};
-#define P9_NOTAG (u16)(~0)
-#define P9_NOFID (u32)(~0)
+#define P9_NOTAG (uint16_t)(~0)
+#define P9_NOFID (uint32_t)(~0)
#define P9_MAXWELEM 16
#define FID_REFERENCED 0x1
[Qemu-devel] [PATCH 4/8] tests: virtio-9p: add version operation test, Greg Kurz, 2016/12/09
[Qemu-devel] [PATCH 5/8] tests: virtio-9p: add attach operation test, Greg Kurz, 2016/12/09
[Qemu-devel] [PATCH 6/8] tests: virtio-9p: add walk operation test, Greg Kurz, 2016/12/09
[Qemu-devel] [PATCH 7/8] tests: virtio-9p: no slash in path elements during walk, Greg Kurz, 2016/12/09
[Qemu-devel] [PATCH 8/8] tests: virtio-9p: ".." cannot be used to walk out of the shared directory, Greg Kurz, 2016/12/09