ecore/example: --warning.

use scanf() return value for removing compiling warning.
This commit is contained in:
ChunEon Park 2014-04-29 14:04:10 +09:00
parent a0fc68ee11
commit 6904354fed
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ _stdin_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *handler EINA_UNUSED)
Ecore_Evas *ee;
char c;
scanf("%c", &c);
int ret = scanf("%c", &c);
if (ret < 1) return ECORE_CALLBACK_RENEW;
if (c == 'h')
EINA_LIST_FOREACH(ecore_evas_ecore_evas_list_get(), l, ee)
ecore_evas_hide(ee);