fix warnings

Summary: fix compilation warnings

Test Plan: N/A

Reviewers: zmike

CC: cedric

Differential Revision: https://phab.enlightenment.org/D922
This commit is contained in:
Gwanglim Lee 2014-06-02 07:24:47 -04:00 committed by Mike Blumenkrantz
parent c55e16dcb4
commit af14a444c1
3 changed files with 3 additions and 4 deletions

View File

@ -116,7 +116,7 @@ _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
}
static Evas_Object *
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata)
{
Evas_Object *ol, *ow, *ot, *of;
char buf[64];

View File

@ -130,7 +130,6 @@ main(int argc, char *argv[])
}
#endif
seteuid(-1);
return -1;
}

View File

@ -663,8 +663,8 @@ _shot_now(E_Zone *zone, E_Client *ec, const char *params)
{
long long unsigned int max = 0;
fscanf(f, "%llu", &max);
if (max && (max < (w * h * sizeof(int))))
int n = fscanf(f, "%llu", &max);
if ((n > 0) && (max) && (max < (w * h * sizeof(int))))
{
e_util_dialog_show(_("Screenshot Error"),
_("SHMMAX is too small to take screenshot.<br>"