aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsets.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/zsets.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/zsets.c')
-rw-r--r--src/zsets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zsets.c b/src/zsets.c
index bae34c1..24cdd48 100644
--- a/src/zsets.c
+++ b/src/zsets.c
@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
-#include "internals"
+#include "internals.h"
-#include <errno.h>
+#include <ctype.h>
int
@@ -30,7 +30,7 @@ zsets(z_t a, const char *str)
while (*str) {
#define X(n)\
case n:\
- temp *= 10, temp += *str++ & 15;\
+ temp *= 10, temp += *str++ & 15;
X(0) X(18) X(17) X(16) X(15) X(14) X(13) X(12) X(11)
X(10) X(9) X(8) X(7) X(6) X(5) X(4) X(3) X(2) X(1)
#undef X