aboutsummaryrefslogtreecommitdiff
path: root/src/sg_sat_set_features.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_sat_set_features.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_sat_set_features.c')
-rw-r--r--src/sg_sat_set_features.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sg_sat_set_features.c b/src/sg_sat_set_features.c
index 2d84ff78..523e38a4 100644
--- a/src/sg_sat_set_features.c
+++ b/src/sg_sat_set_features.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2017 Douglas Gilbert.
+ * Copyright (c) 2006-2018 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -18,6 +18,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+
#include "sg_lib.h"
#include "sg_cmds_basic.h"
#include "sg_cmds_extra.h"
@@ -49,7 +50,7 @@
#define DEF_TIMEOUT 20
-static const char * version_str = "1.15 20171107";
+static const char * version_str = "1.16 20180219";
static struct option long_options[] = {
{"count", required_argument, 0, 'c'},
@@ -121,12 +122,12 @@ do_set_features(int sg_fd, int feature, int count, uint64_t lba,
int resid = 0;
int sb_sz;
struct sg_scsi_sense_hdr ssh;
- unsigned char sense_buffer[64];
- unsigned char ata_return_desc[16];
- unsigned char apt_cdb[SAT_ATA_PASS_THROUGH16_LEN] =
+ uint8_t sense_buffer[64];
+ uint8_t ata_return_desc[16];
+ uint8_t apt_cdb[SAT_ATA_PASS_THROUGH16_LEN] =
{SAT_ATA_PASS_THROUGH16, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0};
- unsigned char apt12_cdb[SAT_ATA_PASS_THROUGH12_LEN] =
+ uint8_t apt12_cdb[SAT_ATA_PASS_THROUGH12_LEN] =
{SAT_ATA_PASS_THROUGH12, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0};