summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2023-02-12 13:37:18 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2023-02-18 17:26:23 +0100
commitaf1100f2994577bd8391cae4df449952169b4b7b (patch)
tree109a1ee45c0b57da580ff1bf561cff6a34cd359f
parent77929eda1b9fe426e0fb45046ac2ea7f7ae92879 (diff)
downloadwget-af1100f2994577bd8391cae4df449952169b4b7b.tar.gz
* src/retr.c (fd_read_body): Use MAX instead of max
-rw-r--r--src/retr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/retr.c b/src/retr.c
index 51d0575a..9993d26d 100644
--- a/src/retr.c
+++ b/src/retr.c
@@ -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;