aboutsummaryrefslogtreecommitdiff
path: root/aufgabe4/queue.h
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-12-06 21:45:51 +0100
committerMichael Stapelberg <michael@stapelberg.de>2010-12-06 21:45:51 +0100
commitdf93ba205e0bb387fae51f9706823a38d054ba08 (patch)
tree4fc166b7b56abe5ad3c6e2861c33abdb97ead383 /aufgabe4/queue.h
parent3cb26812c09a0533f593323f1f4912dfd6aba9dd (diff)
downloadprozesskommunikation-df93ba205e0bb387fae51f9706823a38d054ba08.tar.gz
prozesskommunikation-df93ba205e0bb387fae51f9706823a38d054ba08.tar.bz2
bugfix: attribute packed entfernen, da sem_* nicht auf unaligned memory funktionieren
Diffstat (limited to 'aufgabe4/queue.h')
-rw-r--r--aufgabe4/queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/aufgabe4/queue.h b/aufgabe4/queue.h
index 3c8a1e3..940a4bc 100644
--- a/aufgabe4/queue.h
+++ b/aufgabe4/queue.h
@@ -8,12 +8,12 @@ struct queueheader {
uint8_t msgs;
uint8_t cur;
sem_t sem;
-} __attribute__((packed));
+};
struct msg {
uint8_t dir;
uint8_t data;
-} __attribute__((packed));
+};
enum { D_CONV_TO_LOG = 0, D_CONV_TO_STAT, D_STAT_TO_MON, D_INVALID };