tools::sgutils2: const correctness
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2b96a43879
commit
d6bf87cab7
@ -118,7 +118,7 @@ extern {
|
|||||||
|
|
||||||
fn set_scsi_pt_data_in(
|
fn set_scsi_pt_data_in(
|
||||||
objp: *mut SgPtBase,
|
objp: *mut SgPtBase,
|
||||||
dxferp: *const u8,
|
dxferp: *mut u8,
|
||||||
dxfer_ilen: c_int,
|
dxfer_ilen: c_int,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ extern {
|
|||||||
|
|
||||||
fn set_scsi_pt_sense(
|
fn set_scsi_pt_sense(
|
||||||
objp: *mut SgPtBase,
|
objp: *mut SgPtBase,
|
||||||
sense: *const u8,
|
sense: *mut u8,
|
||||||
max_sense_len: c_int,
|
max_sense_len: c_int,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ impl <'a, F: AsRawFd> SgRaw<'a, F> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
set_scsi_pt_data_in(
|
set_scsi_pt_data_in(
|
||||||
&mut *ptvp,
|
&mut *ptvp,
|
||||||
self.buffer.as_ptr(),
|
self.buffer.as_mut_ptr(),
|
||||||
self.buffer.len() as c_int,
|
self.buffer.len() as c_int,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
@ -242,7 +242,7 @@ impl <'a, F: AsRawFd> SgRaw<'a, F> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
set_scsi_pt_sense(
|
set_scsi_pt_sense(
|
||||||
&mut *ptvp,
|
&mut *ptvp,
|
||||||
self.sense_buffer.as_ptr(),
|
self.sense_buffer.as_mut_ptr(),
|
||||||
self.sense_buffer.len() as c_int,
|
self.sense_buffer.len() as c_int,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user