aboutsummaryrefslogtreecommitdiff
path: root/aufgabe3/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'aufgabe3/log.c')
-rw-r--r--aufgabe3/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aufgabe3/log.c b/aufgabe3/log.c
index d38adfd..88a394d 100644
--- a/aufgabe3/log.c
+++ b/aufgabe3/log.c
@@ -17,7 +17,7 @@ void logmsg() {
/* Message Queue zur Kommunikation mit dem conv Prozess öffnen.
*/
- if ((log = mq_open(MQ_TO_LOG, O_RDWR)) == -1) {
+ if ((log = mq_open(MQ_TO_LOG, O_RDONLY)) == -1) {
perror("logmsg() mq_open");
exit(EXIT_FAILURE);
}
@@ -31,7 +31,7 @@ void logmsg() {
/*
* Speicher für Nachricht allokieren.
*/
- if ((message = calloc(1, MQ_MSG_SIZE_SEND)) == NULL) {
+ if ((message = calloc(1, MQ_MSG_SIZE_RCV)) == NULL) {
perror("logmsg()");
exit(EXIT_FAILURE);
}