diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-04-25 23:49:04 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:20 (GMT) |
commit | 3efed9c1110521a8361603436984a677f2bbea29 (patch) | |
tree | 5b676c2e131f18603b23dc8c67b142ded45ae3f9 /tools/test/h5import/h5importtest.c | |
parent | 97431e256b70a393605d515f186e914a044a3fee (diff) | |
download | hdf5-3efed9c1110521a8361603436984a677f2bbea29.zip hdf5-3efed9c1110521a8361603436984a677f2bbea29.tar.gz hdf5-3efed9c1110521a8361603436984a677f2bbea29.tar.bz2 |
Fixes for warnings in the tools code.
Diffstat (limited to 'tools/test/h5import/h5importtest.c')
-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 |