diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-08-04 22:20:47 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-08-04 22:20:47 (GMT) |
commit | c9d0be431eadb2996325e3abd1b63e9de16026ac (patch) | |
tree | de66b25b2b773216873a92683632a239043b4cb1 /test | |
parent | 52857497ee409955574064cd2db2751cc488b831 (diff) | |
download | hdf5-c9d0be431eadb2996325e3abd1b63e9de16026ac.zip hdf5-c9d0be431eadb2996325e3abd1b63e9de16026ac.tar.gz hdf5-c9d0be431eadb2996325e3abd1b63e9de16026ac.tar.bz2 |
[svn-r2468] Changed type of variable to long since that's what it should hold after a
call to the strtol() function.
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/h5test.c b/test/h5test.c index a89c49b..e052c40 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -304,10 +304,10 @@ h5_fileaccess(void) { const char *val = NULL; const char *name; - char s[1024]; - hid_t fapl = -1; - hsize_t fam_size = 100*1024*1024; /*100 MB*/ - int verbosity = 1; + char s[1024]; + hid_t fapl = -1; + hsize_t fam_size = 100*1024*1024; /*100 MB*/ + long verbosity = 1; H5FD_mem_t mt; /* First use the environment variable, then the constant */ @@ -371,10 +371,11 @@ h5_fileaccess(void) if (H5Pset_fapl_family(fapl, fam_size, H5P_DEFAULT)<0) return -1; } else if (!strcmp(name, "log")) { /* Log file access */ - if ((val=strtok(NULL, " \t\n\r"))) { + if ((val = strtok(NULL, " \t\n\r"))) verbosity = strtol(val, NULL, 0); - } - if (H5Pset_fapl_log(fapl, NULL, verbosity)<0) return -1; + + if (H5Pset_fapl_log(fapl, NULL, verbosity) < 0) + return -1; } else { /* Unknown driver */ return -1; |