diff options
| -rw-r--r-- | aufgabe4/conv.c | 2 | ||||
| -rw-r--r-- | aufgabe4/monitor.c | 2 | ||||
| -rw-r--r-- | aufgabe4/statistic.c | 2 |
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); |
