From 6c064e55e8443ffadf810d808e54764a775f9afe Mon Sep 17 00:00:00 2001 From: TriantaTV Date: Mon, 3 Oct 2022 03:45:50 -0500 Subject: [PATCH] Final cleanup commit --- DiningPhilosophers.c | 3 ++- TestDining.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DiningPhilosophers.c b/DiningPhilosophers.c index 63be6a8..c55f646 100644 --- a/DiningPhilosophers.c +++ b/DiningPhilosophers.c @@ -10,7 +10,8 @@ #define EATING 2 /*philosopher is eating*/ -typedef struct PhilosopherData { +typedef struct PhilosopherData +{ int eatingCount; int position; int state; diff --git a/TestDining.sh b/TestDining.sh index 2e6980e..0dee7f5 100755 --- a/TestDining.sh +++ b/TestDining.sh @@ -1,4 +1,4 @@ #!/bin/bash rm DiningPhilosophers.out -gcc DiningPhilosophers.c -o DiningPhilosophers.out 2> crashCompile.log +gcc DiningPhilosophers.c -o DiningPhilosophers.out > /dev/null 2>&1 ./DiningPhilosophers.out 5