Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
e4edf5d7
Unverified
Commit
e4edf5d7
authored
Feb 18, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree-wide: s/steal_ptr/move_ptr/g
Suggested-by:
Wolfgang Bumiller
<
w.bumiller@proxmox.com
>
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
005f822b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
macro.h
src/lxc/macro.h
+5
-5
rexec.c
src/lxc/rexec.c
+1
-1
No files found.
src/lxc/cgroups/cgfsng.c
View file @
e4edf5d7
...
@@ -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
;
}
}
...
...
src/lxc/macro.h
View file @
e4edf5d7
...
@@ -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) \
...
...
src/lxc/rexec.c
View file @
e4edf5d7
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment