Commit: f25ca542227b46c24dfdef39eae549da936c751d
Parent: 26f55a403a05a28563f6ff5a24cf70bcfc35f28b
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-09-05 12:18:58
Tree: a3506f5af15a35e21c901397cccfd86f536d16e7

adaptername: Refactor handle_inotify_cb Refactor handle_inotify_cb to avoid unaligned memory access. Instead of reading whole events buffer and cast to event struct when iterating over it, read data directly to struct inotify_event one event at time. This fix following build error on ARM. CC plugins/bluetoothd-adaptername.o plugins/adaptername.c: In function handle_inotify_cb: plugins/adaptername.c:244:34: error: cast increases required alignment of target type [-Werror=cast-align] cc1: all warnings being treated as errors make[1]: *** [plugins/bluetoothd-adaptername.o] Error 1 make: *** [all] Error 2

Diffstat

M plugins/adaptername.c | 48 ++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 24 insertions(+), 24 deletions(-)

View Full Diff | Patch