summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2003-04-09 22:15:15 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2003-04-09 22:15:15 (GMT)
commit79890b50222fa963ef6d110dd5f960d84b574643 (patch)
treed402c40ce25ee548aa530b4c7aecdbcb6c0daabf /tools
parentca9591caed818c4c4a9a2e1606f7bd49422c1bb3 (diff)
downloadhdf5-79890b50222fa963ef6d110dd5f960d84b574643.zip
hdf5-79890b50222fa963ef6d110dd5f960d84b574643.tar.gz
hdf5-79890b50222fa963ef6d110dd5f960d84b574643.tar.bz2
[svn-r6618]
Purpose: Bug fix Description: On HP11.00 and True64 systems strtoll function that is used to read text to long integers is not available. Compilation fails for h5import.c Solution: Replace strtoll with HDstrtoll. HDstrtoll is a private HDF5 function defined in H5private.h file, but this include file was already used by h5import for some other reasons. It would be probably better to choose strtol or strtoll functions at the configuration time, but HDstrtoll provided really simple solution for now. Platforms tested: arabica (to test that where it was working, it is still working), kelgia (HP11.00) and PSC True64 machine. Misc. update:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/h5import/h5import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index 74ddeab..616b73b 100755
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -454,7 +454,7 @@ readIntegerData(FILE **strm, struct Input *in)
(void) fprintf(stderr, err1);
return (-1);
}
- *in64 = (H5DT_INT64) strtoll(buffer, NULL, 10);
+ *in64 = (H5DT_INT64) HDstrtoll(buffer, NULL, 10);
}
break;
@@ -620,7 +620,7 @@ readUIntegerData(FILE **strm, struct Input *in)
(void) fprintf(stderr, err1);
return (-1);
}
- *in64 = (H5DT_UINT64) strtoll(buffer, NULL, 10);
+ *in64 = (H5DT_UINT64) HDstrtoll(buffer, NULL, 10);
}
break;