pty: remove unused "master" argument

We do not use the master pty fd when spawning the child so skip it.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-11-27 19:02:48 +01:00
parent f25c41f8f9
commit e8c439c805

View File

@ -223,7 +223,7 @@ static void pty_close(struct kmscon_pty *pty, bool user)
}
static void __attribute__((noreturn))
exec_child(int pty_master, const char *term, char **argv, const char *seat)
exec_child(const char *term, char **argv, const char *seat)
{
if (!term)
term = "vt220";
@ -350,7 +350,7 @@ static int pty_spawn(struct kmscon_pty *pty, int master,
return -errno;
case 0:
setup_child(master, &ws);
exec_child(pty->fd, pty->term, pty->argv, pty->seat);
exec_child(pty->term, pty->argv, pty->seat);
exit(EXIT_FAILURE);
default:
pty->fd = master;