summaryrefslogtreecommitdiff
path: root/test/test-kdbus.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-28 15:58:32 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-28 15:58:32 -0700
commitad961fffd00d3e462e0f5e57e49dfaab6dec7f7a (patch)
tree51110f1f40f75d5aa4a668f8dd9bfdbc6dda39fa /test/test-kdbus.c
parent32944e6983fb2b6fa7334383c790dadefa03b5c2 (diff)
downloadkdbus-bus-ad961fffd00d3e462e0f5e57e49dfaab6dec7f7a.tar.gz
kdbus-bus-ad961fffd00d3e462e0f5e57e49dfaab6dec7f7a.tar.bz2
kdbus-bus-ad961fffd00d3e462e0f5e57e49dfaab6dec7f7a.zip
test-kdbus.c: get it to work on 32bit systems.
Belisko Marek <marek.belisko@gmail.com> reports that without aligning the bus_make variable on an 8byte boundry, as happens on 32bit systems, the test fails. This should resolve this issue.
Diffstat (limited to 'test/test-kdbus.c')
-rw-r--r--test/test-kdbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-kdbus.c b/test/test-kdbus.c
index 7485d4cec02..1d433cd61b1 100644
--- a/test/test-kdbus.c
+++ b/test/test-kdbus.c
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
uint64_t n_size;
uint64_t n_type;
char name[64];
- } bus_make;
+ } __attribute__ ((__aligned__(8))) bus_make;
int fdc, ret, cookie;
char *bus;
struct conn *conn_a, *conn_b;