fix warnings
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jan 2010 07:03:04 +0000 (07:03 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jan 2010 07:03:04 +0000 (07:03 +0000)
patch by Albin Tonnerre

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@45433 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore.c
src/lib/ecore/ecore_getopt.c
src/lib/ecore_imf/Ecore_IMF.h
src/lib/ecore_imf_evas/ecore_imf_evas.c
src/lib/ecore_x/xlib/ecore_x_window.c

index ff00ff4..5a04ef4 100644 (file)
@@ -225,7 +225,7 @@ void
 _ecore_fps_debug_init(void)
 {
    char  buf[4096];
-   char *tmp;
+   const char *tmp;
    int   pid;
 
    _ecore_fps_debug_init_count++;
@@ -265,8 +265,8 @@ _ecore_fps_debug_shutdown(void)
    if (_ecore_fps_debug_init_count > 0) return;
    if (_ecore_fps_debug_fd >= 0)
      {
-       char buf[4096];
-        char *tmp;
+        char buf[4096];
+        const char *tmp;
         int   pid;
 
 #ifndef HAVE_EVIL
index eea801f..e7c158b 100644 (file)
@@ -1535,7 +1535,7 @@ ecore_getopt_parser_has_duplicates(const Ecore_Getopt *parser)
    return 0;
 }
 
-const Ecore_Getopt_Desc *
+static const Ecore_Getopt_Desc *
 _ecore_getopt_find_help(const Ecore_Getopt *parser)
 {
    const Ecore_Getopt_Desc *desc = parser->descs;
index 1ae8708..05ac08c 100644 (file)
@@ -232,7 +232,7 @@ extern "C" {
 
    struct _Ecore_IMF_Event_Key_Down
      {
-       char                        *keyname;   /**< The string name of the key pressed */
+       const char                  *keyname;   /**< The string name of the key pressed */
        Ecore_IMF_Keyboard_Modifiers modifiers; /**< The keyboard modifiers active when the event has been emitted */
        Ecore_IMF_Keyboard_Locks     locks;     /**< The keyboard locks active when the event has been emitted */
        const char                  *key;       /**< The logical key : (eg shift+1 == exclamation) */
@@ -243,7 +243,7 @@ extern "C" {
 
    struct _Ecore_IMF_Event_Key_Up
      {
-       char                        *keyname;   /**< The string name of the key pressed */
+       const char                  *keyname;   /**< The string name of the key pressed */
        Ecore_IMF_Keyboard_Modifiers modifiers; /**< The keyboard modifiers active when the event has been emitted */
        Ecore_IMF_Keyboard_Locks     locks;     /**< The keyboard locks active when the event has been emitted */
        const char                  *key;       /**< The logical key : (eg shift+1 == exclamation) */
index a60a5b0..b14f5dd 100644 (file)
@@ -14,7 +14,7 @@
  * Helper functions to make it easy to use Evas with Ecore_IMF.
  */
 
-static char *_ecore_imf_evas_event_empty = "";
+static const char *_ecore_imf_evas_event_empty = "";
 
 /* Converts the Evas modifiers to Ecore_IMF keyboard modifiers */
 static void
index 7beffcd..701eb5f 100644 (file)
@@ -867,7 +867,7 @@ _ecore_x_window_tree_shadow_stop(void)
    _ecore_x_window_tree_shadow_free();
 }
 
-Shadow *
+static Shadow *
 _ecore_x_window_shadow_tree_find_shadow(Shadow *s, Window win)
 {
    Shadow *ss;
@@ -886,7 +886,7 @@ _ecore_x_window_shadow_tree_find_shadow(Shadow *s, Window win)
    return NULL;
 }
 
-Shadow *
+static Shadow *
 _ecore_x_window_shadow_tree_find(Window base)
 {
    Shadow *s;