Remove a variable shadowing warning.
[TD_SE.git] / philosophe-famine / philosophe.c
index 69e1fe8e7ca9bb8a648ce01849e88c2bd4dae1c8..95384c98f73eb83097a4cffcff99e520b96f8033 100644 (file)
@@ -64,7 +64,7 @@ int main()
        int i, NumPhi[N] = { 0, 1, 2, 3, 4 };
        pthread_t th[N];
        sem_init(&mutex, 0, 1);
-       for (int i = 0; i < N; i++) {
+       for (i = 0; i < N; i++) {
                sem_init(&semPhil[i], 0, 1);
        }
        // création des N philosophes