diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 18:50:10 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 18:50:10 +0100 |
commit | a4de43679f434ab5d7b5cc71e33919f2895aa30b (patch) | |
tree | 10b4f5eeca98259793f2f1c30f38ba51364b3d54 | |
parent | 889686327311760bdda718a8b9b7628000c0843e (diff) | |
download | xine-lib-a4de43679f434ab5d7b5cc71e33919f2895aa30b.tar.gz xine-lib-a4de43679f434ab5d7b5cc71e33919f2895aa30b.tar.bz2 |
Return value is a constant string.
-rw-r--r-- | src/video_out/video_out_xcbshm.c | 4 | ||||
-rw-r--r-- | src/video_out/video_out_xshm.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_out/video_out_xcbshm.c b/src/video_out/video_out_xcbshm.c index 376099e8f..1f649dfd4 100644 --- a/src/video_out/video_out_xcbshm.c +++ b/src/video_out/video_out_xcbshm.c @@ -978,8 +978,8 @@ static int ImlibPaletteLUTGet(xshm_driver_t *this) { return 0; } - -static char *visual_class_name(xcb_visualtype_t *visual) { +/* TODO replace this with a string table. */ +static const char *visual_class_name(xcb_visualtype_t *visual) { switch (visual->_class) { case XCB_VISUAL_CLASS_STATIC_GRAY: diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c index cce57f27a..f6f6bafbe 100644 --- a/src/video_out/video_out_xshm.c +++ b/src/video_out/video_out_xshm.c @@ -1053,7 +1053,7 @@ static int ImlibPaletteLUTGet(xshm_driver_t *this) { } -static char *visual_class_name(Visual *visual) { +static const char *visual_class_name(Visual *visual) { switch (visual->class) { case StaticGray: |