repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TP 9 exo2: correct some types mismatching.
[TD_C.git]
/
TP_9
/
exo1
/
clist.c
diff --git
a/TP_9/exo1/clist.c
b/TP_9/exo1/clist.c
index 69fd8ccb74ffc088389398e7fad59a3a9e8eab4e..87f97a7a5f994be611ff29afe8e9d50df386f719 100644
(file)
--- a/
TP_9/exo1/clist.c
+++ b/
TP_9/exo1/clist.c
@@
-44,7
+44,7
@@
int list_get(link_t* head, unsigned index) {
void list_clear(link_t* link) {
while (link != NULL) {
- link_t* next_link = link;
+ link_t* next_link = link
->next
;
free(link);
link = next_link;
}