From: Jerome Benoit Date: Sun, 5 Mar 2017 22:29:26 +0000 (+0100) Subject: TP9 exo2: Code cleanup (indentation and unused header declaration) X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=eede13dc23d5e3377a9c8ba48d34409b3de02b45;p=TD_C.git TP9 exo2: Code cleanup (indentation and unused header declaration) Signed-off-by: Jerome Benoit --- 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;