diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-02-25 23:25:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-02-25 23:25:23 +0000 |
commit | 2b75ac83af8e23f8b9d284c143537d7ab5b82487 (patch) | |
tree | 7b5c3f50bc2d9ca7e8cd4f19f5b1dab72867c944 /epan/crypt/airpdcap_rijndael.h | |
parent | 3496de0ff1cd23c991e86861d01e29d3317fcfcb (diff) |
Eliminate __inline - not all compilers support it.
svn path=/trunk/; revision=20932
Diffstat (limited to 'epan/crypt/airpdcap_rijndael.h')
-rw-r--r-- | epan/crypt/airpdcap_rijndael.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/epan/crypt/airpdcap_rijndael.h b/epan/crypt/airpdcap_rijndael.h index aa1ed10e3c..2755d644ed 100644 --- a/epan/crypt/airpdcap_rijndael.h +++ b/epan/crypt/airpdcap_rijndael.h @@ -79,17 +79,14 @@ void rijndael_set_key( /******************************************************************************/ /******************************************************************************/ -/* External function definition */ +/* Block XOR macro definition */ /* */ -static __inline void xor_block( - UINT8 *b, - const UINT8 *a, - size_t len) -{ - INT i; - for (i = 0; i < (INT)len; i++) - b[i] ^= a[i]; -} +#define XOR_BLOCK(b, a, len) \ + { \ + INT i; \ + for (i = 0; i < (INT)(len); i++) \ + (b)[i] ^= (a)[i]; \ + } /* */ /******************************************************************************/ |