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
06526975
Commit
06526975
authored
Nov 13, 2008
by
dlezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix function prototype
From: Daniel Lezcano <dlezcano@fr.ibm.com> The lxc_start function prototype has been changed. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
05f05512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
lxc_start.c
test/lxc_start.c
+1
-8
No files found.
test/lxc_start.c
View file @
06526975
...
@@ -42,13 +42,6 @@ void usage(char *cmd)
...
@@ -42,13 +42,6 @@ void usage(char *cmd)
_exit
(
1
);
_exit
(
1
);
}
}
static
int
prestart
(
const
char
*
name
,
int
argc
,
char
*
argv
[],
void
*
data
)
{
printf
(
"%s hook has been called with data %s
\n
"
,
__FUNCTION__
,
(
char
*
)
data
);
return
0
;
}
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
char
opt
;
char
opt
;
...
@@ -72,7 +65,7 @@ int main(int argc, char *argv[])
...
@@ -72,7 +65,7 @@ int main(int argc, char *argv[])
args
=
&
argv
[
optind
];
args
=
&
argv
[
optind
];
argc
-=
nbargs
;
argc
-=
nbargs
;
if
(
lxc_start
(
name
,
arg
c
,
args
,
prestart
,
"hello world"
))
{
if
(
lxc_start
(
name
,
arg
s
))
{
fprintf
(
stderr
,
"failed to start %s
\n
"
,
name
);
fprintf
(
stderr
,
"failed to start %s
\n
"
,
name
);
return
1
;
return
1
;
}
}
...
...
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