diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h index f4c7191ca1..b42f7af3c4 100644 --- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h +++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h @@ -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); diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c index 6419e46a2a..5dfa49c578 100644 --- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c +++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c @@ -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; diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c index c2f0659116..382dff813c 100644 --- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c +++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dnd.c @@ -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;