util: Drop CHECK_SET_MIN_MAX{,_PROTO_FD} macros
...those were used when epoll references used to be socket numbers, they should have gone away a long time ago. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
5c0426981e
commit
6a1150c026
1 changed files with 0 additions and 14 deletions
14
util.h
14
util.h
|
@ -26,20 +26,6 @@ void trace_init(int enable);
|
||||||
#define ETH_MIN_MTU 68
|
#define ETH_MIN_MTU 68
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CHECK_SET_MIN_MAX(basename, fd) \
|
|
||||||
do { \
|
|
||||||
if ((fd) < basename##min) \
|
|
||||||
basename##min = (fd); \
|
|
||||||
if ((fd) > basename##max) \
|
|
||||||
basename##max = (fd); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#define CHECK_SET_MIN_MAX_PROTO_FD(proto, ipproto, proto_ctx, fd) \
|
|
||||||
do { \
|
|
||||||
if ((proto) == (ipproto)) \
|
|
||||||
CHECK_SET_MIN_MAX(c->proto_ctx.fd_, (fd)); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue