diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-02 21:45:26 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-02 21:45:26 -0700 |
commit | aed59e60a2b54589bcd173dd263a882b8f9a0b64 (patch) | |
tree | 6d1bc67291e8e1ad912ec17ef7eb7e7b2c57b783 | |
parent | c5ab36831ec13a695e35de627409929eff05ff46 (diff) |
Rename choices_free to choices_destroy
To clarify that we aren't freeing the choices structure, just the
buffers associated with it.
-rw-r--r-- | choices.c | 2 | ||||
-rw-r--r-- | choices.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -97,7 +97,7 @@ void choices_init(choices_t *c) { choices_reset_search(c); } -void choices_free(choices_t *c) { +void choices_destroy(choices_t *c) { free(c->buffer); c->buffer = NULL; c->buffer_size = 0; @@ -24,7 +24,7 @@ typedef struct { void choices_init(choices_t *c); void choices_fread(choices_t *c, FILE *file); -void choices_free(choices_t *c); +void choices_destroy(choices_t *c); void choices_add(choices_t *c, const char *choice); size_t choices_available(choices_t *c); void choices_search(choices_t *c, const char *search); |