diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2009-01-07 19:39:35 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2009-01-07 19:39:35 +0000 |
commit | 80ffd3581f4c7545f3b4d38138d0c8f11cde1da8 (patch) | |
tree | 5cb26280627c80191cf564a4d2aef9a0a4e34034 /lib/transfer.c | |
parent | dd058b8de60ed079367676ca91299f8c0a306715 (diff) |
Created a CURLMIN macro to match CURLMAX
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'; |