diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | choices.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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 @@ -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){ |