]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_clone: get rid of some indirection
authorTycho Andersen <tycho@tycho.ws>
Thu, 9 May 2019 18:18:10 +0000 (14:18 -0400)
committerTycho Andersen <tycho@tycho.ws>
Wed, 15 May 2019 13:56:29 +0000 (07:56 -0600)
commit5e7b4b3c166873030d51dc725907351f19d7e0fd
tree24daf23f89ea481889ad8d3892c36b45ab350fdc
parent8de90384363fe01f5258d36724dd3eae55918b5b
lxc_clone: get rid of some indirection

We have a do_clone(), which just calls a void f(void *) that it gets
passed. We build up a struct consisting of two args that are just the
actual arg and actual function. Let's just have the syscall do this for us.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
src/lxc/namespace.c