summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_read_pos_util.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-07-04 08:36:25 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-07-17 09:22:54 (GMT)
commit1da40c3a2b2d3809871bcdbafe9c13f337ee1e88 (patch)
tree8a15310872624e44b5d41a91c11ca6af120609aa /src/tests/tng_io_read_pos_util.c
parente6e85d562829bcae40f9b360937b491699736b92 (diff)
Rewrite of file i/o.
Do not read and write data blocks in whole chunks. Read and write value by value and do the md5 summing in steps. This hopefully avoids memory alignment problems reported on ARM architectures. Fixed a bug freeing trajectory mapping memory. Change-Id: I3438b3d3faf5349dcd477a31cfb4bacf236ed582
Diffstat (limited to 'src/tests/tng_io_read_pos_util.c')
-rw-r--r--src/tests/tng_io_read_pos_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/tng_io_read_pos_util.c b/src/tests/tng_io_read_pos_util.c
index b237dad..699f52d 100644
--- a/src/tests/tng_io_read_pos_util.c
+++ b/src/tests/tng_io_read_pos_util.c
@@ -11,13 +11,14 @@
* modify it under the terms of the Revised BSD License.
*/
+#include "tng/tng_io.h"
+
#ifdef USE_STD_INTTYPES_H
#include <inttypes.h>
#endif
#include <stdlib.h>
#include <stdio.h>
-#include "tng/tng_io.h"
int main(int argc, char **argv)
{
contact: Jan Huwald // Impressum