From e23171217013cf077855d232a46fa0eecbb5e69b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 27 Feb 2018 00:45:23 +0100 Subject: [PATCH] Remove a variable shadowing warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- philosophe-famine/philosophe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1