repositories
/
TD_C.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a758ce
)
TP9 exo2: Code cleanup (indentation and unused header declaration)
author
Jerome Benoit
<jerome.benoit@sap.com>
Sun, 5 Mar 2017 22:29:26 +0000
(23:29 +0100)
committer
Jerome 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
patch
|
blob
|
blame
|
history
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 <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;