summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-06-16 19:15:16 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-06-16 19:15:16 (GMT)
commit8de95dd697ea2fd3620acde1c7a023fc71723d90 (patch)
tree8ddcc076f421ecf94ebc2044c3fb6ce650dbc57b
parent06c7d8fbbf7f5d1dedc2f0ea0cb75a37e5677527 (diff)
downloadhdf5-8de95dd697ea2fd3620acde1c7a023fc71723d90.zip
hdf5-8de95dd697ea2fd3620acde1c7a023fc71723d90.tar.gz
hdf5-8de95dd697ea2fd3620acde1c7a023fc71723d90.tar.bz2
[svn-r1355] Bug fix: compiler complained about errno not defined. That was
because it is predefined in <errno.h>, not <sys/errno.h> which contains the system error codes. Fixed and tested in IRIX6.5 (also got rid of the few K&R C-style function declaration statements.)
-rw-r--r--tools/h5toh4.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/h5toh4.c b/tools/h5toh4.c
index 30224c6..02f4a41 100644
--- a/tools/h5toh4.c
+++ b/tools/h5toh4.c
@@ -13,7 +13,7 @@
#include <stdio.h>
#include <sys/fcntl.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <string.h>
#include <h5toh4.h>
@@ -278,7 +278,7 @@ main(int argc, char **argv)
*****************************************************************************/
-int PrintOptions_h5toh4()
+int PrintOptions_h5toh4(void)
{
fprintf(stderr,"\nh5toh4 -h (gives this print-out)\n");
fprintf(stderr,"h5toh4 file.h5 file.hdf\n");
@@ -302,9 +302,7 @@ int PrintOptions_h5toh4()
*****************************************************************************/
-int h5toh4(h5_filename, h4_filename)
- char *h5_filename;
- char *h4_filename;
+int h5toh4(char *h5_filename, char *h4_filename)
{
hid_t fid, gid;
@@ -2267,8 +2265,7 @@ int test_file(char *filename,int oflag,mode_t mode)
*****************************************************************************/
-int test_dir(path)
- char *path;
+int test_dir(char *path)
{
struct stat buf;