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
8f47bc3f
Unverified
Commit
8f47bc3f
authored
Oct 23, 2013
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang: Fix some simple issues
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
aea1cd3c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
confile.c
src/lxc/confile.c
+1
-1
lxc_monitord.c
src/lxc/lxc_monitord.c
+4
-3
monitor.c
src/lxc/monitor.c
+2
-1
version.c
src/lxc/version.c
+1
-1
version.h
src/lxc/version.h
+1
-1
No files found.
src/lxc/confile.c
View file @
8f47bc3f
...
@@ -901,7 +901,7 @@ static int config_hook(const char *key, const char *value,
...
@@ -901,7 +901,7 @@ static int config_hook(const char *key, const char *value,
return
-
1
;
return
-
1
;
}
}
static
int
config_personality
(
const
char
*
key
,
const
c
onst
c
har
*
value
,
static
int
config_personality
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
)
struct
lxc_conf
*
lxc_conf
)
{
{
signed
long
personality
=
lxc_config_parse_arch
(
value
);
signed
long
personality
=
lxc_config_parse_arch
(
value
);
...
...
src/lxc/lxc_monitord.c
View file @
8f47bc3f
...
@@ -47,8 +47,6 @@
...
@@ -47,8 +47,6 @@
lxc_log_define
(
lxc_monitord
,
lxc
);
lxc_log_define
(
lxc_monitord
,
lxc
);
static
struct
lxc_monitor
mon
;
static
void
lxc_monitord_cleanup
(
void
);
static
void
lxc_monitord_cleanup
(
void
);
/*
/*
...
@@ -71,6 +69,8 @@ struct lxc_monitor {
...
@@ -71,6 +69,8 @@ struct lxc_monitor {
struct
lxc_epoll_descr
descr
;
struct
lxc_epoll_descr
descr
;
};
};
static
struct
lxc_monitor
mon
;
static
int
lxc_monitord_fifo_create
(
struct
lxc_monitor
*
mon
)
static
int
lxc_monitord_fifo_create
(
struct
lxc_monitor
*
mon
)
{
{
char
fifo_path
[
PATH_MAX
];
char
fifo_path
[
PATH_MAX
];
...
@@ -379,7 +379,8 @@ int main(int argc, char *argv[])
...
@@ -379,7 +379,8 @@ int main(int argc, char *argv[])
* if-empty-statement construct is to quiet the
* if-empty-statement construct is to quiet the
* warn-unused-result warning.
* warn-unused-result warning.
*/
*/
if
(
write
(
pipefd
,
"S"
,
1
))
;
if
(
write
(
pipefd
,
"S"
,
1
))
;
close
(
pipefd
);
close
(
pipefd
);
if
(
lxc_monitord_mainloop_add
(
&
mon
))
{
if
(
lxc_monitord_mainloop_add
(
&
mon
))
{
...
...
src/lxc/monitor.c
View file @
8f47bc3f
...
@@ -328,7 +328,8 @@ int lxc_monitord_spawn(const char *lxcpath)
...
@@ -328,7 +328,8 @@ int lxc_monitord_spawn(const char *lxcpath)
* synced with the child process. the if-empty-statement
* synced with the child process. the if-empty-statement
* construct is to quiet the warn-unused-result warning.
* construct is to quiet the warn-unused-result warning.
*/
*/
if
(
read
(
pipefd
[
0
],
&
c
,
1
))
;
if
(
read
(
pipefd
[
0
],
&
c
,
1
))
;
close
(
pipefd
[
0
]);
close
(
pipefd
[
0
]);
exit
(
EXIT_SUCCESS
);
exit
(
EXIT_SUCCESS
);
}
}
...
...
src/lxc/version.c
View file @
8f47bc3f
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "../config.h"
#include "../config.h"
const
char
const
*
lxc_version
(
void
)
const
char
*
lxc_version
(
void
)
{
{
return
PACKAGE_VERSION
;
return
PACKAGE_VERSION
;
}
}
src/lxc/version.h
View file @
8f47bc3f
...
@@ -26,6 +26,6 @@
...
@@ -26,6 +26,6 @@
/*
/*
* Returns the version number of the library
* Returns the version number of the library
*/
*/
extern
const
char
const
*
lxc_version
(
void
);
extern
const
char
*
lxc_version
(
void
);
#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