diff options
| author | Michael Stapelberg <michael@stapelberg.de> | 2010-12-06 21:45:51 +0100 |
|---|---|---|
| committer | Michael Stapelberg <michael@stapelberg.de> | 2010-12-06 21:45:51 +0100 |
| commit | df93ba205e0bb387fae51f9706823a38d054ba08 (patch) | |
| tree | 4fc166b7b56abe5ad3c6e2861c33abdb97ead383 /aufgabe4 | |
| parent | 3cb26812c09a0533f593323f1f4912dfd6aba9dd (diff) | |
| download | prozesskommunikation-df93ba205e0bb387fae51f9706823a38d054ba08.tar.gz prozesskommunikation-df93ba205e0bb387fae51f9706823a38d054ba08.tar.bz2 | |
bugfix: attribute packed entfernen, da sem_* nicht auf unaligned memory funktionieren
Diffstat (limited to 'aufgabe4')
| -rw-r--r-- | aufgabe4/queue.h | 4 |
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 }; |
