diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-17 20:22:41 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-17 20:22:41 -0700 |
commit | 68862e5666f38f0e9d5d1e82433196658d2233a3 (patch) | |
tree | c88b2cf6dc5f97ee5ab42c24f2558669d9145f3c | |
parent | 9ae2a4596a5c83d55555d5805db6637831e62bec (diff) |
Add -pedantic, Remove stray ;
-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){ |