diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-27 18:16:47 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-27 18:16:47 -0400 |
commit | 3b9f6cb8a1ec791be79c6c7595fea922f12d1e64 (patch) | |
tree | 2393a448add846e6c2ed12f68106c3018b72c6a9 /arch/um/drivers/pty.c | |
parent | c38778c3a9aeadcd1ee319cfc8ea5a9cbf8cdafa (diff) | |
parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) |
Merge branch 'master' into upstream
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, |