From: Jérôme Benoit Date: Mon, 26 Feb 2018 23:45:23 +0000 (+0100) Subject: Remove a variable shadowing warning. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e23171217013cf077855d232a46fa0eecbb5e69b;p=TD_SE.git Remove a variable shadowing warning. Signed-off-by: Jérôme Benoit --- diff --git a/philosophe-famine/philosophe.c b/philosophe-famine/philosophe.c index 69e1fe8..95384c9 100644 --- a/philosophe-famine/philosophe.c +++ b/philosophe-famine/philosophe.c @@ -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