* src/retr.c (fd_read_body): Use MAX instead of max

This commit is contained in:
Tim Rühsen 2023-02-12 13:37:18 +01:00
parent 77929eda1b
commit af1100f299

View File

@ -254,9 +254,7 @@ fd_read_body (const char *downloaded_filename, int fd, FILE *out, wgint toread,
FILE *out2)
{
int ret = 0;
#undef max
#define max(a,b) ((a) > (b) ? (a) : (b))
int dlbufsize = max (BUFSIZ, 8 * 1024);
int dlbufsize = MAX (BUFSIZ, 8 * 1024);
char *dlbuf = xmalloc (dlbufsize);
struct ptimer *timer = NULL;