diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-02-15 19:31:55 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-02-15 19:31:55 (GMT) |
commit | 71090d2e9ab3977d5b454be115eb7caf8fd56f11 (patch) | |
tree | 5faf839b593afcdfd8620cd5fe00b02457d3ece1 /tools/h5tools.c | |
parent | d12fa9b5c5ff0eb1919eb4233845867dcc6c63c0 (diff) | |
download | hdf5-71090d2e9ab3977d5b454be115eb7caf8fd56f11.zip hdf5-71090d2e9ab3977d5b454be115eb7caf8fd56f11.tar.gz hdf5-71090d2e9ab3977d5b454be115eb7caf8fd56f11.tar.bz2 |
[svn-r3412] Purpose:
Code cleanup
Description:
Cleaned the code up a bit getting rid of some warnings about "const"
being lost from passing a const char * to a function, etc.
Also force the error messages to stderr instead of simply printing
them to stdout. The same behaviour can be achieved by running h5dump
like:
h5dump ... 2>&1
however, the error reporting before this change wasn't consistent in
its use. I also made some of the error messages clearer (giving names
of the failed types and, when there's an "internal error", reporting
the line number the error occurred on so that we can debug).
Solution:
Converted to "fflush(stdout); fprintf(stderr,...);" for all error
reportings.
Platforms tested:
Linux
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r-- | tools/h5tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c index 3b8f0c8..46f2e68 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -134,7 +134,7 @@ int get_option(int argc, const char **argv, const char *opts, const struct long_options *l_opts) { static int sp = 1; /* character index in current token */ - int opt_opt='?'; /* option character passed back to user */ + int opt_opt = '?'; /* option character passed back to user */ if (sp == 1) { /* check for more flag-like tokens */ |