diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-15 01:02:02 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-25 13:21:13 +0100 |
commit | 6a1150c026c8223e5c984a725d3c91c463bf399e (patch) | |
tree | 9835ea0328e06853e0af63f40fe50199286cd900 /util.h | |
parent | 5c0426981eb97dc9836d0c7b50f6c102b9359ed9 (diff) | |
download | passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar.gz passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar.bz2 passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar.lz passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar.xz passt-6a1150c026c8223e5c984a725d3c91c463bf399e.tar.zst passt-6a1150c026c8223e5c984a725d3c91c463bf399e.zip |
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>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -26,20 +26,6 @@ void trace_init(int enable); #define ETH_MIN_MTU 68 #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 #define MIN(x, y) (((x) < (y)) ? (x) : (y)) #endif |