summaryrefslogtreecommitdiffstats
path: root/hl/examples/ptExampleVL.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-04-29 17:10:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-04-29 17:10:29 (GMT)
commit1032b7c9d6cbd0ac109b72add26d47436eaca035 (patch)
tree1ace5ef998e63259f27836f8c4a08e7445b6b1a1 /hl/examples/ptExampleVL.c
parentcc5b2ff93bc5b81993c104e64f3669a4d8f0c0a5 (diff)
downloadhdf5-1032b7c9d6cbd0ac109b72add26d47436eaca035.zip
hdf5-1032b7c9d6cbd0ac109b72add26d47436eaca035.tar.gz
hdf5-1032b7c9d6cbd0ac109b72add26d47436eaca035.tar.bz2
[svn-r12315] Purpose:
Code cleanup, etc. Description: Fix some inconsistent coding in the packet table examples Correct header file issues in C++ packet table wrapper Platforms tested: FreeBSD 4.11 (sleipnir) w/C++ Linux 2.4/64 (mir) w/C++ & FORTRAN
Diffstat (limited to 'hl/examples/ptExampleVL.c')
-rw-r--r--hl/examples/ptExampleVL.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hl/examples/ptExampleVL.c b/hl/examples/ptExampleVL.c
index 183497e..f33a469 100644
--- a/hl/examples/ptExampleVL.c
+++ b/hl/examples/ptExampleVL.c
@@ -37,7 +37,6 @@ int main(void)
/* Buffers to hold data */
hvl_t writeBuffer[5];
hvl_t readBuffer[5];
- hsize_t chunk_size=1;
/* This example has two different sizes of "record": longs and shorts */
long longBuffer[5];
@@ -68,7 +67,7 @@ int main(void)
fid=H5Fcreate("packet_table_VLexample.h5",H5F_ACC_TRUNC,H5P_DEFAULT,H5P_DEFAULT);
/* Create a variable-length packet table within the file */
- ptable = H5PTcreate_vl(fid, "Packet Test Dataset", chunk_size);
+ ptable = H5PTcreate_vl(fid, "Packet Test Dataset", (hsize_t)1);
if(ptable == H5I_INVALID_HID)
goto out;