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
f9cf5143
Commit
f9cf5143
authored
Dec 26, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugins: Don't return from inside a macro
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
a5559cbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
plugin.c
plugin.c
+5
-2
No files found.
plugin.c
View file @
f9cf5143
...
...
@@ -47,7 +47,7 @@ struct cr_plugins cr_plugins;
struct cr_plugin_entry *__ce; \
__ce = xmalloc(sizeof(struct cr_plugin_entry)); \
if (__ce == NULL) \
return -1
; \
goto nomem
; \
__ce->name = name; \
__ce->next = cr_plugins.name; \
cr_plugins.name = __ce; \
...
...
@@ -128,7 +128,7 @@ static int cr_lib_load(char *path)
if
(
f_fini
)
{
ce
=
xmalloc
(
sizeof
(
struct
cr_plugin_entry
));
if
(
ce
==
NULL
)
return
-
1
;
goto
nomem
;
ce
->
cr_fini
=
f_fini
;
}
...
...
@@ -144,6 +144,9 @@ static int cr_lib_load(char *path)
}
return
0
;
nomem:
return
-
1
;
}
#define cr_plugin_free(name) do { \
...
...
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