repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP9 exo2: Code cleanup (indentation and unused header declaration)
[TD_C.git]
/
TP_9
/
exo2
/
clist.c
diff --git
a/TP_9/exo2/clist.c
b/TP_9/exo2/clist.c
index ae7db6fcb6d5740ac59921ca684e960d88971b75..244a6877d31f111d79ea9aed02bbeb2eefdb186d 100644
(file)
--- a/
TP_9/exo2/clist.c
+++ b/
TP_9/exo2/clist.c
@@
-1,6
+1,5
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <assert.h>
#include <stdbool.h>
#include "clist.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;
while (head2 != NULL && head2->next != NULL) {
head = head->next;
- head2 = head->next->next;
+
head2 = head->next->next;
}
head2 = head->next;
head->next = NULL;
}
head2 = head->next;
head->next = NULL;