aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:44:00 +0000
committerRyan Libby <rlibby@FreeBSD.org>2019-12-21 02:44:00 +0000
commit36947e1f4deacec2a88bba226e9b46efebe8655e (patch)
tree0af2b1ea3ba201045077e82f1805ea27ef22cbc9 /sbin/camcontrol
parentfc41af14c8298c88d5a2bee85ecf1864a3d37a51 (diff)
downloadsrc-36947e1f4deacec2a88bba226e9b46efebe8655e.tar.gz
src-36947e1f4deacec2a88bba226e9b46efebe8655e.zip
Declare packed struct ata_params as 2-byte-aligned
This avoids gcc9 warning about unaligned access to the structure when casting to uint16_t pointer type. Submitted by: imp Reviewed by: imp Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22888
Notes
Notes: svn path=/head/; revision=355972
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 4266c35ee033..79ab12e196bb 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -2355,7 +2355,7 @@ ataidentify(struct cam_device *device, int retry_count, int timeout)
if (arglist & CAM_ARG_VERBOSE) {
printf("%s%d: Raw identify data:\n",
device->device_name, device->dev_unit_num);
- dump_data((void*)ident_buf, sizeof(struct ata_params));
+ dump_data((uint16_t *)ident_buf, sizeof(struct ata_params));
}
if (ident_buf->support.command1 & ATA_SUPPORT_PROTECTED) {