constness++ and warnings--

SVN revision: 39563
This commit is contained in:
Gustavo Sverzut Barbieri 2009-03-18 23:51:35 +00:00
parent bddbbbb8a5
commit a8838b698e
3 changed files with 5 additions and 5 deletions

View 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);

View 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;

View 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;