Access union value_data members consistently
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Wed, 1 Oct 2014 15:51:51 +0000 (11:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 1 Oct 2014 15:51:51 +0000 (11:51 -0400)
commit6f7706f1019758907d105f825b00b67eae505240
treee37d4f6fe8011d50874c053ae354afd82688d4d3
parent430991f1d1552a7cbe58eb81fd70b69826000da7
Access union value_data members consistently

Use the same, appropriate union value_data member for each access of
BOOLEAN, BYTE and SHORT PW_TYPEs, without assuming they're
interchangeable with "integer", as that is only true on little-endian
architectures.

This fixes at least this wimax unit test failure on s390x and ppc64:

    Mismatch in line 11 of src/tests/unit/wimax.txt, got: 1a 0c 00 00 60 b5 01 06 00 02 03 00 expected: 1a 0c 00 00 60 b5 01 06 00 02 03 01
src/lib/print.c
src/lib/radius.c
src/lib/valuepair.c
src/main/evaluate.c
src/main/valuepair.c
src/main/xlat.c
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c