Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188811
b: refs/heads/master
c: d4bee0a
h: refs/heads/master
i:
  188809: 770006e
  188807: 9c24f2b
v: v3
  • Loading branch information
Fang Wenqi authored and Greg Kroah-Hartman committed Mar 19, 2010
1 parent 20a98ae commit 3a869fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e74d098c66543d0731de62eb747ccd5b636a6f4c
refs/heads/master: d4bee0a677cfa5a32f964ffa420e27406c65e605
4 changes: 2 additions & 2 deletions trunk/drivers/char/tty_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ int tty_insert_flip_string_fixed_flag(struct tty_struct *tty,
{
int copied = 0;
do {
int goal = min(size - copied, TTY_BUFFER_PAGE);
int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE);
int space = tty_buffer_request_room(tty, goal);
struct tty_buffer *tb = tty->buf.tail;
/* If there is no space then tb may be NULL */
Expand Down Expand Up @@ -285,7 +285,7 @@ int tty_insert_flip_string_flags(struct tty_struct *tty,
{
int copied = 0;
do {
int goal = min(size - copied, TTY_BUFFER_PAGE);
int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE);
int space = tty_buffer_request_room(tty, goal);
struct tty_buffer *tb = tty->buf.tail;
/* If there is no space then tb may be NULL */
Expand Down

0 comments on commit 3a869fe

Please sign in to comment.