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
618c17b6
Commit
618c17b6
authored
Mar 05, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
img: Simplify the open_image() macro
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
131d4b86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
image.c
image.c
+3
-0
image.h
include/image.h
+1
-1
No files found.
image.c
View file @
618c17b6
...
...
@@ -210,6 +210,9 @@ struct cr_img *open_image_at(int dfd, int type, unsigned long flags, ...)
va_list
args
;
int
ret
;
if
(
dfd
==
-
1
)
dfd
=
get_service_fd
(
IMG_FD_OFF
);
img
=
xmalloc
(
sizeof
(
*
img
));
if
(
!
img
)
goto
errn
;
...
...
include/image.h
View file @
618c17b6
...
...
@@ -138,7 +138,7 @@ extern int open_image_dir(char *dir);
extern
void
close_image_dir
(
void
);
extern
struct
cr_img
*
open_image_at
(
int
dfd
,
int
type
,
unsigned
long
flags
,
...);
#define open_image(typ, flags, ...) open_image_at(
get_service_fd(IMG_FD_OFF)
, typ, flags, ##__VA_ARGS__)
#define open_image(typ, flags, ...) open_image_at(
-1
, typ, flags, ##__VA_ARGS__)
extern
struct
cr_img
*
open_pages_image
(
unsigned
long
flags
,
struct
cr_img
*
pmi
);
extern
struct
cr_img
*
open_pages_image_at
(
int
dfd
,
unsigned
long
flags
,
struct
cr_img
*
pmi
);
extern
void
up_page_ids_base
(
void
);
...
...
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