summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:04:19 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:04:19 (GMT)
commit6e4bbdfd57e89b7dfa1e2a4cedca1dbfac0f9a70 (patch)
tree884853756767a4483604f28b00ab9136a72465cb /tools/h5ls.c
parentbb3e3134191058f4dfe41cadd702f52098562bab (diff)
downloadhdf5-6e4bbdfd57e89b7dfa1e2a4cedca1dbfac0f9a70.zip
hdf5-6e4bbdfd57e89b7dfa1e2a4cedca1dbfac0f9a70.tar.gz
hdf5-6e4bbdfd57e89b7dfa1e2a4cedca1dbfac0f9a70.tar.bz2
[svn-r1666] fixed a fwe warnings. most of them just needed a cast to an int
for the parameter to isdigit or isprintf functions
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index fc2cbec..cf05d39 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -247,7 +247,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 {
@@ -1776,7 +1776,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);
}