From 252086533f8af0736c2a4987cd70a44366837ec1 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 22 Feb 2018 07:00:28 +0000 Subject: 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 --- src/sg_reset_wp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sg_reset_wp.c') diff --git a/src/sg_reset_wp.c b/src/sg_reset_wp.c index 0f22647e..11999ed5 100644 --- a/src/sg_reset_wp.c +++ b/src/sg_reset_wp.c @@ -20,6 +20,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include "sg_lib.h" #include "sg_lib_data.h" #include "sg_pt.h" @@ -34,7 +35,7 @@ * device. Based on zbc-r04c.pdf . */ -static const char * version_str = "1.08 20180210"; +static const char * version_str = "1.09 20180219"; #define SG_ZONING_OUT_CMDLEN 16 #define RESET_WRITE_POINTER_SA 0x4 @@ -81,10 +82,9 @@ sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, bool all, bool noisy, int verbose) { int k, ret, res, sense_cat; - unsigned char rwp_cdb[SG_ZONING_OUT_CMDLEN] = - {SG_ZONING_OUT, RESET_WRITE_POINTER_SA, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0}; - unsigned char sense_b[SENSE_BUFF_LEN]; + uint8_t rwp_cdb[SG_ZONING_OUT_CMDLEN] = {SG_ZONING_OUT, + RESET_WRITE_POINTER_SA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + uint8_t sense_b[SENSE_BUFF_LEN]; struct sg_pt_base * ptvp; sg_put_unaligned_be64(zid, rwp_cdb + 2); -- cgit v1.2.3