aboutsummaryrefslogtreecommitdiff
path: root/src/sg_write_x.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2021-07-29 02:49:07 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2021-07-29 02:49:07 +0000
commitc2a103b26a80218c8c2ee9a8ddb7122e36a69331 (patch)
tree7d82843bcf1064edafd518280ede8d0e5149292e /src/sg_write_x.c
parent303f8c98ee28150285d69bd213970144fe224da3 (diff)
downloadsg3_utils-c2a103b26a80218c8c2ee9a8ddb7122e36a69331.tar.gz
sg_zones: finish initial support for REPORT ZONE DOMAINS and REPORT REALMS
Lots of clean-up based on Coverity and other code checkers. Add some new inhex folder entries to testing those new ZBC-2 commands. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@906 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_write_x.c')
-rw-r--r--src/sg_write_x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_write_x.c b/src/sg_write_x.c
index 2eed844b..3b2cf5eb 100644
--- a/src/sg_write_x.c
+++ b/src/sg_write_x.c
@@ -38,7 +38,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "1.25 20210610";
+static const char * version_str = "1.26 20210630";
/* Protection Information refers to 8 bytes of extra information usually
* associated with each logical block and is often abbreviated to PI while
@@ -1606,7 +1606,7 @@ parse_cmd_line(struct opts_t *op, int argc, char *argv[],
break;
case 'c': /* --combined=DOF for W SCATTERED, DOF: data offset */
j = sg_get_num(optarg);
- if ((j < 0) || (j > INT32_MAX)) {
+ if (j < 0) {
pr2serr("bad argument to '--combined='. Expect 0 to "
"0x7fffffff\n");
return SG_LIB_SYNTAX_ERROR;