elementary: Fix elementary not compiling

With the push of 1056b6ed01475817da2439012057d11865d2c5d8, elementary
compile broke due to undeclared variables. This patch fixes elm to
compile again by declaring the missing vars.

@fix

@raster, Please double check this change as I am unsure if it is what
you Really intended here.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-01-05 08:55:54 -05:00
parent 8589d1d2ab
commit 67d8c323ff
1 changed files with 5 additions and 5 deletions

View File

@ -1898,8 +1898,9 @@ _elm_config_eet_close_error_get(Eet_File *ef,
} }
static Eina_Bool static Eina_Bool
_elm_config_profile_save(void) _elm_config_profile_save(const char *profile)
{ {
Elm_Config_Derived *derived;
char buf[4096], buf2[4096]; char buf[4096], buf2[4096];
int ok = 0, ret; int ok = 0, ret;
const char *err; const char *err;
@ -1943,7 +1944,7 @@ _elm_config_profile_save(void)
derived = _elm_config_derived_load(profile ? profile : _elm_profile); derived = _elm_config_derived_load(profile ? profile : _elm_profile);
if (derived) if (derived)
{ {
_elm_config_derived_save(cfg, derived); _elm_config_derived_save(_elm_config, derived);
_elm_config_derived_free(derived); _elm_config_derived_free(derived);
} }
return EINA_TRUE; return EINA_TRUE;
@ -1956,7 +1957,6 @@ err:
Eina_Bool Eina_Bool
_elm_config_save(Elm_Config *cfg, const char *profile) _elm_config_save(Elm_Config *cfg, const char *profile)
{ {
Elm_Config_Derived *derived;
char buf[4096], buf2[4096]; char buf[4096], buf2[4096];
int ok = 0, ret; int ok = 0, ret;
const char *err; const char *err;
@ -1990,7 +1990,7 @@ _elm_config_save(Elm_Config *cfg, const char *profile)
if (!profile) if (!profile)
{ {
if (!_elm_config_profile_save()) if (!_elm_config_profile_save(NULL))
return EINA_FALSE; return EINA_FALSE;
} }
@ -3608,7 +3608,7 @@ elm_config_all_flush(void)
return; return;
} }
if (!_elm_config_profile_save()) if (!_elm_config_profile_save(NULL))
{ {
ERR("Failed to save profile"); ERR("Failed to save profile");
return; return;