Staticify some more.
[TD_SE.git] / threads / exemple1.c
index d8cc0edbcc162b4bcb86df884b6044aa3bd6db63..571f7e1afdb68e8ba039e0c3c0f0c2557bb7c597 100644 (file)
@@ -6,7 +6,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-void afficher(int n, char lettre)
+static void afficher(int n, char lettre)
 {
        int j;
        for (j = 1; j < n; j++) {
@@ -15,7 +15,7 @@ void afficher(int n, char lettre)
        }
 }
 
-void *threadA(void *inutilise)
+static void *threadA(void *inutilise)
 {
        afficher(100, 'A');
        printf("\n Fin du thread A\n");
@@ -23,7 +23,7 @@ void *threadA(void *inutilise)
        pthread_exit(NULL);
 }
 
-void *threadC(void *inutilise)
+static void *threadC(void *inutilise)
 {
        afficher(150, 'C');
        printf("\n Fin du thread C\n");
@@ -31,7 +31,7 @@ void *threadC(void *inutilise)
        pthread_exit(NULL);
 }
 
-void *threadB(void *inutilise)
+static void *threadB(void *inutilise)
 {
        pthread_t thC;
        pthread_create(&thC, NULL, threadC, NULL);