summaryrefslogtreecommitdiff
path: root/tools/p11-kit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/p11-kit.c')
-rw-r--r--tools/p11-kit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/p11-kit.c b/tools/p11-kit.c
index 5bb31ca..f789fb8 100644
--- a/tools/p11-kit.c
+++ b/tools/p11-kit.c
@@ -47,7 +47,7 @@
#include "p11-kit/uri.h"
typedef int (*operation) (int argc, char *argv[]);
-int verbose = 0;
+bool verbose = false;
static void
usage (void)
@@ -82,7 +82,7 @@ hex_encode (const unsigned char *data,
return result;
}
-static int
+static bool
is_ascii_string (const unsigned char *data,
size_t n_data)
{
@@ -91,10 +91,10 @@ is_ascii_string (const unsigned char *data,
for (i = 0; i < n_data; i++) {
if (!isascii (data[i]) &&
(data[i] < 0x20 && !isspace (data[i])))
- return 0;
+ return false;
}
- return 1;
+ return true;
}
static void
@@ -253,7 +253,7 @@ main (int argc, char *argv[])
oper = list_modules;
break;
case 'v':
- verbose = 1;
+ verbose = true;
putenv ("P11_KIT_DEBUG=all");
break;
case 'h':