aboutsummaryrefslogtreecommitdiff
path: root/src/sg_reset_wp.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-09-18 19:15:01 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-09-18 19:15:01 +0000
commit3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33 (patch)
tree645885630ab780e2371bc219ba9ee843f18c421b /src/sg_reset_wp.c
parent3e3bb389c5718f595a07cd0a51ccd0162713f44f (diff)
downloadsg3_utils-3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33.tar.gz
https://github.com/hreinecke/sg3_utils branch sles15 synced 20170914; change sg_ll_*() function's 'int noisy' to bool
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@715 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_reset_wp.c')
-rw-r--r--src/sg_reset_wp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sg_reset_wp.c b/src/sg_reset_wp.c
index fc8c4a40..a8b20fa2 100644
--- a/src/sg_reset_wp.c
+++ b/src/sg_reset_wp.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016 Douglas Gilbert.
+ * Copyright (c) 2014-2017 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.
@@ -32,7 +32,7 @@
* device. Based on zbc-r04c.pdf .
*/
-static const char * version_str = "1.05 20160528";
+static const char * version_str = "1.06 20170917";
#define SG_ZONING_OUT_CMDLEN 16
#define RESET_WRITE_POINTER_SA 0x4
@@ -75,7 +75,7 @@ usage()
/* Invokes a SCSI RESET WRITE POINTER command (ZBC). Return of 0 -> success,
* various SG_LIB_CAT_* positive values or -1 -> other errors */
static int
-sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, int all, int noisy,
+sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, int all, bool noisy,
int verbose)
{
int k, ret, res, sense_cat;
@@ -206,7 +206,7 @@ main(int argc, char * argv[])
return SG_LIB_FILE_ERROR;
}
- res = sg_ll_reset_write_pointer(sg_fd, zid, all, 1, verbose);
+ res = sg_ll_reset_write_pointer(sg_fd, zid, all, true, verbose);
ret = res;
if (res) {
if (SG_LIB_CAT_INVALID_OP == res)