diff --git a/src/std/c_list.c b/src/std/c_list.c index bf944f82dd..55a796f479 100644 --- a/src/std/c_list.c +++ b/src/std/c_list.c @@ -267,7 +267,7 @@ c_list_t *c_list_next(c_list_t *list) { /* * Gets the previous element in a c_list. */ -c_list_t *c_list_previous(c_list_t *list) { +c_list_t *c_list_prev(c_list_t *list) { if (list == NULL) { return NULL; } else { diff --git a/src/std/c_list.h b/src/std/c_list.h index ad7aab279d..1f20fcb0fd 100644 --- a/src/std/c_list.h +++ b/src/std/c_list.h @@ -164,16 +164,6 @@ c_list_t *c_list_remove(c_list_t *list, void *data); */ void c_list_free(c_list_t *list); -/** - * Gets the previous element in a c_list. - * - * @param An element in a c_list. - * - * @return The previous element, or NULL if there are no more - * elements. - */ -c_list_t *c_list_previous(c_list_t *list); - /** * Gets the next element in a c_list. * @@ -184,6 +174,16 @@ c_list_t *c_list_previous(c_list_t *list); */ c_list_t *c_list_next(c_list_t *list); +/** + * Gets the previous element in a c_list. + * + * @param An element in a c_list. + * + * @return The previous element, or NULL if there are no more + * elements. + */ +c_list_t *c_list_prev(c_list_t *list); + /** * Gets the number of elements in a c_list *