TP 9 exo2: correct some types mismatching.
[TD_C.git] / TP_9 / exo2 / clist.c
index 4812ab8d724d9d99c6760c86cf786fd9c8b5bb91..1ca2fc55fd945a57371ee0e34d77736fbd077822 100644 (file)
@@ -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) {