msg: remove comparison operators for sockaddr_storage

We don't need these at all, it turns out.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-05-30 16:26:25 -07:00
parent 3b884becca
commit 83ccba3228

View File

@ -26,13 +26,6 @@ namespace ceph {
class Formatter;
}
inline bool operator==(const sockaddr_in& a, const sockaddr_in& b) {
return memcmp((const char*)&a, (const char*)&b, sizeof(a)) == 0;
}
inline bool operator!=(const sockaddr_in& a, const sockaddr_in& b) {
return memcmp((const char*)&a, (const char*)&b, sizeof(a)) != 0;
}
extern ostream& operator<<(ostream& out, const sockaddr_storage &ss);
class entity_name_t {