Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
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
zhul
criu
Commits
66c1464e
Commit
66c1464e
authored
Oct 26, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Drop unneded variables
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
fa56125d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cr-restore.c
cr-restore.c
+2
-2
No files found.
cr-restore.c
View file @
66c1464e
...
@@ -1221,7 +1221,7 @@ static int restore_all_tasks(pid_t pid)
...
@@ -1221,7 +1221,7 @@ static int restore_all_tasks(pid_t pid)
static
void
restorer_test
(
pid_t
pid
)
static
void
restorer_test
(
pid_t
pid
)
{
{
long
exec_len
,
args_offset
,
old_sp
,
new_sp
,
new_i
p
;
long
exec_len
,
args_offset
,
new_s
p
;
void
*
args_rip
,
*
exec_mem
,
*
exec_start
;
void
*
args_rip
,
*
exec_mem
,
*
exec_start
;
struct
restore_core_args
*
args
;
struct
restore_core_args
*
args
;
long
ret
;
long
ret
;
...
@@ -1267,7 +1267,7 @@ static void restorer_test(pid_t pid)
...
@@ -1267,7 +1267,7 @@ static void restorer_test(pid_t pid)
snprintf
(
path
,
sizeof
(
path
),
"core-%d.img"
,
pid
);
snprintf
(
path
,
sizeof
(
path
),
"core-%d.img"
,
pid
);
args
=
(
struct
restore_core_args
*
)(
exec_start
+
args_offset
);
args
=
(
struct
restore_core_args
*
)(
exec_start
+
args_offset
);
args
->
self_entry
=
exec_mem
;
args
->
self_entry
=
exec_mem
;
args
->
self_size
=
exec_len
;
args
->
self_size
=
exec_len
+
RESTORER_STACK_SIZE
;
strcpy
(
args
->
core_path
,
path
);
strcpy
(
args
->
core_path
,
path
);
/*
/*
...
...
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