summaryrefslogtreecommitdiffstats
path: root/hl/examples/ex_image2.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-03-11 09:59:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-03-11 09:59:37 (GMT)
commit77f1054b3d34e2ee65de389bd8588c031db7db1f (patch)
tree0490d5dc58b82e4db0b3fbd3fd4cf28845bde943 /hl/examples/ex_image2.c
parent52896a9f015ce685e00c72dba3aff146ebc3df49 (diff)
parent88ac8e8929f6fd99732a1e08ced4ea82bfb230f1 (diff)
downloadhdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.zip
hdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.tar.gz
hdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.tar.bz2
[svn-r26429] Merge of r26393-26428 from the trunk.
Tested w/ h5committest
Diffstat (limited to 'hl/examples/ex_image2.c')
-rw-r--r--hl/examples/ex_image2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hl/examples/ex_image2.c b/hl/examples/ex_image2.c
index 3276f7c..b57f1b7 100644
--- a/hl/examples/ex_image2.c
+++ b/hl/examples/ex_image2.c
@@ -35,7 +35,7 @@ int main( void )
hsize_t height; /* height of image */
unsigned char pal[ PAL_ENTRIES * 3 ]; /* palette array */
hsize_t pal_dims[2] = {PAL_ENTRIES,3}; /* palette dimensions */
- herr_t status, i, n;
+ herr_t i, n;
/* create a new HDF5 file using default properties. */
file_id = H5Fcreate( "ex_image2.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT );
@@ -45,7 +45,7 @@ int main( void )
goto out;
/* make the image */
- status=H5IMmake_image_8bit( file_id, IMAGE1_NAME, width, height, gbuf );
+ H5IMmake_image_8bit( file_id, IMAGE1_NAME, width, height, gbuf );
if (gbuf) {
free(gbuf);
gbuf = NULL;
@@ -63,10 +63,10 @@ int main( void )
}
/* make a palette */
- status=H5IMmake_palette( file_id, PAL_NAME, pal_dims, pal );
+ H5IMmake_palette( file_id, PAL_NAME, pal_dims, pal );
/* attach the palette to the image */
- status=H5IMlink_palette( file_id, IMAGE1_NAME, PAL_NAME );
+ H5IMlink_palette( file_id, IMAGE1_NAME, PAL_NAME );
/*-------------------------------------------------------------------------
* True color image example with pixel interlace
@@ -78,7 +78,7 @@ int main( void )
goto out;
/* make dataset */
- status=H5IMmake_image_24bit( file_id, IMAGE2_NAME, width, height, "INTERLACE_PIXEL", gbuf );
+ H5IMmake_image_24bit( file_id, IMAGE2_NAME, width, height, "INTERLACE_PIXEL", gbuf );
/* close the file. */
H5Fclose( file_id );