aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-12-06 20:00:33 +0100
committerMichael Stapelberg <michael@stapelberg.de>2010-12-06 20:00:33 +0100
commiteb788e2a4aa2eadb2e7e456dfa17e8448d49c205 (patch)
treedc81ace044ff1f9fdbf69eb4b7d01ae0e79574a1
parent0c9d712a77bbede4808142944776d35f502bffa7 (diff)
downloadprozesskommunikation-eb788e2a4aa2eadb2e7e456dfa17e8448d49c205.tar.gz
prozesskommunikation-eb788e2a4aa2eadb2e7e456dfa17e8448d49c205.tar.bz2
Endlosschleifen vereinheitlicht
-rw-r--r--aufgabe4/conv.c2
-rw-r--r--aufgabe4/monitor.c2
-rw-r--r--aufgabe4/statistic.c2
3 files changed, 3 insertions, 3 deletions
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);