efl-loop: Don't use 'main' as a variable name

Gcc issues a warning here that 'main' is usually a function, so just
rename the variable to avoid the warning.

NB: No funtional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2018-01-04 09:26:28 -05:00
parent 01df8b7f78
commit 214dbdbd59
1 changed files with 3 additions and 3 deletions

View File

@ -751,10 +751,10 @@ efl_loop_promise_new(const Eo *obj, Eina_Promise_Cancel_Cb cancel_cb, const void
EAPI Eina_Promise *
efl_loop_main_promise_new(Eina_Promise_Cancel_Cb cancel_cb, const void *data)
{
Efl_Loop *main;
Efl_Loop *main_loop;
main = efl_loop_main_get(EFL_LOOP_CLASS);
return eina_promise_new(efl_loop_future_scheduler_get(main),
main_loop = efl_loop_main_get(EFL_LOOP_CLASS);
return eina_promise_new(efl_loop_future_scheduler_get(main_loop),
cancel_cb, data);
}