summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas DeRensis <tderensis@gmail.com>2014-09-10 21:20:32 -0400
committerMichel Dänzer <michel.daenzer@amd.com>2014-09-11 11:30:41 +0900
commit56c7fb8ada4cd9cf096c6b06a8d368d286d74e68 (patch)
tree065951a6262e2986b85218c72eb4afbab3d6d831 /src
parentb9a9b244336ed50d7df4f36135f875a3bb6ca948 (diff)
radeon: fix build warnings regarding const qualifier
Signed-off-by: Thomas DeRensis <tderensis@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_kms.c2
-rw-r--r--src/radeon_video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 6f0f1a19..1703349f 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1209,7 +1209,7 @@ Bool RADEONScreenInit_KMS(SCREEN_INIT_ARGS_DECL)
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
RADEONInfoPtr info = RADEONPTR(pScrn);
int subPixelOrder = SubPixelUnknown;
- char* s;
+ const char *s;
void *front_ptr;
pScrn->fbOffset = 0;
diff --git a/src/radeon_video.c b/src/radeon_video.c
index 5349d113..cbfd554b 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -188,7 +188,7 @@ void RADEONInitVideo(ScreenPtr pScreen)
xf86XVScreenInit(pScreen, adaptors, num_adaptors);
if(texturedAdaptor) {
- XF86MCAdaptorPtr xvmcAdaptor = RADEONCreateAdaptorXvMC(pScreen, texturedAdaptor->name);
+ XF86MCAdaptorPtr xvmcAdaptor = RADEONCreateAdaptorXvMC(pScreen, (char *)texturedAdaptor->name);
if(xvmcAdaptor) {
if(!xf86XvMCScreenInit(pScreen, 1, &xvmcAdaptor))
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[XvMC] Failed to initialize extension.\n");