summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:09:41 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:09:41 (GMT)
commiteaaa292603f3fba8e59e120e872138246b2c1b04 (patch)
tree18782e2b3c1d1519087666a1566fe9ed4882aa88 /tools
parentb4dbf55fbefa45eeeceea2db8fa98570292ac098 (diff)
downloadhdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.zip
hdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.tar.gz
hdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.tar.bz2
[svn-r1667] same fixes from the release branch were done here.
just casts with the parameters for the isdigit and isprint functions
Diffstat (limited to 'tools')
-rw-r--r--tools/h5repart.c2
-rw-r--r--tools/h5tools.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5repart.c b/tools/h5repart.c
index 6f6f2df..0a89143 100644
--- a/tools/h5repart.c
+++ b/tools/h5repart.c
@@ -105,7 +105,7 @@ get_size (const char *progname, int *argno, int argc, char *argv[])
off_t retval=-1;
char *suffix;
- if (isdigit (argv[*argno][2])) {
+ if (isdigit ((int)(argv[*argno][2]))) {
retval = strtol (argv[*argno]+2, &suffix, 10);
(*argno)++;
} else if (argv[*argno][2] || *argno+1>=argc) {
diff --git a/tools/h5tools.c b/tools/h5tools.c
index df40ae3..36ce038 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -435,7 +435,7 @@ h5dump_escape(char *s/*in,out*/, size_t size, int escape_spaces)
escape = escape_spaces ? "\\ " : NULL;
break;
default:
- if (!isprint(*s)) {
+ if (!isprint((int)*s)) {
sprintf(octal, "\\%03o", (unsigned char)(s[i]));
escape = octal;
} else {
@@ -668,7 +668,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, "\\t");
break;
default:
- if (isprint(*((char*)vp))) {
+ if (isprint((int)(*((char*)vp)))) {
h5dump_str_append(str, "%c", *((char*)vp));
} else {
h5dump_str_append(str, "\\%03o", *((unsigned char*)vp));
@@ -736,7 +736,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, "\\t");
break;
default:
- if (isprint(((char*)vp)[i])) {
+ if (isprint((int)((char*)vp)[i])) {
h5dump_str_append(str, "%c", ((char*)vp)[i]);
} else {
h5dump_str_append(str, "\\%03o", ((unsigned char*)vp)[i]);