diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-04-26 04:30:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-04-26 04:30:41 +0000 |
commit | f16cd039c979b410924e807fa06cc4f18c389bfa (patch) | |
tree | d39a7589683a8f8a362fc7538349b0e0ebe57763 /epan/address.h | |
parent | 8b0bc56f2c8abb568ab2d808ba8e25f0eae077be (diff) |
Make ADD_ADDRESS_TO_HASH() take a pointer to an address as an argument,
as the other address macros do.
svn path=/trunk/; revision=21588
Diffstat (limited to 'epan/address.h')
-rw-r--r-- | epan/address.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/address.h b/epan/address.h index 237f0f27a8..d5bf5ed7d1 100644 --- a/epan/address.h +++ b/epan/address.h @@ -128,9 +128,9 @@ typedef struct _address { #define ADD_ADDRESS_TO_HASH(hash_val, addr) { \ const guint8 *ADD_ADDRESS_TO_HASH_data; \ int ADD_ADDRESS_TO_HASH_index; \ - ADD_ADDRESS_TO_HASH_data = (addr).data; \ + ADD_ADDRESS_TO_HASH_data = (addr)->data; \ for (ADD_ADDRESS_TO_HASH_index = 0; \ - ADD_ADDRESS_TO_HASH_index < (addr).len; \ + ADD_ADDRESS_TO_HASH_index < (addr)->len; \ ADD_ADDRESS_TO_HASH_index++) \ hash_val += ADD_ADDRESS_TO_HASH_data[ADD_ADDRESS_TO_HASH_index]; \ } |