X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fserial%2Fusbtty.c;h=75f0ec31bbfb9a6faedeaf9cf137ea1212ceefd5;hb=e113fe3c06e34c9d29bd8952955558d585e4f80c;hp=b030526b6a1f51f182b1fd6a7558c641b5f0b32a;hpb=302e609fe653baf1ae3a7573d2f4eafd86ab696b;p=u-boot diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index b030526b6a..75f0ec31bb 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -475,7 +475,7 @@ static void __usbtty_puts (const char *str, int len) if (space) { write_buffer (&usbtty_output); - n = MIN (space, MIN (len, maxlen)); + n = min(space, min(len, maxlen)); buf_push (&usbtty_output, str, n); str += n; @@ -882,7 +882,7 @@ static int write_buffer (circbuf_t * buf) space_avail = current_urb->buffer_length - current_urb->actual_length; - popnum = MIN (space_avail, buf->size); + popnum = min(space_avail, (int)buf->size); if (popnum == 0) break;