summaryrefslogtreecommitdiff
path: root/epan/address.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-10-23 22:23:41 -0400
committerMichael Mann <mmann78@netscape.net>2015-10-24 13:03:43 +0000
commit728af982fba05aaf72ba404418e6ced203dd913e (patch)
tree32aa9a5cc8c56163b1394bb03edd934327e16930 /epan/address.h
parent02d56ffa9c540dde3c3a9d1a77bd90f5a3b98962 (diff)
downloadwireshark-728af982fba05aaf72ba404418e6ced203dd913e.tar.gz
Remove ADDRESS macros and just have their lower-case equivalents.
Remove calls SET_ADDRESS, CMP_ADDRESS, ADDRESSES_EQUAL, COPY_ADDRESS, COPY_ADDRESS_SHALLOW, and ADD_ADDRESS_TO_HASH since they are no longer used. Change-Id: I53fa4cfda756d8cef8815ad0324a3b9d9f9cd490 Reviewed-on: https://code.wireshark.org/review/11238 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/address.h')
-rw-r--r--epan/address.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/address.h b/epan/address.h
index 5855d22641..8e3c9b6019 100644
--- a/epan/address.h
+++ b/epan/address.h
@@ -77,12 +77,10 @@ set_address(address *addr, int addr_type, int addr_len, const void * addr_data)
addr->type = addr_type;
addr->len = addr_len;
}
-#define SET_ADDRESS(addr, addr_type, addr_len, addr_data) \
- set_address((addr), (addr_type), (addr_len), (addr_data))
/** Initialize an address from TVB data.
*
- * Same as SET_ADDRESS but it takes a TVB and an offset. This is preferred
+ * Same as set_address but it takes a TVB and an offset. This is preferred
* over passing the return value of tvb_get_ptr() to set_address().
*
* This calls tvb_get_ptr() (including throwing any exceptions) before
@@ -117,7 +115,6 @@ cmp_address(const address *addr1, const address *addr2) {
if (addr1->len < addr2->len) return -1;
return memcmp(addr1->data, addr2->data, addr1->len);
}
-#define CMP_ADDRESS(addr1, addr2) cmp_address((addr1), (addr2))
/** Check two addresses for equality.
*
@@ -141,7 +138,6 @@ addresses_equal(const address *addr1, const address *addr2) {
) return TRUE;
return FALSE;
}
-#define ADDRESSES_EQUAL(addr1, addr2) addresses_equal((addr1), (addr2))
/** Check the data of two addresses for equality.
*
@@ -178,7 +174,6 @@ copy_address(address *to, const address *from) {
memcpy(to_data, from->data, from->len);
to->data = to_data;
}
-#define COPY_ADDRESS(to, from) copy_address((to), (from))
/** Perform a shallow copy of the address (both addresses point to the same
* memory location).
@@ -195,7 +190,6 @@ copy_address_shallow(address *to, const address *from) {
to->data = from->data;
*/
}
-#define COPY_ADDRESS_SHALLOW(to, from) copy_address_shallow((to), (from))
/** Copy an address, allocating a new buffer for the address data
* using wmem-scoped memory.
@@ -233,7 +227,6 @@ add_address_to_hash(guint hash_val, const address *addr) {
}
return hash_val;
}
-#define ADD_ADDRESS_TO_HASH(hash_val, addr) do { hash_val = add_address_to_hash(hash_val, (addr)); } while (0)
/** Hash an address into a hash value (which must already have been set).
* 64-bit version of add_address_to_hash().