]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Rework set_header_word macros
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 22 Dec 2012 12:54:54 +0000 (07:54 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 17 Apr 2013 12:03:09 +0000 (05:03 -0700)
commit1c811f9fddf336317099e7ec73e28131acf65be8
tree70172f0e5d24d3019ab578885705147fa3891159
parente8307ef10c5653ffa597b58384686141adba58f7
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

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>
(cherry picked from commit 7f96084969d3082842a9575ee8ff7da8c52a0796)

Change-Id: Iefdf7f6dbb60ffc569b67b3c89893fb43527eb02
Reviewed-on: http://gerrit.openafs.org/8818
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/budb/database.h
src/kauth/kadatabase.c