commands_utils: indicate taking ownership of state_client_fd in

lxc_add_state_client() Signed-off-by: 's avatarMatthias Hardt <matthias.hardt@gmail.com>
parent d7aa5552
...@@ -171,7 +171,7 @@ int lxc_cmd_connect(const char *name, const char *lxcpath, ...@@ -171,7 +171,7 @@ int lxc_cmd_connect(const char *name, const char *lxcpath,
return client_fd; return client_fd;
} }
int lxc_add_state_client(int state_client_fd, struct lxc_handler *handler, int lxc_add_state_client(__owns int state_client_fd, struct lxc_handler *handler,
lxc_state_t states[MAX_STATE]) lxc_state_t states[MAX_STATE])
{ {
__do_free struct lxc_state_client *newclient = NULL; __do_free struct lxc_state_client *newclient = NULL;
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
#define __lxc_unused #define __lxc_unused
#endif #endif
/* Indicates taking ownership */
#define __owns
#define __cgfsng_ops #define __cgfsng_ops
#endif /* __LXC_COMPILER_H */ #endif /* __LXC_COMPILER_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment