From c2a103b26a80218c8c2ee9a8ddb7122e36a69331 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 29 Jul 2021 02:49:07 +0000 Subject: 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 --- src/sg_write_x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sg_write_x.c') 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; -- cgit v1.2.3