tree-wide: s/steal_ptr/move_ptr/g

parent 005f822b
...@@ -1451,7 +1451,7 @@ __cgfsng_ops static inline bool cgfsng_payload_create(struct cgroup_ops *ops, ...@@ -1451,7 +1451,7 @@ __cgfsng_ops static inline bool cgfsng_payload_create(struct cgroup_ops *ops,
return false; return false;
INFO("The container process uses \"%s\" as cgroup", container_cgroup); INFO("The container process uses \"%s\" as cgroup", container_cgroup);
ops->container_cgroup = steal_ptr(container_cgroup); ops->container_cgroup = move_ptr(container_cgroup);
return true; return true;
} }
......
...@@ -393,11 +393,11 @@ enum { ...@@ -393,11 +393,11 @@ enum {
/* Maximum number of bytes sendfile() is able to send in one go. */ /* Maximum number of bytes sendfile() is able to send in one go. */
#define LXC_SENDFILE_MAX 0x7ffff000 #define LXC_SENDFILE_MAX 0x7ffff000
#define steal_ptr(ptr) \ #define move_ptr(ptr) \
({ \ ({ \
typeof(ptr) _ptr_ = (ptr); \ typeof(ptr) __internal_ptr__ = (ptr); \
(ptr) = NULL; \ (ptr) = NULL; \
_ptr_; \ __internal_ptr__; \
}) })
#define steal_fd(fd) \ #define steal_fd(fd) \
......
...@@ -77,7 +77,7 @@ static int parse_argv(char ***argv) ...@@ -77,7 +77,7 @@ static int parse_argv(char ***argv)
if (ret <= 0) if (ret <= 0)
return -1; return -1;
steal_ptr(cmdline); move_ptr(cmdline);
return 0; return 0;
} }
......
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