From 919290b79eb6649d6d05242180ddb3944ca9521b Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 24 May 2018 01:13:38 +0000 Subject: add SG_LIB_LOGIC_ERROR and SG_LIB_CONTRADICT; implement across many utilities and increase usage of sg_convert_errno() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@774 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_prevent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sg_prevent.c') diff --git a/src/sg_prevent.c b/src/sg_prevent.c index ba262ce6..f372e2db 100644 --- a/src/sg_prevent.c +++ b/src/sg_prevent.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2017 Douglas Gilbert. + * Copyright (c) 2004-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. @@ -27,7 +27,7 @@ * given SCSI device. */ -static const char * version_str = "1.10 20171006"; +static const char * version_str = "1.11 20180523"; #define ME "sg_prevent: " @@ -125,7 +125,7 @@ int main(int argc, char * argv[]) if (allow && (prevent >= 0)) { pr2serr("can't give both '--allow' and '--prevent='\n"); usage(); - return SG_LIB_SYNTAX_ERROR; + return SG_LIB_CONTRADICT; } if (allow) prevent = 0; -- cgit v1.2.3