summaryrefslogtreecommitdiff
path: root/sbin/camcontrol/attrib.c
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2016-05-24 00:57:11 +0000
committerDon Lewis <truckman@FreeBSD.org>2016-05-24 00:57:11 +0000
commit95320acebcdbd8ba6faba99bb31ba8a0c405c60c (patch)
tree46aa22f07e1f507182e38a44b6dd148c8cda0479 /sbin/camcontrol/attrib.c
parent24d17f1e24b769e4473fc00c44562e33eb9ed4db (diff)
Notes
Diffstat (limited to 'sbin/camcontrol/attrib.c')
-rw-r--r--sbin/camcontrol/attrib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/camcontrol/attrib.c b/sbin/camcontrol/attrib.c
index 62d4b1e0dbc3..7ff2c42446bf 100644
--- a/sbin/camcontrol/attrib.c
+++ b/sbin/camcontrol/attrib.c
@@ -137,8 +137,7 @@ scsiattrib(struct cam_device *device, int argc, char **argv, char *combinedopt,
goto bailout;
}
- bzero(&(&ccb->ccb_h)[1],
- sizeof(union ccb) - sizeof(struct ccb_hdr));
+ CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->csio);
STAILQ_INIT(&write_attr_list);