X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_9%2Fexo2%2Fclist.c;h=1ca2fc55fd945a57371ee0e34d77736fbd077822;hp=4812ab8d724d9d99c6760c86cf786fd9c8b5bb91;hb=65544a820bed85dd28908966d9b25bb3a934f114;hpb=970a0122d81ff0a4400612cf80f7096780c452ff diff --git a/TP_9/exo2/clist.c b/TP_9/exo2/clist.c index 4812ab8..1ca2fc5 100644 --- a/TP_9/exo2/clist.c +++ b/TP_9/exo2/clist.c @@ -119,7 +119,7 @@ link_t* list_sort(link_t* head) { } unsigned list_count(link_t* head) { - int count = 0; + unsigned count = 0; while (head != NULL) { ++count; @@ -163,7 +163,7 @@ void list_clear(link_t* head) { } void list_display_values(link_t* head) { - int i = 0; + unsigned i = 0; printf("------Begin------\n"); while (head != NULL) {