mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
177df99bd7
PR: 185506 Submitted by: ports fury
16 lines
394 B
C
16 lines
394 B
C
--- netmap/lookup.h.orig
|
|
+++ netmap/lookup.h
|
|
@@ -14,10 +14,10 @@
|
|
string ip;
|
|
string hostname;
|
|
|
|
- bool operator==(const HostRec& hr)
|
|
+ bool operator==(const HostRec& hr) const
|
|
{ return ip == hr.ip && hostname == hr.hostname; }
|
|
|
|
- bool operator<(const HostRec& hr)
|
|
+ bool operator<(const HostRec& hr) const
|
|
{ return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
|
|
};
|
|
|