Skip to content

Commit

Permalink
[PATCH] uml: fix min usage
Browse files Browse the repository at this point in the history
type-safe min() in arch/um/drivers/mconsole_kern.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Mar 31, 2006
1 parent 43cecb3 commit e11c0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static void console_write(struct console *console, const char *string,
return;

while(1){
n = min(len, ARRAY_SIZE(console_buf) - console_index);
n = min((size_t)len, ARRAY_SIZE(console_buf) - console_index);
strncpy(&console_buf[console_index], string, n);
console_index += n;
string += n;
Expand Down

0 comments on commit e11c0cd

Please sign in to comment.