mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
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:
parent
3b884becca
commit
83ccba3228
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user