summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Cao <xcao@hdfgroup.org>2008-08-06 18:16:44 (GMT)
committerPeter Cao <xcao@hdfgroup.org>2008-08-06 18:16:44 (GMT)
commit2b3a491ee19dc9ef1b5fcd2c2dcff296174e23b6 (patch)
treec423b4f390fca4a9cf8c983a869c3d6701841d0f /tools
parente47c44c04a4a603911c7220504234df3eae32807 (diff)
downloadhdf5-2b3a491ee19dc9ef1b5fcd2c2dcff296174e23b6.zip
hdf5-2b3a491ee19dc9ef1b5fcd2c2dcff296174e23b6.tar.gz
hdf5-2b3a491ee19dc9ef1b5fcd2c2dcff296174e23b6.tar.bz2
[svn-r15439] Add the following patch
=== The following patch to h5copy.c on or near line 173 makes the tool substantially more useful... *flag = (*flag) | fla; Because the command-line option parsing permits multiple '-f' arguments, this will have the effect of or'ing the flags together so one can do someting like.... ~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft Mark C. Miller, Lawrence Livermore National Laboratory email: mailto:miller86@llnl.gov ===
Diffstat (limited to 'tools')
-rw-r--r--tools/h5copy/h5copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5copy/h5copy.c b/tools/h5copy/h5copy.c
index 216b2bb..a4d1675 100644
--- a/tools/h5copy/h5copy.c
+++ b/tools/h5copy/h5copy.c
@@ -170,7 +170,7 @@ static int parse_flag(const char* str_flag, unsigned *flag)
return -1;
}
- *flag = fla;
+ *flag = (*flag) | fla;
return 0;
}