aboutsummaryrefslogtreecommitdiff
path: root/src/sg_vpd_vendor.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 /src/sg_vpd_vendor.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 'src/sg_vpd_vendor.c')
-rw-r--r--src/sg_vpd_vendor.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sg_vpd_vendor.c b/src/sg_vpd_vendor.c
index 3ac9e04b..671f6232 100644
--- a/src/sg_vpd_vendor.c
+++ b/src/sg_vpd_vendor.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2016 Douglas Gilbert.
+ * Copyright (c) 2006-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.
@@ -87,16 +87,17 @@
/* These structures are duplicates of those of the same name in
* sg_vpd.c . Take care that both are the same. */
+
struct opts_t {
- int do_all;
- int do_enum;
- int do_force;
+ bool do_all;
+ bool do_enum;
+ bool do_force;
+ bool do_long;
+ bool do_quiet;
int do_hex;
int vpd_pn;
int do_ident;
- int do_long;
int maxlen;
- int do_quiet;
int do_raw;
int vend_prod_num;
int verbose;