summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Rf.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-19 19:14:19 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-19 19:14:19 (GMT)
commitc26d21bb63aef6376736dbe57e285bd5cbc6dad9 (patch)
treed37d83f73182e2a36d2b32e61999f83d436da1bf /fortran/src/H5Rf.c
parentdb64e760565d89bafd26515d2579928a53a60f24 (diff)
downloadhdf5-c26d21bb63aef6376736dbe57e285bd5cbc6dad9.zip
hdf5-c26d21bb63aef6376736dbe57e285bd5cbc6dad9.tar.gz
hdf5-c26d21bb63aef6376736dbe57e285bd5cbc6dad9.tar.bz2
[svn-r26481] Removed compiler warnings. HDF5-239
Tested: h5committest.
Diffstat (limited to 'fortran/src/H5Rf.c')
-rw-r--r--fortran/src/H5Rf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fortran/src/H5Rf.c b/fortran/src/H5Rf.c
index 19fa6b1..068f24e 100644
--- a/fortran/src/H5Rf.c
+++ b/fortran/src/H5Rf.c
@@ -148,13 +148,11 @@ h5rcreate_ptr_c (void *ref, hid_t_f *loc_id, _fcd name, int_f *namelen, int_f *r
{
int ret_value = -1;
char *c_name;
- size_t c_namelen;
/*
* Convert FORTRAN name to C name
*/
- c_namelen = (size_t)*namelen;
- c_name = (char *)HD5f2cstring(name, c_namelen);
+ c_name = (char *)HD5f2cstring(name, (size_t)*namelen);
if (c_name == NULL) return ret_value;
/*