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
8edcba11
Commit
8edcba11
authored
Jan 13, 2011
by
Daniel Lezcano
Committed by
Daniel Lezcano
Jan 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set function static
Set the function prototype to static as it is not exported and used somewhere else in the code than this file. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
429a84f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgroup.c
src/lxc/cgroup.c
+2
-2
No files found.
src/lxc/cgroup.c
View file @
8edcba11
...
@@ -140,7 +140,7 @@ static int get_cgroup_flags(const char *mtab, int *flags)
...
@@ -140,7 +140,7 @@ static int get_cgroup_flags(const char *mtab, int *flags)
return
err
;
return
err
;
}
}
int
lxc
_rename_nsgroup
(
const
char
*
mnt
,
const
char
*
name
,
pid_t
pid
)
static
int
cgroup
_rename_nsgroup
(
const
char
*
mnt
,
const
char
*
name
,
pid_t
pid
)
{
{
char
oldname
[
MAXPATHLEN
];
char
oldname
[
MAXPATHLEN
];
...
@@ -232,7 +232,7 @@ int lxc_cgroup_create(const char *name, pid_t pid)
...
@@ -232,7 +232,7 @@ int lxc_cgroup_create(const char *name, pid_t pid)
/* We have the deprecated ns_cgroup subsystem */
/* We have the deprecated ns_cgroup subsystem */
if
(
flags
&
CGROUP_NS_CGROUP
)
{
if
(
flags
&
CGROUP_NS_CGROUP
)
{
WARN
(
"using deprecated ns_cgroup"
);
WARN
(
"using deprecated ns_cgroup"
);
return
lxc
_rename_nsgroup
(
cgmnt
,
cgname
,
pid
);
return
cgroup
_rename_nsgroup
(
cgmnt
,
cgname
,
pid
);
}
}
/* we check if the kernel has clone_children, at this point if there
/* we check if the kernel has clone_children, at this point if there
...
...
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