Hi, v3: - use unalignment macros from Bluez (#1) - remove unnecessary cast in client.c (#2) - add comment in client.c (#2)
Patch #1 creates put|get_unaligned and get_[b|l]e* macros which can convert between big-endian or little-endian values. Patch #2 adds the alignment macros into gdhcp code. Patch #3 downgrades cast-align and unused-value errors into warnings so that we can compile connman using clang. Eventually we should either change connman code or do some voodoo magic with clang and enable the errors back. Cheers, Jukka Jukka Rissanen (3): gdhcp: Add unalignment macros gdhcp: Use unalignment macros from unaligned.h build: Ignore cast-align and unused-value errors if clang is used Makefile.am | 2 +- configure.ac | 6 +++ gdhcp/client.c | 17 +++----- gdhcp/common.c | 21 ++++++++-- gdhcp/common.h | 17 +------- gdhcp/server.c | 7 ++-- gdhcp/unaligned.h | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 150 insertions(+), 36 deletions(-) create mode 100644 gdhcp/unaligned.h -- 1.7.11.4 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
