aboutsummaryrefslogtreecommitdiff
path: root/src/sg_turs.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-10-13 02:04:33 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-10-13 02:04:33 +0000
commit23712b6e6d5ee067cf7a740ef10e4dbea90dd179 (patch)
treec323728be100cf78adade4d95987826a5819fc7a /src/sg_turs.c
parent2715125260da177d9869321027ef22a9f49fde1b (diff)
downloadsg3_utils-23712b6e6d5ee067cf7a740ef10e4dbea90dd179.tar.gz
further two valued ints converted to bool
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@721 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_turs.c')
-rw-r--r--src/sg_turs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sg_turs.c b/src/sg_turs.c
index 18d61fd2..1ee2fb4d 100644
--- a/src/sg_turs.c
+++ b/src/sg_turs.c
@@ -33,7 +33,7 @@
#include "sg_pr2serr.h"
-static const char * version_str = "3.35 20171007";
+static const char * version_str = "3.36 20171011";
#if defined(MSC_VER) || defined(__MINGW32__)
#define HAVE_MS_SLEEP
@@ -188,7 +188,8 @@ process_cl_new(struct opts_t * op, int argc, char * argv[])
static int
process_cl_old(struct opts_t * op, int argc, char * argv[])
{
- int k, jmp_out, plen;
+ bool jmp_out;
+ int k, plen;
const char * cp;
for (k = 1; k < argc; ++k) {
@@ -197,7 +198,7 @@ process_cl_old(struct opts_t * op, int argc, char * argv[])
if (plen <= 0)
continue;
if ('-' == *cp) {
- for (--plen, ++cp, jmp_out = 0; plen > 0; --plen, ++cp) {
+ for (--plen, ++cp, jmp_out = false; plen > 0; --plen, ++cp) {
switch (*cp) {
case 'N':
op->opts_new = true;
@@ -220,7 +221,7 @@ process_cl_old(struct opts_t * op, int argc, char * argv[])
usage_old();
return 0;
default:
- jmp_out = 1;
+ jmp_out = true;
break;
}
if (jmp_out)