diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 00:43:13 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 01:18:54 -0800 |
commit | e6e8bf418850d7958311a96ccfb594f2bcc8313e (patch) | |
tree | 5640a0e0d47784f640ed68408c5a991c95b3cbc1 /security/apparmor/include | |
parent | ca4bd5ae0ae4b7afffbd807d923ea76934512a82 (diff) | |
download | linux-e6e8bf418850d7958311a96ccfb594f2bcc8313e.tar.bz2 |
apparmor: fix restricted endian type warnings for dfa unpack
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include')
-rw-r--r-- | security/apparmor/include/match.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/include/match.h b/security/apparmor/include/match.h index a85bb3b1836c..add4c6726558 100644 --- a/security/apparmor/include/match.h +++ b/security/apparmor/include/match.h @@ -104,11 +104,11 @@ extern struct aa_dfa *nulldfa; #define byte_to_byte(X) (X) -#define UNPACK_ARRAY(TABLE, BLOB, LEN, TYPE, NTOHX) \ +#define UNPACK_ARRAY(TABLE, BLOB, LEN, TTYPE, BTYPE, NTOHX) \ do { \ typeof(LEN) __i; \ - TYPE *__t = (TYPE *) TABLE; \ - TYPE *__b = (TYPE *) BLOB; \ + TTYPE *__t = (TTYPE *) TABLE; \ + BTYPE *__b = (BTYPE *) BLOB; \ for (__i = 0; __i < LEN; __i++) { \ __t[__i] = NTOHX(__b[__i]); \ } \ |