diff options
| author | Ryan Libby <rlibby@FreeBSD.org> | 2017-07-06 05:32:22 +0000 |
|---|---|---|
| committer | Ryan Libby <rlibby@FreeBSD.org> | 2017-07-06 05:32:22 +0000 |
| commit | 32981ab80a3a4512fa61b403f709fbf52455765c (patch) | |
| tree | 3e1e51f5c9e951d358b515b0b45ddc7e057d631a /sys/dev/hptmv | |
| parent | 423ec132f5cb1daab112997b811769854108113c (diff) | |
Notes
Diffstat (limited to 'sys/dev/hptmv')
| -rw-r--r-- | sys/dev/hptmv/vdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hptmv/vdevice.h b/sys/dev/hptmv/vdevice.h index e0bddc7d1e6e..c7f96da8d480 100644 --- a/sys/dev/hptmv/vdevice.h +++ b/sys/dev/hptmv/vdevice.h @@ -77,8 +77,8 @@ typedef struct _VDevice } VDevice; -#define ARRAY_VDEV_SIZE ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(RaidArray)) -#define DISK_VDEV_SIZE ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(Device)) +#define ARRAY_VDEV_SIZE (offsetof(VDevice, u) + sizeof(RaidArray)) +#define DISK_VDEV_SIZE (offsetof(VDevice, u) + sizeof(Device)) #define Map2pVDevice(pDev) ((PVDevice)((UINT_PTR)pDev - (UINT)(UINT_PTR)&((PVDevice)0)->u.disk)) |
