]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
handler: make name argument const
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 28 Oct 2017 20:05:18 +0000 (22:05 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 3 Nov 2017 07:37:08 +0000 (08:37 +0100)
commitf0ecc19d8f61a972a0b508a40bf021d91ef34bb3
tree42375b6cbc2177617c457232c72ec7285ad067ef
parent6e5fc7a5c7d264989fd1df256d0929a9cd3d382f
handler: make name argument const

There's no obvious need to strdup() the name of the container in the handler.
We can simply make this a pointer to the memory allocated in
lxc_container_new().

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c
src/lxc/network.c
src/lxc/network.h
src/lxc/start.c
src/lxc/start.h