From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 03/24] util: Drop CHECK_SET_MIN_MAX{,_PROTO_FD} macros Date: Fri, 25 Mar 2022 23:52:39 +0100 Message-ID: <20220325225300.2803584-4-sbrivio@redhat.com> In-Reply-To: <20220325225300.2803584-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1642478215172524709==" --===============1642478215172524709== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ...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 --- util.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/util.h b/util.h index bfab221..d80157c 100644 --- a/util.h +++ b/util.h @@ -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 -- 2.35.1 --===============1642478215172524709==--