From 2d176987ea2f51048a8ad96c8979c84167a00a16 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 19 May 2017 09:45:15 +0200 Subject: [PATCH] last fix std99 --- plane/plane.c | 3 ++- sgca/central-manager.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plane/plane.c b/plane/plane.c index 586efad..159d624 100644 --- a/plane/plane.c +++ b/plane/plane.c @@ -378,4 +378,5 @@ int main(){ // on se déplace une fois toutes les initialisations faites printf("\n=== COMMUNICATION PROTOCOL ===\n"); update(); -} \ No newline at end of file + return EXIT_SUCCESS; +} diff --git a/sgca/central-manager.c b/sgca/central-manager.c index 36a5951..ea7d595 100644 --- a/sgca/central-manager.c +++ b/sgca/central-manager.c @@ -76,7 +76,8 @@ int main(int argc, char* argv[]){ /* [2] On attends la fin de tous les THREADS ==========================================================*/ - for( char i = 0 ; i < 4 ; i++ ) + char i; + for( i = 0 ; i < 4 ; i++ ) pthread_join(listenManagers[(int)i], NULL); @@ -452,4 +453,4 @@ void* MCAST_PUBLISH(void* THREADABLE_ARGS){ close(SOCKET); return NULL; -} \ No newline at end of file +}