efl-loop: Don't use 'main' as a variable name
authorChris Michael <cp.michael@samsung.com>
Thu, 4 Jan 2018 14:26:28 +0000 (09:26 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
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>
src/lib/ecore/efl_loop.c

index 177d26d..6ab26bd 100644 (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);
 }