diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 58279946d..43a9cc294 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -323,10 +323,6 @@ static int data_pending(const struct connectdata *conn) Curl_ssl_data_pending(conn, FIRSTSOCKET); } -#ifndef MIN -#define MIN(a,b) (a < b ? a : b) -#endif - static void read_rewind(struct connectdata *conn, size_t thismuch) { @@ -338,7 +334,7 @@ static void read_rewind(struct connectdata *conn, char buf[512 + 1]; size_t show; - show = MIN(conn->buf_len - conn->read_pos, sizeof(buf)-1); + show = CURLMIN(conn->buf_len - conn->read_pos, sizeof(buf)-1); if(conn->master_buffer) { memcpy(buf, conn->master_buffer + conn->read_pos, show); buf[show] = '\0'; |