diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-02-13 18:02:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-13 18:02:47 +0100 |
commit | 44bca66c5929e63bb39ed68420a74c97523b411f (patch) | |
tree | f82acaf62128b0e8224af7797357322897904270 /src/pulsecore | |
parent | c0fb91db545774ec45f208a6f771c22a0b153637 (diff) |
make PA_GCC_PACKED and PA_GCC_MALLOC actually work
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index c59d247c..b8c5f786 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -70,14 +70,14 @@ /* We now put this SHM marker at the end of each segment. It's * optional, to not require a reboot when upgrading, though */ -struct shm_marker PA_GCC_PACKED { +struct shm_marker { pa_atomic_t marker; /* 0xbeefcafe */ pa_atomic_t pid; uint64_t _reserved1; uint64_t _reserved2; uint64_t _reserved3; uint64_t _reserved4; -}; +} PA_GCC_PACKED; static char *segment_name(char *fn, size_t l, unsigned id) { pa_snprintf(fn, l, "/pulse-shm-%u", id); |