summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:11:15 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:11:15 (GMT)
commit3ddb0009bcf8aa00f1f647f8e21c78e137778c09 (patch)
treed1de316be03ce5d976f51eaafdec099ba6cd30ef
parenteaaa292603f3fba8e59e120e872138246b2c1b04 (diff)
downloadhdf5-3ddb0009bcf8aa00f1f647f8e21c78e137778c09.zip
hdf5-3ddb0009bcf8aa00f1f647f8e21c78e137778c09.tar.gz
hdf5-3ddb0009bcf8aa00f1f647f8e21c78e137778c09.tar.bz2
[svn-r1668] same fixes that were done on the release branch.
just casted the isdigit and isprintf parameter
-rw-r--r--tools/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index d245cc5..9beb469 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -257,7 +257,7 @@ display_string(FILE *stream, const char *s, hbool_t escape_spaces)
}
break;
default:
- if (isprint(*s)) {
+ if (isprint((int)*s)) {
if (stream) putc(*s, stream);
nprint++;
} else {
@@ -1786,7 +1786,7 @@ get_width(void)
* Try to get it from the COLUMNS environment variable first since it's
* value is sometimes wrong.
*/
- if ((s=getenv("COLUMNS")) && *s && isdigit(*s)) {
+ if ((s=getenv("COLUMNS")) && *s && isdigit((int)*s)) {
width = (int)strtol(s, NULL, 0);
}