diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-11-04 16:51:26 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-11-04 16:51:26 +0000 |
commit | 961ce33b5ee183236363ef39d1afa93d8e5605b3 (patch) | |
tree | f89d3d5383fe85a39719791b49dd22d244af24a3 /src/modules/module-esound-sink.c | |
parent | faf1fd76a9bb9e47c867f9aa4ea18a7a70a14aae (diff) |
fix two alignment issues found by the debian buildd gcc on sparc
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2022 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-esound-sink.c')
-rw-r--r-- | src/modules/module-esound-sink.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/module-esound-sink.c b/src/modules/module-esound-sink.c index 1c02cdfd..b18d3258 100644 --- a/src/modules/module-esound-sink.c +++ b/src/modules/module-esound-sink.c @@ -506,6 +506,7 @@ int pa__init(pa_module*m) { pa_modargs *ma = NULL; char *t; const char *espeaker; + uint32_t key; pa_assert(m); @@ -584,7 +585,9 @@ int pa__init(pa_module*m) { pa_log("Failed to load cookie"); goto fail; } - *(int32_t*) ((uint8_t*) u->write_data + ESD_KEY_LEN) = ESD_ENDIAN_KEY; + + key = ESD_ENDIAN_KEY; + memcpy((uint8_t*) u->write_data + ESD_KEY_LEN, &key, sizeof(key)); /* Reserve space for the response */ u->read_data = pa_xmalloc(u->read_length = sizeof(int32_t)); |