summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--choices.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee02ea5..349ffc2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION=0.1beta
CPPFLAGS=-DVERSION=\"${VERSION}\"
-CFLAGS+=-Wall -Wextra -g -std=c99 -O3
+CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic
PREFIX?=/usr/local
MANDIR?=$(PREFIX)/share/man
BINDIR?=$(PREFIX)/bin
diff --git a/choices.c b/choices.c
index 8db33eb..95acd42 100644
--- a/choices.c
+++ b/choices.c
@@ -40,10 +40,11 @@ void choices_init(choices_t *c){
c->selection = c->available = 0;
choices_resize(c, INITIAL_CAPACITY);
}
+
void choices_free(choices_t *c){
free(c->strings);
free(c->results);
-};
+}
void choices_add(choices_t *c, const char *choice){
if(c->size == c->capacity){