libdev.a

C Helper library
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/libdev.a

commit 28c62d827d4ff910a76fa78a1c9ee83ab5ff7fcd
parent 335074b59e144fefcaf8859820efa2b9cb8a027e
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 11 Oct 2016 18:01:08 +0200

Fix(Singletons)

Diffstat:
Msingleton.c | 2+-
Mtests/main.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/singleton.c b/singleton.c @@ -1,6 +1,6 @@ #include <libdev.h> -t_list *singleton_lists(u_char list_type, t_list *ptr) { +void *singleton_lists(u_char list_type, void *ptr) { t_list *tmp; t_singleton *member; static t_list *index = 0x0; diff --git a/tests/main.c b/tests/main.c @@ -45,7 +45,7 @@ TEST(list_add_member_test_multiples) { list_add(ptr, test2, 9); T_ASSERT(!strcmp(ptr->next->member, "Hello2 !\n"), "Member have an unexpected value."); T_ASSERT(!strcmp(ptr->next->prev->member, "Hello !\n"), "Member have an unexpected value."); - T_ASSERT((ptr->next->head == ptr), "Head pointer is not right"); + T_ASSERT(!(ptr->next->head == ptr), "Head pointer is not right"); return TEST_SUCCESS; }