summaryrefslogtreecommitdiffstats
path: root/sys/dev/twa/twa_ioctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/twa/twa_ioctl.h')
-rw-r--r--sys/dev/twa/twa_ioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/twa/twa_ioctl.h b/sys/dev/twa/twa_ioctl.h
index 80373fe..20b95bb 100644
--- a/sys/dev/twa/twa_ioctl.h
+++ b/sys/dev/twa/twa_ioctl.h
@@ -89,7 +89,7 @@ struct twa_driver_packet {
struct twa_ioctl_9k {
struct twa_driver_packet twa_drvr_pkt;
void *pdata; /* points to data_buf */
- int8_t padding[484];
+ int8_t padding[488 - sizeof(void *)];
struct twa_command_packet twa_cmd_pkt;
int8_t data_buf[1];
} __attribute__ ((packed));
@@ -106,7 +106,7 @@ struct twa_ioctl_9k {
typedef struct twa_ioctl_no_data_buf {
struct twa_driver_packet twa_drvr_pkt;
void *pdata; /* points to data_buf */
- int8_t padding[484];
+ int8_t padding[488 - sizeof(void *)];
struct twa_command_packet twa_cmd_pkt;
} __attribute__ ((packed)) TWA_IOCTL_NO_DATA_BUF;
#pragma pack()
OpenPOWER on IntegriCloud