TP9 exo2: Code cleanup (indentation and unused header declaration)
authorJerome Benoit <jerome.benoit@sap.com>
Sun, 5 Mar 2017 22:29:26 +0000 (23:29 +0100)
committerJerome Benoit <jerome.benoit@sap.com>
Sun, 5 Mar 2017 22:29:26 +0000 (23:29 +0100)
Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
TP_9/exo2/clist.c

index ae7db6fcb6d5740ac59921ca684e960d88971b75..244a6877d31f111d79ea9aed02bbeb2eefdb186d 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>
 #include <stdbool.h>
 
 #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;