diff options
author | mav <mav@FreeBSD.org> | 2013-06-12 19:21:23 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-06-12 19:21:23 +0000 |
commit | 42bc6c11c813277bf772a78e759cc8c79746e7fd (patch) | |
tree | 1fe7355cb16eb72627b130d9a3714e48ffe542b0 /sbin/camcontrol | |
parent | 8d21fe8a6db85aa205755bfd9930de5b0a6fa749 (diff) | |
download | FreeBSD-src-42bc6c11c813277bf772a78e759cc8c79746e7fd.zip FreeBSD-src-42bc6c11c813277bf772a78e759cc8c79746e7fd.tar.gz |
Fix build after r251654.
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index db84ddb..35826c5 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -6947,18 +6947,18 @@ findsasdevice(struct cam_devlist *devlist, uint64_t sasaddr) struct cam_devitem *item; STAILQ_FOREACH(item, &devlist->dev_queue, links) { - uint8_t *item_addr; + struct scsi_vpd_id_descriptor *idd; /* * XXX KDM look for LUN IDs as well? */ - item_addr = scsi_get_devid(item->device_id, + idd = scsi_get_devid(item->device_id, item->device_id_len, scsi_devid_is_sas_target); - if (item_addr == NULL) + if (idd == NULL) continue; - if (scsi_8btou64(item_addr) == sasaddr) + if (scsi_8btou64(idd->identifier) == sasaddr) return (item); } |