From 0bd1b41ba5402b9eba660956227a8e67888c41fd Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 7 Jan 2002 14:57:26 -0500 Subject: [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) --- tools/lib/h5tools.c | 12 +++++++----- 1 file 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; -- cgit v0.12