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