From 89dca7ab54f5ff479fbf5d537009572288f2bfb8 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 25 May 2024 17:44:35 +0000 Subject: [PATCH] s/MIN/MINIMUM/g --- proxy.c | 4 ++-- server.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy.c b/proxy.c index 4392afd..ed16ce5 100644 --- a/proxy.c +++ b/proxy.c @@ -22,7 +22,7 @@ #include "log.h" -#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MINIMUM(a, b) ((a) < (b) ? (a) : (b)) static const struct timeval handshake_timeout = { 5, 0 }; @@ -50,7 +50,7 @@ proxy_tls_readcb(int fd, short event, void *d) } if (bufev->wm_read.high != 0) - howmuch = MIN(sizeof(buf), bufev->wm_read.high); + howmuch = MINIMUM(sizeof(buf), bufev->wm_read.high); switch (ret = tls_read(c->proxyctx, buf, howmuch)) { case TLS_WANT_POLLIN: diff --git a/server.c b/server.c index ad66fee..b215dad 100644 --- a/server.c +++ b/server.c @@ -31,7 +31,7 @@ #include "log.h" #include "proc.h" -#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MINIMUM(a, b) ((a) < (b) ? (a) : (b)) #ifndef nitems #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) @@ -853,7 +853,7 @@ client_tls_readcb(int fd, short event, void *d) } if (bufev->wm_read.high != 0) - howmuch = MIN(sizeof(buf), bufev->wm_read.high); + howmuch = MINIMUM(sizeof(buf), bufev->wm_read.high); switch (ret = tls_read(client->ctx, buf, howmuch)) { case TLS_WANT_POLLIN: