From 93fb79166b4154281c66df3201cf55d9d0986fc5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 7 Mar 2018 22:32:32 +0100 Subject: scripting: make a function static --- player/core.h | 1 - player/scripting.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/player/core.h b/player/core.h index bfc5f662a4..25c006f2e4 100644 --- a/player/core.h +++ b/player/core.h @@ -586,7 +586,6 @@ struct mp_scripting { }; void mp_load_scripts(struct MPContext *mpctx); void mp_load_builtin_scripts(struct MPContext *mpctx); -int mp_load_script(struct MPContext *mpctx, const char *fname); int mp_load_user_script(struct MPContext *mpctx, const char *fname); // sub.c diff --git a/player/scripting.c b/player/scripting.c index 38e8809020..db622f0fe8 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -107,7 +107,7 @@ static void wait_loaded(struct MPContext *mpctx) mp_wakeup_core(mpctx); // avoid lost wakeups during waiting } -int mp_load_script(struct MPContext *mpctx, const char *fname) +static int mp_load_script(struct MPContext *mpctx, const char *fname) { char *ext = mp_splitext(fname, NULL); const struct mp_scripting *backend = NULL; -- cgit v1.2.3