Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_imf


Modified Files:
        ecore_imf.c ecore_imf_context.c ecore_imf_module.c 


Log Message:
Fix warnings.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_imf/ecore_imf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_imf.c 19 Nov 2007 18:27:11 -0000      1.1
+++ ecore_imf.c 22 Nov 2007 11:55:35 -0000      1.2
@@ -5,6 +5,9 @@
 #include "config.h"
 
 #include "Ecore_IMF.h"
+#include "ecore_imf_private.h"
+
+#include <Ecore.h>
 
 EAPI int ECORE_IMF_EVENT_PREEDIT_START = 0;
 EAPI int ECORE_IMF_EVENT_PREEDIT_END = 0;
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_imf/ecore_imf_context.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ecore_imf_context.c 21 Nov 2007 22:20:16 -0000      1.3
+++ ecore_imf_context.c 22 Nov 2007 11:55:35 -0000      1.4
@@ -10,6 +10,8 @@
 #include "Ecore_IMF.h"
 #include "ecore_imf_private.h"
 
+#include <Ecore.h>
+
 /**
  * @defgroup Ecore_IMF_Context_Group Ecore Input Method Context Functions
  *
@@ -598,7 +600,7 @@
      {
        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
                         "ecore_imf_context_data_get");
-       return;
+       return NULL;
      }
    return ctx->data;
 }
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_imf/ecore_imf_module.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ecore_imf_module.c  21 Nov 2007 22:20:16 -0000      1.2
+++ ecore_imf_module.c  22 Nov 2007 11:55:35 -0000      1.3
@@ -157,13 +157,12 @@
    const Ecore_IMF_Context_Info *info = NULL;
    int (*imf_module_init)(const Ecore_IMF_Context_Info **info);
    Ecore_IMF_Context *(*imf_module_create)(void);
-   Ecore_IMF_Module *module;
 
    avail = ecore_plugin_available_get(ecore_imf_modules_path);
    if (!avail) return;
 
    ecore_list_first_goto(avail);
-   while (filename = ecore_list_next(avail))
+   while ((filename = ecore_list_next(avail)))
      {
        plugin = ecore_plugin_load(ecore_imf_modules_path, filename, NULL);
        if (!plugin)
@@ -187,7 +186,7 @@
          {
             fprintf(stderr, "** ecore_imf: Error loading input method plugin 
%s! "
                             "Plugin with id='%s' already exists!",
-                    info->id);
+                    filename, info->id);
             ecore_plugin_unload(plugin);
             continue;
          }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to