elementary: Fix elementary not compiling 96/83596/2
authorChris Michael <cpmichael@osg.samsung.com>
Tue, 5 Jan 2016 13:55:54 +0000 (08:55 -0500)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Aug 2016 06:03:32 +0000 (23:03 -0700)
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.

Change-Id: I1ee3fbcf94564943b8f31278ef9bed7292582898
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/elm_config.c

index c14f4f1..75b004a 100644 (file)
@@ -1873,8 +1873,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;
@@ -1918,7 +1919,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;
@@ -1931,7 +1932,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;
@@ -1965,7 +1965,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;
      }
 
@@ -3613,8 +3613,11 @@ elm_config_all_flush(void)
         return;
      }
 
-   if (!_elm_config_profile_save())
-     return;
+   if (!_elm_config_profile_save(NULL))
+     {
+        ERR("Failed to save profile");
+        return;
+     }
 
    elm_config_save();
    return;