summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2008-10-03 03:54:23 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2008-10-03 03:54:23 (GMT)
commit3d008d3756c094fa205770b810fa2719c3e21687 (patch)
tree46c06c3ad13199c2a415dc8d5c9fc28123aeb83a /src/H5system.c
parent33ae6a749eaa04ee7ab91d7b63cb430fd4e0fc8f (diff)
downloadhdf5-3d008d3756c094fa205770b810fa2719c3e21687.zip
hdf5-3d008d3756c094fa205770b810fa2719c3e21687.tar.gz
hdf5-3d008d3756c094fa205770b810fa2719c3e21687.tar.bz2
[svn-r15762] Changes for bug #1247 so that the user can specify the driver
to use when opening the external linked target file. 1. Two new public routines are added to H5Plapl.c as well as "del/copy/close" callbacks for the property itself. 2. Modify H5L_extern_traverse() to use the fapl set via H5Pset_elink_fapl() and retrieve via H5Pget_elink_fapl(). 3. Add 3 tests to links.c to verify H5Pset/get_elink_fapl(). Also fix the compiler warning for the "if condition" in H5_build_extpath() of H5system.c.
Diffstat (limited to 'src/H5system.c')
-rw-r--r--src/H5system.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c
index ddb8567..8f91e2f 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -597,6 +597,9 @@ HDremove_all(const char *fname)
*
* Programmer: Vailin Choi
* April 2, 2008
+ * Modifications: 2nd Oct, 2008; Vailin Choi
+ * Remove compiler warning for "if condition"
+ *
*-------------------------------------------------------------------------
*/
#define MAX_PATH_LEN 1024
@@ -641,7 +644,7 @@ H5_build_extpath(const char *name, char **extpath/*out*/)
* Get current drive
* Unix: does not apply
*/
- } else if (CHECK_ABS_PATH(name) && (drive=HDgetdrive())) {
+ } else if (CHECK_ABS_PATH(name) && ((drive=HDgetdrive()) != 0)) {
sprintf(cwdpath, "%c:%c", (drive+'A'-1), name[0]);
retcwd = cwdpath;
HDstrcpy(new_name, &name[1]);