core: drop "argv" field from ExecParameter structure

We always initialize it from the same field in ExecCommand anyway, hence
there's no point in passing it separately to exec_spawn(), after all we
already pass the ExecCommand structure itself anyway.

No change in behaviour.
This commit is contained in:
Lennart Poettering
2018-07-23 13:36:47 +02:00
parent 2ed26ed065
commit ee39ca20c6
4 changed files with 4 additions and 15 deletions
-2
View File
@@ -1889,8 +1889,6 @@ static int socket_spawn(Socket *s, ExecCommand *c, pid_t *_pid) {
unit_set_exec_params(UNIT(s), &exec_params);
exec_params.argv = c->argv;
r = exec_spawn(UNIT(s),
c,
&s->exec_context,