diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2013-02-05 16:09:45 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2013-02-05 16:09:45 (GMT) |
commit | d7a07d62a486f28ca869416762a4b45c7befb45b (patch) | |
tree | 0e1040a486f6ee6b7a3d029cf87c33d4565429ad /tools/h5jam | |
parent | b1e0f6c5a558892523c21baac0c812103bcf42a0 (diff) | |
download | hdf5-d7a07d62a486f28ca869416762a4b45c7befb45b.zip hdf5-d7a07d62a486f28ca869416762a4b45c7befb45b.tar.gz hdf5-d7a07d62a486f28ca869416762a4b45c7befb45b.tar.bz2 |
[svn-r23228] Purpose:
Revert back one of the coverity updates from previous checkin. "r20457: Coverity issue 691" in previous svn log. Only revert the change about using "STDOUT_FILENO".
Description:
Using "STDOUT_FILENO" caused error on Windows. On unix it's defined in <unistd.h>, but not in Windows. After a little discussion with Allen, he remembered how the similar case were handled for h5dump redirecting those streams. (in h5dump.c) However it would requires more attention to apply, so this issue is entered as a separate task in jira HDDFV-8306.
Tested:
jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), fred (mac64-LE)
Diffstat (limited to 'tools/h5jam')
-rw-r--r-- | tools/h5jam/h5unjam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5jam/h5unjam.c b/tools/h5jam/h5unjam.c index 18b5f11..691e2f2 100644 --- a/tools/h5jam/h5unjam.c +++ b/tools/h5jam/h5unjam.c @@ -307,7 +307,7 @@ main(int argc, const char *argv[]) if (ub_file == NULL) { /* write to sdtout */ - ufid = STDOUT_FILENO; + ufid = HDdup(1); } else { ufid = HDopen(ub_file,O_WRONLY|O_CREAT|O_TRUNC, 0644 ); |