diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2020-12-07 22:38:39 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2020-12-07 22:38:39 +0000 |
commit | b206b913ba15dd25996794c10107ce7e7c5def0f (patch) | |
tree | 1a98ac0e0395365db0334663401027dd789a6639 /lib/sg_pt_linux.c | |
parent | f277836fbdf1af79ef905fa357609f0e45db99dc (diff) | |
download | sg3_utils-b206b913ba15dd25996794c10107ce7e7c5def0f.tar.gz |
gcc-10: suppress warnings
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@868 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_linux.c')
-rw-r--r-- | lib/sg_pt_linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sg_pt_linux.c b/lib/sg_pt_linux.c index d5e01e90..a2eeb6da 100644 --- a/lib/sg_pt_linux.c +++ b/lib/sg_pt_linux.c @@ -7,7 +7,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -/* sg_pt_linux version 1.49 20200820 */ +/* sg_pt_linux version 1.50 20201123 */ #include <stdio.h> @@ -655,7 +655,7 @@ get_scsi_pt_cdb_buf(const struct sg_pt_base * vp) { const struct sg_pt_linux_scsi * ptp = &vp->impl; - return (uint8_t *)ptp->io_hdr.request; + return (uint8_t *)(sg_uintptr_t)ptp->io_hdr.request; } void @@ -880,7 +880,7 @@ get_scsi_pt_sense_buf(const struct sg_pt_base * vp) { const struct sg_pt_linux_scsi * ptp = &vp->impl; - return (uint8_t *)ptp->io_hdr.response; + return (uint8_t *)(sg_uintptr_t)ptp->io_hdr.response; } int |