diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-04-25 23:49:04 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-04-25 23:49:04 (GMT) |
commit | a8676d74d9fc50c0da4dcf4cf5646e4a8b2352ba (patch) | |
tree | e10dce719d3ddb94a1a89c9c498a2df23f2df2b2 /tools/test/h5import | |
parent | e54f5a14d28cf9eb1226ce7feab2e2600d3984b4 (diff) | |
download | hdf5-a8676d74d9fc50c0da4dcf4cf5646e4a8b2352ba.zip hdf5-a8676d74d9fc50c0da4dcf4cf5646e4a8b2352ba.tar.gz hdf5-a8676d74d9fc50c0da4dcf4cf5646e4a8b2352ba.tar.bz2 |
Fixes for warnings in the tools code.
Diffstat (limited to 'tools/test/h5import')
-rw-r--r-- | tools/test/h5import/h5importtest.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/test/h5import/h5importtest.c b/tools/test/h5import/h5importtest.c index 560f1b3..580530a 100644 --- a/tools/test/h5import/h5importtest.c +++ b/tools/test/h5import/h5importtest.c @@ -68,13 +68,12 @@ main(void) double rowi8 = 1.0F, coli8 = 2.0F, plni8 = 5.0F; /* Initialize machine endian */ - volatile uint32_t ibyte=0x01234567; + volatile uint32_t ibyte = 0x01234567; /* 0 for big endian, 1 for little endian. */ - if ((*((uint8_t*)(&ibyte))) == 0x67) - HDstrncpy(machine_order, "LE", 2); + if ((*((volatile uint8_t *)(&ibyte))) == 0x67) + HDstrcpy(machine_order, "LE"); else - HDstrncpy(machine_order, "BE", 2); - + HDstrcpy(machine_order, "BE"); /* * initialize the row, column, and plane vectors |