summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/examples/ex_table_04.c7
-rw-r--r--hl/examples/ptExampleFL.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/hl/examples/ex_table_04.c b/hl/examples/ex_table_04.c
index 5912c43..f10f526 100644
--- a/hl/examples/ex_table_04.c
+++ b/hl/examples/ex_table_04.c
@@ -70,8 +70,6 @@ int main( void )
sizeof( dst_buf[0].temperature)};
size_t field_offset_pos[2] = { HOFFSET( Position, lati ),
HOFFSET( Position, longi )};
- size_t field_offset_namepre[2] = { HOFFSET( NamePressure, name ),
- HOFFSET( NamePressure, pressure )};
const char *field_names[NFIELDS] = /* Define field information */
{ "Name","Latitude", "Longitude", "Pressure", "Temperature" };
hid_t field_type[NFIELDS];
@@ -102,11 +100,6 @@ int main( void )
sizeof(position_in[0].longi),
sizeof(position_in[0].lati)
};
- size_t field_sizes_namepre[2]=
- {
- sizeof(namepre_in[0].name),
- sizeof(namepre_in[0].pressure)
- };
size_t field_sizes_pre[1]=
{
sizeof(namepre_in[0].pressure)
diff --git a/hl/examples/ptExampleFL.c b/hl/examples/ptExampleFL.c
index 956f1d6..bbd0bf6 100644
--- a/hl/examples/ptExampleFL.c
+++ b/hl/examples/ptExampleFL.c
@@ -72,7 +72,7 @@ int main(void)
if(err < 0)
goto out;
- printf("Number of packets in packet table after five appends: %d\n", count);
+ printf("Number of packets in packet table after five appends: %d\n", (int)count);
/* Initialize packet table's "current record" */
err = H5PTcreate_index(ptable);