"Staticify" some functions to remove some warnings.
[TD_SE.git] / philosophe / philosophe.c
index 476d1245da42f344e88b127fd516e4d7d60126bb..e31795167fc58a941654337f459a64efe1ab56f5 100644 (file)
@@ -16,7 +16,7 @@ static int fourch[N] = { libre, libre, libre, libre, libre };
 
 sem_t mutex;
 
-void *philosophe(void *num)
+static void *philosophe(void *num)
 {
        int i = *(int *)num, nb = 2;
        while (nb) {
@@ -51,6 +51,6 @@ int main()
        // attendre la fin des threads
        for (i = 0; i < N; i++)
                pthread_join(th[i], NULL);
-       printf("fin des threads \n");
+       printf("fin des threads\n");
        return 0;
 }