summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-03-25 00:57:09 +0000
committerdelphij <delphij@FreeBSD.org>2009-03-25 00:57:09 +0000
commitb4fc9c3e14f2dc044bbaf541db4994fff1522db5 (patch)
tree203965cb21c841d30ac8613ab0cf4155f92c5441
parent6e4ec9f54dc2869b5f87e70c6d5cc5c50e006ea7 (diff)
downloadFreeBSD-src-b4fc9c3e14f2dc044bbaf541db4994fff1522db5.zip
FreeBSD-src-b4fc9c3e14f2dc044bbaf541db4994fff1522db5.tar.gz
Use __attribute__((packed)) for the structure so that hptiop management
utility would work. Submitted by: Shaowei WANG <wsw1wsw2 gmail com> MFC after: 2 weeks
-rw-r--r--sys/dev/hptiop/hptiop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hptiop/hptiop.h b/sys/dev/hptiop/hptiop.h
index 0f74592..a77c76b 100644
--- a/sys/dev/hptiop/hptiop.h
+++ b/sys/dev/hptiop/hptiop.h
@@ -260,7 +260,7 @@ struct hpt_iop_ioctl_param {
unsigned long lpOutBuffer; /* output data buffer */
u_int32_t nOutBufferSize; /* size of output data buffer */
unsigned long lpBytesReturned; /* count of HPT_U8s returned */
-};
+} __attribute__((packed));
#define HPT_IOCTL_FLAG_OPEN 1
#define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)
OpenPOWER on IntegriCloud