[PATCH] uml console channels: fix the API of console_write
Since the 4th param is unused, remove it altogether. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Acked-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Dieser Commit ist enthalten in:

committet von
Linus Torvalds

Ursprung
fd9bc53b99
Commit
55c033c1f6
@@ -89,8 +89,7 @@ static int not_configged_write(int fd, const char *buf, int len, void *data)
|
||||
return(-EIO);
|
||||
}
|
||||
|
||||
static int not_configged_console_write(int fd, const char *buf, int len,
|
||||
void *data)
|
||||
static int not_configged_console_write(int fd, const char *buf, int len)
|
||||
{
|
||||
my_puts("Using a channel type which is configured out of "
|
||||
"UML\n");
|
||||
@@ -299,7 +298,7 @@ int console_write_chan(struct list_head *chans, const char *buf, int len)
|
||||
chan = list_entry(ele, struct chan, list);
|
||||
if(!chan->output || (chan->ops->console_write == NULL))
|
||||
continue;
|
||||
n = chan->ops->console_write(chan->fd, buf, len, chan->data);
|
||||
n = chan->ops->console_write(chan->fd, buf, len);
|
||||
if(chan->primary) ret = n;
|
||||
}
|
||||
return(ret);
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include "choose-mode.h"
|
||||
#include "mode.h"
|
||||
|
||||
int generic_console_write(int fd, const char *buf, int n, void *unused)
|
||||
int generic_console_write(int fd, const char *buf, int n)
|
||||
{
|
||||
struct termios save, new;
|
||||
int err;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren