aboutsummaryrefslogtreecommitdiff
path: root/src/sg_stream_ctl.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-02-22 07:00:28 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-02-22 07:00:28 +0000
commit252086533f8af0736c2a4987cd70a44366837ec1 (patch)
tree1f9245e247673fdb6ebea13b9aa559e1f869d78c /src/sg_stream_ctl.c
parent39ea1b548f21c006c311ace897b221b100bfa88d (diff)
downloadsg3_utils-252086533f8af0736c2a4987cd70a44366837ec1.tar.gz
sg_lib: add sg_if_can2stdout(); use uint8_t instead of unsigned char; Windows pass-through work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@754 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_stream_ctl.c')
-rw-r--r--src/sg_stream_ctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sg_stream_ctl.c b/src/sg_stream_ctl.c
index 4eafd5b3..e278e4a2 100644
--- a/src/sg_stream_ctl.c
+++ b/src/sg_stream_ctl.c
@@ -33,7 +33,7 @@
* to the given SCSI device. Based on sbc4r15.pdf .
*/
-static const char * version_str = "1.01 20180210";
+static const char * version_str = "1.02 20180219";
#define STREAM_CONTROL_SA 0x14
#define GET_STREAM_STATUS_SA 0x16
@@ -112,9 +112,9 @@ sg_ll_get_stream_status(int sg_fd, uint16_t s_str_id, uint8_t * resp,
int verbose)
{
int k, ret, res, sense_cat;
- unsigned char gssCdb[16] = {SG_SERVICE_ACTION_IN_16,
+ uint8_t gssCdb[16] = {SG_SERVICE_ACTION_IN_16,
GET_STREAM_STATUS_SA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- unsigned char sense_b[SENSE_BUFF_LEN];
+ uint8_t sense_b[SENSE_BUFF_LEN];
struct sg_pt_base * ptvp;
static const char * const cmd_name = "Get stream status";
@@ -173,9 +173,9 @@ sg_ll_stream_control(int sg_fd, uint32_t str_ctl, uint16_t str_id,
bool noisy, int verbose)
{
int k, ret, res, sense_cat;
- unsigned char scCdb[16] = {SG_SERVICE_ACTION_IN_16,
+ uint8_t scCdb[16] = {SG_SERVICE_ACTION_IN_16,
STREAM_CONTROL_SA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- unsigned char sense_b[SENSE_BUFF_LEN];
+ uint8_t sense_b[SENSE_BUFF_LEN];
struct sg_pt_base * ptvp;
static const char * const cmd_name = "Stream control";