mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
15 lines
394 B
C
15 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; }
|
|
};
|
|
|