Commit 55c033c1 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds

[PATCH] uml console channels: fix the API of console_write

Since the 4th param is unused, remove it altogether.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fd9bc53b
...@@ -89,8 +89,7 @@ static int not_configged_write(int fd, const char *buf, int len, void *data) ...@@ -89,8 +89,7 @@ static int not_configged_write(int fd, const char *buf, int len, void *data)
return(-EIO); return(-EIO);
} }
static int not_configged_console_write(int fd, const char *buf, int len, static int not_configged_console_write(int fd, const char *buf, int len)
void *data)
{ {
my_puts("Using a channel type which is configured out of " my_puts("Using a channel type which is configured out of "
"UML\n"); "UML\n");
...@@ -299,7 +298,7 @@ int console_write_chan(struct list_head *chans, const char *buf, int len) ...@@ -299,7 +298,7 @@ int console_write_chan(struct list_head *chans, const char *buf, int len)
chan = list_entry(ele, struct chan, list); chan = list_entry(ele, struct chan, list);
if(!chan->output || (chan->ops->console_write == NULL)) if(!chan->output || (chan->ops->console_write == NULL))
continue; 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; if(chan->primary) ret = n;
} }
return(ret); return(ret);
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "choose-mode.h" #include "choose-mode.h"
#include "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; struct termios save, new;
int err; int err;
......
...@@ -25,7 +25,7 @@ struct chan_ops { ...@@ -25,7 +25,7 @@ struct chan_ops {
void (*close)(int, void *); void (*close)(int, void *);
int (*read)(int, char *, void *); int (*read)(int, char *, void *);
int (*write)(int, const char *, int, void *); int (*write)(int, const char *, int, void *);
int (*console_write)(int, const char *, int, void *); int (*console_write)(int, const char *, int);
int (*window_size)(int, void *, unsigned short *, unsigned short *); int (*window_size)(int, void *, unsigned short *, unsigned short *);
void (*free)(void *); void (*free)(void *);
int winch; int winch;
...@@ -37,7 +37,7 @@ extern struct chan_ops fd_ops, null_ops, port_ops, pts_ops, pty_ops, tty_ops, ...@@ -37,7 +37,7 @@ extern struct chan_ops fd_ops, null_ops, port_ops, pts_ops, pty_ops, tty_ops,
extern void generic_close(int fd, void *unused); extern void generic_close(int fd, void *unused);
extern int generic_read(int fd, char *c_out, void *unused); extern int generic_read(int fd, char *c_out, void *unused);
extern int generic_write(int fd, const char *buf, int n, void *unused); extern int generic_write(int fd, const char *buf, int n, void *unused);
extern int generic_console_write(int fd, const char *buf, int n, void *state); extern int generic_console_write(int fd, const char *buf, int n);
extern int generic_window_size(int fd, void *unused, unsigned short *rows_out, extern int generic_window_size(int fd, void *unused, unsigned short *rows_out,
unsigned short *cols_out); unsigned short *cols_out);
extern void generic_free(void *data); extern void generic_free(void *data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment