opnsense-ports/net/latd/files/patch-server.h
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

29 lines
625 B
C

--- server.h.orig 2008-10-03 15:49:53 UTC
+++ server.h
@@ -152,22 +152,22 @@ class LATServer
return (!(type == INACTIVE || type == DISABLED_PTY));
}
- bool operator==(int _fd)
+ bool operator==(int _fd) const
{
return (type != INACTIVE && fd == _fd);
}
- bool operator==(const fdinfo &fdi)
+ bool operator==(const fdinfo &fdi) const
{
return (fd == fdi.fd);
}
- bool operator!=(const fdinfo &fdi)
+ bool operator!=(const fdinfo &fdi) const
{
return (fd != fdi.fd);
}
- bool operator!=(int _fd)
+ bool operator!=(int _fd) const
{
return (type == INACTIVE || fd != _fd);
}