forked from enlightenment/efl
ecore/example: --warning.
use scanf() return value for removing compiling warning.
This commit is contained in:
parent
a0fc68ee11
commit
6904354fed
|
@ -20,7 +20,9 @@ _stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED)
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
scanf("%c", &c);
|
int ret = scanf("%c", &c);
|
||||||
|
if (ret < 1) return ECORE_CALLBACK_RENEW;
|
||||||
|
|
||||||
if (c == 'h')
|
if (c == 'h')
|
||||||
EINA_LIST_FOREACH(ecore_evas_ecore_evas_list_get(), l, ee)
|
EINA_LIST_FOREACH(ecore_evas_ecore_evas_list_get(), l, ee)
|
||||||
ecore_evas_hide(ee);
|
ecore_evas_hide(ee);
|
||||||
|
|
Loading…
Reference in New Issue