diff options
Diffstat (limited to 'arch/um/drivers/pty.c')
-rw-r--r-- | arch/um/drivers/pty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/pty.c b/arch/um/drivers/pty.c index 1c555c38de4d..abec620e8380 100644 --- a/arch/um/drivers/pty.c +++ b/arch/um/drivers/pty.c | |||
@@ -22,7 +22,7 @@ struct pty_chan { | |||
22 | char dev_name[sizeof("/dev/pts/0123456\0")]; | 22 | char dev_name[sizeof("/dev/pts/0123456\0")]; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | static void *pty_chan_init(char *str, int device, struct chan_opts *opts) | 25 | static void *pty_chan_init(char *str, int device, const struct chan_opts *opts) |
26 | { | 26 | { |
27 | struct pty_chan *data; | 27 | struct pty_chan *data; |
28 | 28 | ||
@@ -118,7 +118,7 @@ static int pty_open(int input, int output, int primary, void *d, | |||
118 | return(fd); | 118 | return(fd); |
119 | } | 119 | } |
120 | 120 | ||
121 | struct chan_ops pty_ops = { | 121 | const struct chan_ops pty_ops = { |
122 | .type = "pty", | 122 | .type = "pty", |
123 | .init = pty_chan_init, | 123 | .init = pty_chan_init, |
124 | .open = pty_open, | 124 | .open = pty_open, |
@@ -131,7 +131,7 @@ struct chan_ops pty_ops = { | |||
131 | .winch = 0, | 131 | .winch = 0, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | struct chan_ops pts_ops = { | 134 | const struct chan_ops pts_ops = { |
135 | .type = "pts", | 135 | .type = "pts", |
136 | .init = pty_chan_init, | 136 | .init = pty_chan_init, |
137 | .open = pts_open, | 137 | .open = pts_open, |