]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
exec: factor out most function arguments of exec_spawn() to ExecParameters
authorDaniel Mack <zonque@gmail.com>
Sat, 23 Aug 2014 13:28:37 +0000 (15:28 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 5 Sep 2014 10:18:57 +0000 (12:18 +0200)
commit9fa95f8539a380e93f760956bc6982e57f5bf3af
treef774c011d5563d2d381e91e1b50ac5c1e2e674e6
parenta4390b6be8869172ccdd16fef208803fc6c7a114
exec: factor out most function arguments of exec_spawn() to ExecParameters

This way, the list of arguments to that function gets more comprehensive,
and we can get around passing lots of NULL and 0 arguments from socket.c,
swap.c and mount.c.

It also allows for splitting up the code in exec_spawn().

While at it, make ExecContext const in execute.c.
src/core/execute.c
src/core/execute.h
src/core/mount.c
src/core/service.c
src/core/socket.c
src/core/swap.c