aboutsummaryrefslogtreecommitdiffstats
path: root/src/zload.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-04 09:28:01 +0100
committerMattias Andrée <maandree@kth.se>2016-03-04 09:28:01 +0100
commit0a7e36380717fe926d43ab30ef6162db9bd71723 (patch)
treeb0ad75c7525688f8e54319e440b251213a4ef3db /src/zload.c
parentAdd zptest (diff)
downloadlibzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.gz
libzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.bz2
libzahl-0a7e36380717fe926d43ab30ef6162db9bd71723.tar.xz
Add makefile and fix errors
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zload.c')
-rw-r--r--src/zload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zload.c b/src/zload.c
index 0f5d35b..c708453 100644
--- a/src/zload.c
+++ b/src/zload.c
@@ -1,14 +1,14 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
+#include "internals.h"
size_t
zload(z_t a, const void *buffer)
{
const char *buf = buffer;
- a->sign = *((int *)buf), buf += sizeof(int);
- a->used = *((size_t *)buf), buf += sizeof(size_t);
- a->alloced = *((size_t *)buf), buf += sizeof(size_t);
+ a->sign = *((const int *)buf), buf += sizeof(int);
+ a->used = *((const size_t *)buf), buf += sizeof(size_t);
+ a->alloced = *((const size_t *)buf), buf += sizeof(size_t);
if (a->alloced)
zahl_realloc(a, a->alloced);
else