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
dd9a1c4a
Unverified
Commit
dd9a1c4a
authored
Nov 29, 2017
by
Christian Brauner
Committed by
GitHub
Nov 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1971 from AustinReichert/tools-refactor-lxc-destroy
tools/lxc_destroy: remove internal logging
parents
4adf8ff4
525dcf89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lxc_destroy.c
src/lxc/tools/lxc_destroy.c
+2
-4
No files found.
src/lxc/tools/lxc_destroy.c
View file @
dd9a1c4a
...
@@ -32,8 +32,6 @@
...
@@ -32,8 +32,6 @@
#include "lxc.h"
#include "lxc.h"
#include "utils.h"
#include "utils.h"
lxc_log_define
(
lxc_destroy_ui
,
lxc
);
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
);
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
);
static
bool
quiet
;
static
bool
quiet
;
...
@@ -233,14 +231,14 @@ static bool do_destroy_with_snapshots(struct lxc_container *c)
...
@@ -233,14 +231,14 @@ static bool do_destroy_with_snapshots(struct lxc_container *c)
/* Make sure that the string is \0 terminated. */
/* Make sure that the string is \0 terminated. */
buf
=
calloc
(
fbuf
.
st_size
+
1
,
sizeof
(
char
));
buf
=
calloc
(
fbuf
.
st_size
+
1
,
sizeof
(
char
));
if
(
!
buf
)
{
if
(
!
buf
)
{
SYSERROR
(
"failed to allocate memory
"
);
fprintf
(
stderr
,
"failed to allocate memory
\n
"
);
close
(
fd
);
close
(
fd
);
return
false
;
return
false
;
}
}
ret
=
read
(
fd
,
buf
,
fbuf
.
st_size
);
ret
=
read
(
fd
,
buf
,
fbuf
.
st_size
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
ERROR
(
"could not read %s
"
,
path
);
fprintf
(
stderr
,
"could not read %s
\n
"
,
path
);
close
(
fd
);
close
(
fd
);
free
(
buf
);
free
(
buf
);
return
false
;
return
false
;
...
...
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