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:
parent
f25c41f8f9
commit
e8c439c805
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user