diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-01-05 08:55:54 -0500 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-01-05 08:55:54 -0500 |
commit | a8d3df85a28de104597d909544ef1f19b3f06d91 (patch) | |
tree | 4429b51ec79a7ac218a301bb4ef937db6b9d3817 | |
parent | faf2dcf9d3c164a271315b958c142bd21f01e212 (diff) | |
download | elementary-a8d3df85a28de104597d909544ef1f19b3f06d91.tar.gz |
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>
-rw-r--r-- | src/lib/elm_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index c2a02a745..02091ddae 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -1898,8 +1898,9 @@ _elm_config_eet_close_error_get(Eet_File *ef, } static Eina_Bool -_elm_config_profile_save(void) +_elm_config_profile_save(const char *profile) { + Elm_Config_Derived *derived; char buf[4096], buf2[4096]; int ok = 0, ret; const char *err; @@ -1943,7 +1944,7 @@ _elm_config_profile_save(void) derived = _elm_config_derived_load(profile ? profile : _elm_profile); if (derived) { - _elm_config_derived_save(cfg, derived); + _elm_config_derived_save(_elm_config, derived); _elm_config_derived_free(derived); } return EINA_TRUE; @@ -1956,7 +1957,6 @@ err: Eina_Bool _elm_config_save(Elm_Config *cfg, const char *profile) { - Elm_Config_Derived *derived; char buf[4096], buf2[4096]; int ok = 0, ret; const char *err; @@ -1990,7 +1990,7 @@ _elm_config_save(Elm_Config *cfg, const char *profile) if (!profile) { - if (!_elm_config_profile_save()) + if (!_elm_config_profile_save(NULL)) return EINA_FALSE; } @@ -3608,7 +3608,7 @@ elm_config_all_flush(void) return; } - if (!_elm_config_profile_save()) + if (!_elm_config_profile_save(NULL)) { ERR("Failed to save profile"); return; |