summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-10-24 20:52:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-27 16:12:38 +0900
commit5a9d8d6f032b816cd435aacef49af8b86375400b (patch)
treeb0e2aa97ff595859f0fe534d71e2878f25308453 /src/lib
parent3fe232cd95873396155f4bcac007cd5e62d237bd (diff)
Evas GL: string_query returns a const char *
Why cast to/from void* in the first place?
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/evas_gl.c2
-rw-r--r--src/lib/evas/include/evas_private.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_gl.c b/src/lib/evas/canvas/evas_gl.c
index 98b95e0be5..3373bb447e 100644
--- a/src/lib/evas/canvas/evas_gl.c
+++ b/src/lib/evas/canvas/evas_gl.c
@@ -517,7 +517,7 @@ evas_gl_string_query(Evas_GL *evas_gl, int name)
517 return ""; 517 return "";
518 MAGIC_CHECK_END(); 518 MAGIC_CHECK_END();
519 519
520 return (const char *)evas_gl->evas->engine.func->gl_string_query(evas_gl->evas->engine.data.output, name); 520 return evas_gl->evas->engine.func->gl_string_query(evas_gl->evas->engine.data.output, name);
521} 521}
522 522
523EAPI Evas_GL_Func 523EAPI Evas_GL_Func
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 6f715b463a..eff901bb83 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -1250,7 +1250,7 @@ struct _Evas_Func
1250 void *(*gl_context_create) (void *data, void *share_context, int version); 1250 void *(*gl_context_create) (void *data, void *share_context, int version);
1251 int (*gl_context_destroy) (void *data, void *context); 1251 int (*gl_context_destroy) (void *data, void *context);
1252 int (*gl_make_current) (void *data, void *surface, void *context); 1252 int (*gl_make_current) (void *data, void *surface, void *context);
1253 void *(*gl_string_query) (void *data, int name); 1253 const char *(*gl_string_query) (void *data, int name);
1254 void *(*gl_proc_address_get) (void *data, const char *name); 1254 void *(*gl_proc_address_get) (void *data, const char *name);
1255 int (*gl_native_surface_get) (void *data, void *surface, void *native_surface); 1255 int (*gl_native_surface_get) (void *data, void *surface, void *native_surface);
1256 void *(*gl_api_get) (void *data, int version); 1256 void *(*gl_api_get) (void *data, int version);