From eb788e2a4aa2eadb2e7e456dfa17e8448d49c205 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 6 Dec 2010 20:00:33 +0100 Subject: Endlosschleifen vereinheitlicht --- aufgabe4/conv.c | 2 +- aufgabe4/monitor.c | 2 +- aufgabe4/statistic.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'aufgabe4') diff --git a/aufgabe4/conv.c b/aufgabe4/conv.c index 919965c..6520943 100644 --- a/aufgabe4/conv.c +++ b/aufgabe4/conv.c @@ -19,7 +19,7 @@ void conv() { int number; struct msg *first; struct msg *second; - for (;;) { + while (1) { /* Zufallszahl generieren */ number = rand(); diff --git a/aufgabe4/monitor.c b/aufgabe4/monitor.c index e2bf015..2da4a55 100644 --- a/aufgabe4/monitor.c +++ b/aufgabe4/monitor.c @@ -15,7 +15,7 @@ * */ void monitor() { - for (;;) { + while (1) { /* Wir warten auf Nachrichten des CONV-Prozesses */ while (queue_get_dir() != D_STAT_TO_MON) usleep(1); diff --git a/aufgabe4/statistic.c b/aufgabe4/statistic.c index cf59217..2618b5c 100644 --- a/aufgabe4/statistic.c +++ b/aufgabe4/statistic.c @@ -22,7 +22,7 @@ void statistic() { uint8_t c, avg; cnt = 0; - for (;;) { + while (1) { /* Wir warten auf Nachrichten des CONV-Prozesses */ while (queue_get_dir() != D_CONV_TO_STAT) usleep(1); -- cgit v1.2.3-70-g09d2