From 6773299b929233e5d4f21cfbb65ad49e3e3278b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 4 Mar 2018 10:28:38 +0100 Subject: [PATCH] Coding styles fixes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- lecteursredacteurs/lecteursredacteurs.c | 4 ++-- thread-pid/thread-pid.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lecteursredacteurs/lecteursredacteurs.c b/lecteursredacteurs/lecteursredacteurs.c index 329be03..2c485d7 100644 --- a/lecteursredacteurs/lecteursredacteurs.c +++ b/lecteursredacteurs/lecteursredacteurs.c @@ -27,7 +27,7 @@ static void *lecteur(void *arg) sem_post(&redact); sem_post(&mutex); } - return NULL; + return NULL; } static void *redacteur(void *arg) @@ -40,7 +40,7 @@ static void *redacteur(void *arg) sleep(2); sem_post(&redact); } - return NULL; + return NULL; } int main() diff --git a/thread-pid/thread-pid.c b/thread-pid/thread-pid.c index a993c77..648cd82 100644 --- a/thread-pid/thread-pid.c +++ b/thread-pid/thread-pid.c @@ -4,7 +4,7 @@ static void* fonction(void* args) { printf("pid du thread fils = %d\n", getpid()); - while(1); // forever + while (1); // forever return NULL; } @@ -13,6 +13,6 @@ int main() { printf("pid de main = %d\n", getpid()); pthread_create(&thread, NULL, &fonction, NULL); - while(1); // forever + while (1); // forever return 0; } -- 2.34.1