Merge pull request #214 from felfert/fix-fuse-ioctl

Fix #213 and a typo in macro FSP_FUSE_CTLCODE_FROM_IOCTL
This commit is contained in:
Bill Zissimopoulos
2019-02-12 10:29:55 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ extern "C" {
#define FSP_FUSE_DEVICE_TYPE (0x8000 | 'W' | 'F' * 0x100) /* DeviceIoControl -> ioctl */
#define FSP_FUSE_CTLCODE_FROM_IOCTL(cmd)\
(FSP_FUSE_DEVICE_TYPE << 16) | (((c) & 0x0fff) << 2)
(FSP_FUSE_DEVICE_TYPE << 16) | (((cmd) & 0x0fff) << 2)
#define FSP_FUSE_IOCTL(cmd, isiz, osiz) \
( \
(((osiz) != 0) << 31) | \