aboutsummaryrefslogtreecommitdiff
path: root/lib/sg_pt_solaris.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-10-09 23:49:50 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-10-09 23:49:50 +0000
commitb2e59f46a39f19ffc18be02fad71df68974a8d0b (patch)
tree83b037b8108830c5f04d93fa50d19bbda5fb6ea1 /lib/sg_pt_solaris.c
parentdc469cf010ce1c840d6a1790cc4179ea0f5912dd (diff)
downloadsg3_utils-b2e59f46a39f19ffc18be02fad71df68974a8d0b.tar.gz
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
Diffstat (limited to 'lib/sg_pt_solaris.c')
-rw-r--r--lib/sg_pt_solaris.c8
1 files changed, 5 insertions, 3 deletions
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 <stdio.h>
#include <stdlib.h>
+#include <stdarg.h>
+#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
@@ -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*/ ;