Commit 34c8ef4a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: plugins, std -- Use compel_plugin entry point routine name

Plain "main" makes compilers unhappy since it's
known predefined name.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 642f990d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "asm/prologue.h" #include "asm/prologue.h"
extern int main(void *arg_p, unsigned int arg_s); extern int compel_main(void *arg_p, unsigned int arg_s);
static struct prologue_init_args *init_args; static struct prologue_init_args *init_args;
static int ctl_socket = -1; static int ctl_socket = -1;
...@@ -75,7 +75,7 @@ int __export_std_compel_start(struct prologue_init_args *args, ...@@ -75,7 +75,7 @@ int __export_std_compel_start(struct prologue_init_args *args,
} }
if (!ret) if (!ret)
ret = main(args->arg_p, args->arg_s); ret = compel_main(args->arg_p, args->arg_s);
for (; i > 0; i--) { for (; i > 0; i--) {
const plugin_init_t *d = init_array[i - 1]; const plugin_init_t *d = init_array[i - 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment