summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-01-07 19:57:26 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-01-07 19:57:26 (GMT)
commit0bd1b41ba5402b9eba660956227a8e67888c41fd (patch)
tree51bf9e5b2072fb8e73b5030522fb329fead149c7 /tools
parent1c357f8f376a2b36043959d10accab3cc003011f (diff)
downloadhdf5-0bd1b41ba5402b9eba660956227a8e67888c41fd.zip
hdf5-0bd1b41ba5402b9eba660956227a8e67888c41fd.tar.gz
hdf5-0bd1b41ba5402b9eba660956227a8e67888c41fd.tar.bz2
[svn-r4790]
Purpose: Bug Fix Description: Trailing ,'s after a list of initializers to an array were causing some compilers to barf. Solution: Put the commas before the elements in the list so we don't have an empty trailing comma. Platforms tested: Linux (pp)
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 43b284a..df96d64 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -164,14 +164,15 @@ h5tools_fopen(const char *fname, const char *driver, char *drivername,
const char *name;
hid_t fapl;
} drivers_list[] = {
- { "sec2", FAIL },
- { "family", FAIL },
- { "split", FAIL },
- { "multi", FAIL },
+ { "sec2", FAIL }
+ ,{ "family", FAIL }
+ ,{ "split", FAIL }
+ ,{ "multi", FAIL }
#ifdef H5_HAVE_STREAM
- { "stream", FAIL },
+ ,{ "stream", FAIL }
#endif /* H5_HAVE_STREAM */
};
+
/* This enum should match the entries in the above drivers_list since they
* are indexes into the drivers_list array. */
enum {
@@ -183,6 +184,7 @@ h5tools_fopen(const char *fname, const char *driver, char *drivername,
,STREAM_IDX
#endif /* H5_HAVE_STREAM */
};
+
#define NUM_DRIVERS (sizeof(drivers_list) / sizeof(struct d_list))
static int initialized = 0;