X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_9%2Fexo2%2Fclist.c;fp=TP_9%2Fexo2%2Fclist.c;h=244a6877d31f111d79ea9aed02bbeb2eefdb186d;hb=eede13dc23d5e3377a9c8ba48d34409b3de02b45;hp=ae7db6fcb6d5740ac59921ca684e960d88971b75;hpb=4a758ce5f71ecc19fb6457595fb04c18b6918b9f;p=TD_C.git diff --git a/TP_9/exo2/clist.c b/TP_9/exo2/clist.c index ae7db6f..244a687 100644 --- a/TP_9/exo2/clist.c +++ b/TP_9/exo2/clist.c @@ -1,6 +1,5 @@ #include #include -#include #include #include "clist.h" @@ -150,7 +149,7 @@ link_t* list_merge_sort(link_t* head) { head2 = head->next; while (head2 != NULL && head2->next != NULL) { head = head->next; - head2 = head->next->next; + head2 = head->next->next; } head2 = head->next; head->next = NULL;