constness++ and warnings--
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 23:51:35 +0000 (23:51 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 23:51:35 +0000 (23:51 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@39563 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/Ecore_X.h
src/lib/ecore_x/xcb/ecore_xcb_dnd.c
src/lib/ecore_x/xlib/ecore_x_dnd.c

index f4c7191..b42f7af 100644 (file)
@@ -971,7 +971,7 @@ EAPI void             ecore_x_dnd_type_get_prefetch(Ecore_X_Window window);
 EAPI void             ecore_x_dnd_type_get_fetch(void);
 EAPI int              ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type);
 EAPI void             ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on);
-EAPI void             ecore_x_dnd_types_set(Ecore_X_Window win, char **types, unsigned int num_types);
+EAPI void             ecore_x_dnd_types_set(Ecore_X_Window win, const char **types, unsigned int num_types);
 EAPI void             ecore_x_dnd_actions_set(Ecore_X_Window win, Ecore_X_Atom *actions, unsigned int num_actions);
 EAPI void             ecore_x_dnd_begin_prefetch(Ecore_X_Window source);
 EAPI void             ecore_x_dnd_begin_fetch(void);
index 6419e46..5dfa49c 100644 (file)
@@ -354,7 +354,7 @@ ecore_x_dnd_type_set(Ecore_X_Window window,
  */
 EAPI void
 ecore_x_dnd_types_set(Ecore_X_Window window,
-                      char         **types,
+                      const char   **types,
                       unsigned int   num_types)
 {
    Ecore_X_Atom *newset = NULL;
index c2f0659..382dff8 100644 (file)
@@ -80,7 +80,7 @@ _ecore_x_dnd_shutdown(void)
 }
 
 static int
-_ecore_x_dnd_converter_copy(char *target, void *data, int size, void **data_ret, int *size_ret)
+_ecore_x_dnd_converter_copy(char *target __UNUSED__, void *data, int size, void **data_ret, int *size_ret)
 {
    XTextProperty text_prop;
    char *mystr;
@@ -95,7 +95,7 @@ _ecore_x_dnd_converter_copy(char *target, void *data, int size, void **data_ret,
 
    if (XmbTextListToTextProperty(_ecore_x_disp, &mystr, 1, style, &text_prop) == Success)
      {
-       int bufsize = strlen(text_prop.value) + 1;
+       int bufsize = strlen((char *)text_prop.value) + 1;
        *data_ret = malloc(bufsize);
        memcpy(*data_ret, text_prop.value, bufsize);
        *size_ret = bufsize;
@@ -260,7 +260,7 @@ ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
 }
 
 EAPI void
-ecore_x_dnd_types_set(Ecore_X_Window win, char **types, unsigned int num_types)
+ecore_x_dnd_types_set(Ecore_X_Window win, const char **types, unsigned int num_types)
 {
    Ecore_X_Atom      *newset = NULL;
    unsigned int      i;