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
932b94f5
Commit
932b94f5
authored
Jan 08, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Jan 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
Remove dead code. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
bf601689
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
conf.c
src/lxc/conf.c
+0
-23
conf.h
src/lxc/conf.h
+0
-11
No files found.
src/lxc/conf.c
View file @
932b94f5
...
@@ -963,29 +963,6 @@ static int setup_network(struct lxc_list *network)
...
@@ -963,29 +963,6 @@ static int setup_network(struct lxc_list *network)
return
0
;
return
0
;
}
}
int
conf_has
(
const
char
*
name
,
const
char
*
info
)
{
int
ret
=
0
;
char
path
[
MAXPATHLEN
];
struct
stat
st
;
snprintf
(
path
,
MAXPATHLEN
,
LXCPATH
"/%s/%s"
,
name
,
info
);
if
(
!
stat
(
path
,
&
st
)
||
!
lstat
(
path
,
&
st
))
{
ret
=
1
;
goto
out
;
}
if
(
errno
==
ENOENT
)
{
ret
=
0
;
goto
out
;
}
SYSERROR
(
"failed to stat %s info"
,
info
);
out:
return
ret
;
}
struct
lxc_conf
*
lxc_conf_init
(
void
)
struct
lxc_conf
*
lxc_conf_init
(
void
)
{
{
struct
lxc_conf
*
new
;
struct
lxc_conf
*
new
;
...
...
src/lxc/conf.h
View file @
932b94f5
...
@@ -188,15 +188,4 @@ struct lxc_handler;
...
@@ -188,15 +188,4 @@ struct lxc_handler;
extern
int
lxc_setup
(
const
char
*
name
,
struct
lxc_conf
*
lxc_conf
);
extern
int
lxc_setup
(
const
char
*
name
,
struct
lxc_conf
*
lxc_conf
);
extern
int
conf_has
(
const
char
*
name
,
const
char
*
info
);
#define conf_has_fstab(__name) conf_has(__name, "fstab")
#define conf_has_rootfs(__name) conf_has(__name, "rootfs")
#define conf_has_pivotdir(__name) conf_has(__name, "pivotdir")
#define conf_has_utsname(__name) conf_has(__name, "utsname")
#define conf_has_network(__name) conf_has(__name, "network")
#define conf_has_console(__name) conf_has(__name, "console")
#define conf_has_cgroup(__name) conf_has(__name, "cgroup")
#define conf_has_tty(__name) conf_has(__name, "tty")
#define conf_has_pts(__name) conf_has(__name, "pts")
#endif
#endif
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