diff options
| author | Ben Foster | 2017-10-25 22:25:30 +0100 |
|---|---|---|
| committer | Ben Foster | 2017-10-26 21:14:00 +0100 |
| commit | 59b3db273e6e628afb188681e178ea53d571b03d (patch) | |
| tree | ce000e1cf87ea9c206bc81e2b958173e28f7c464 /src/sp_list.c | |
| parent | eab3fb2fd6e6e827327a4971b3371fb67a7d8600 (diff) | |
Renames `sp_new_list` -> `sp_list_new`
To be consistent with the rest of the `sp_list` functions.
Diffstat (limited to 'src/sp_list.c')
| -rw-r--r-- | src/sp_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_list.c b/src/sp_list.c index 112d822..c671f51 100644 --- a/src/sp_list.c +++ b/src/sp_list.c | |||
| @@ -11,7 +11,7 @@ void sp_list_free(sp_node_t *node) { | |||
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | sp_node_t *sp_new_list() { | 14 | sp_node_t *sp_list_new() { |
| 15 | sp_node_t *new = pecalloc(sizeof(*new), 1, 1); | 15 | sp_node_t *new = pecalloc(sizeof(*new), 1, 1); |
| 16 | new->next = new->data = new->head = NULL; | 16 | new->next = new->data = new->head = NULL; |
| 17 | return new; | 17 | return new; |
| @@ -52,4 +52,4 @@ void sp_list_prepend(sp_node_t *list, void *data) { | |||
| 52 | new->data = list->data; | 52 | new->data = list->data; |
| 53 | list->data = data; | 53 | list->data = data; |
| 54 | } | 54 | } |
| 55 | } \ No newline at end of file | 55 | } |
