diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-07-11 15:28:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 15:28:52 (GMT) |
commit | be5de999a92ec1ba7853827ff0b5966f3569e792 (patch) | |
tree | 7957815809eaff5854fd61d133ef72aedf62a589 /tools | |
parent | e0c24431797973a042291967fad087f8e3a48724 (diff) | |
download | hdf5-be5de999a92ec1ba7853827ff0b5966f3569e792.zip hdf5-be5de999a92ec1ba7853827ff0b5966f3569e792.tar.gz hdf5-be5de999a92ec1ba7853827ff0b5966f3569e792.tar.bz2 |
Adds explicit indices to drivernames array in the tools (#1867)
Will help keep the drivernames and driver_idx enum in sync.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5tools.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 720d8c3..06f6b2d 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -81,7 +81,10 @@ const char *volnames[] = { * */ const char *drivernames[] = { - "sec2", "direct", "log", "windows", "stdio", "core", "family", "split", "multi", "mpio", "ros3", "hdfs", + [SEC2_VFD_IDX] = "sec2", [DIRECT_VFD_IDX] = "direct", [LOG_VFD_IDX] = "log", + [WINDOWS_VFD_IDX] = "windows", [STDIO_VFD_IDX] = "stdio", [CORE_VFD_IDX] = "core", + [FAMILY_VFD_IDX] = "family", [SPLIT_VFD_IDX] = "split", [MULTI_VFD_IDX] = "multi", + [MPIO_VFD_IDX] = "mpio", [ROS3_VFD_IDX] = "ros3", [HDFS_VFD_IDX] = "hdfs", }; #define NUM_VOLS (sizeof(volnames) / sizeof(volnames[0])) |