Rework set_header_word macros
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 22 Dec 2012 12:54:54 +0000 (07:54 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 31 Jan 2013 10:57:29 +0000 (02:57 -0800)
commit7f96084969d3082842a9575ee8ff7da8c52a0796
treeebcd0ac13f7bc2041d0536076ba5bcebd054899c
parent265a4b542b717c14e810202078c3ce83e4d851f5
Rework set_header_word macros

Rework the set_header_word macros so that all compilers are
happy:
- the use of offsetof() is avoided, as it has an issue on IRIX
when the result is not constant
- the assignment within the macro is explicitely sequenced before
the function call to avoid a gcc sequence-point warning

Change-Id: I2355233e865b155f958379bfa2736fee19ef2680
Reviewed-on: http://gerrit.openafs.org/8816
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/budb/database.h
src/kauth/kadatabase.c