From b2e59f46a39f19ffc18be02fad71df68974a8d0b Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Mon, 9 Oct 2017 23:49:50 +0000 Subject: convert lots of two valued 'int's to bool; add sg_ll_inquiry_v2() sg_ll_write_buffer_v2() sg_get_sfs_name() and sg_decode_transportid_str() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@719 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- lib/sg_pt_solaris.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/sg_pt_solaris.c') diff --git a/lib/sg_pt_solaris.c b/lib/sg_pt_solaris.c index 497acf91..b05aafe8 100644 --- a/lib/sg_pt_solaris.c +++ b/lib/sg_pt_solaris.c @@ -1,14 +1,16 @@ /* - * Copyright (c) 2007-2015 Douglas Gilbert. + * Copyright (c) 2007-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. */ -/* sg_pt_solaris version 1.04 20151220 */ +/* sg_pt_solaris version 1.05 20171005 */ #include #include +#include +#include #include #include #include @@ -46,7 +48,7 @@ struct sg_pt_base { /* Returns >= 0 if successful. If error in Unix returns negated errno. */ int -scsi_pt_open_device(const char * device_name, int read_only, int verbose) +scsi_pt_open_device(const char * device_name, bool read_only, int verbose) { int oflags = 0 /* O_NONBLOCK*/ ; -- cgit v1.2.3