diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 18:50:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 18:50:06 (GMT) |
commit | ae1379094b71c51342772397af5caca088862a61 (patch) | |
tree | e79cb67a1227bfdec099f62e9df22917213b8a7d /tools/src/h5jam | |
parent | d24f5d5223731d507b51d112ba564d764d6d6c18 (diff) | |
download | hdf5-ae1379094b71c51342772397af5caca088862a61.zip hdf5-ae1379094b71c51342772397af5caca088862a61.tar.gz hdf5-ae1379094b71c51342772397af5caca088862a61.tar.bz2 |
hbool_t/TRUE/FALSE --> bool/true/false in tools (#3491)
Diffstat (limited to 'tools/src/h5jam')
-rw-r--r-- | tools/src/h5jam/h5jam.c | 8 | ||||
-rw-r--r-- | tools/src/h5jam/h5unjam.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/src/h5jam/h5jam.c b/tools/src/h5jam/h5jam.c index 6f318a4..b5bf208 100644 --- a/tools/src/h5jam/h5jam.c +++ b/tools/src/h5jam/h5jam.c @@ -23,7 +23,7 @@ hsize_t compute_user_block_size(hsize_t); hsize_t copy_some_to_file(int, int, hsize_t, hsize_t, ssize_t); void parse_command_line(int, const char *const *); -static int do_clobber = FALSE; +static int do_clobber = false; static char *output_file = NULL; static char *input_file = NULL; static char *ub_file = NULL; @@ -105,7 +105,7 @@ leave(int ret) void parse_command_line(int argc, const char *const *argv) { - int opt = FALSE; + int opt = false; /* parse command line options */ while ((opt = H5_get_option(argc, argv, s_opts, l_opts)) != EOF) { @@ -120,7 +120,7 @@ parse_command_line(int argc, const char *const *argv) ub_file = HDstrdup(H5_optarg); break; case 'c': - do_clobber = TRUE; + do_clobber = true; break; case 'h': usage(h5tools_getprogname()); @@ -294,7 +294,7 @@ main(int argc, char *argv[]) startub = usize; if (usize > 0) { - if (do_clobber == TRUE) { + if (do_clobber == true) { /* where is max of the current size or the new UB */ if (usize > newubsize) { newubsize = usize; diff --git a/tools/src/h5jam/h5unjam.c b/tools/src/h5jam/h5unjam.c index d752014..517cea4 100644 --- a/tools/src/h5jam/h5unjam.c +++ b/tools/src/h5jam/h5unjam.c @@ -24,7 +24,7 @@ hsize_t write_pad(int, hsize_t); hsize_t compute_pad(hsize_t); herr_t copy_to_file(FILE *, FILE *, ssize_t, ssize_t); -int do_delete = FALSE; +int do_delete = false; char *output_file = NULL; char *input_file = NULL; char *ub_file = NULL; @@ -92,7 +92,7 @@ usage(const char *prog) static int parse_command_line(int argc, const char *const *argv) { - int opt = FALSE; + int opt = false; /* parse command line options */ while ((opt = H5_get_option(argc, argv, s_opts, l_opts)) != EOF) { @@ -118,7 +118,7 @@ parse_command_line(int argc, const char *const *argv) break; case 'd': - do_delete = TRUE; + do_delete = true; break; case 'h': |