summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-09-13 21:11:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-09-13 21:11:30 (GMT)
commita8c63e28d570c1eea5a23b9ed684efb4cd24e3ba (patch)
treea501ac6a79670c132cad11386a819ffaea570945 /tools/h5diff
parent3c021d3a7775df18247de19cee3805178cd2666c (diff)
downloadhdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.zip
hdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.tar.gz
hdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.tar.bz2
[svn-r24138] Cast constants to specified type.
Cast smaller vars to larger type. Cast calculation result to correct type. Changed int member to hbool_t Tested: local linux
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diff_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index b8e46f3..cf46e74 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -15,6 +15,7 @@
#include <stdlib.h>
#include <string.h>
+#include "H5private.h"
#include "h5diff.h"
#include "h5diff_common.h"
#include "h5tools.h"
@@ -135,7 +136,7 @@ void parse_command_line(int argc,
options->m_verbose_level = 0;
break;
}
- else if (!strncmp (argv[i], "-v", 2))
+ else if (!strncmp (argv[i], "-v", (size_t)2))
{
options->m_verbose_level = atoi(&argv[i][2]);
break;
@@ -149,7 +150,7 @@ void parse_command_line(int argc,
options->m_verbose_level = 0;
break;
}
- else if ( !strncmp (argv[i], "--verbose", 9) && argv[i][9]=='=')
+ else if ( !strncmp (argv[i], "--verbose", (size_t)9) && argv[i][9]=='=')
{
options->m_verbose_level = atoi(&argv[i][10]);
break;
@@ -164,7 +165,7 @@ void parse_command_line(int argc,
options->m_report = 1;
break;
case 'l':
- options->follow_links = 1;
+ options->follow_links = TRUE;
break;
case 'x':
options->no_dangle_links = 1;