summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 23:40:32 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-25 14:52:51 -0700
commit0cb8ba6dc5e7bf4179174f9f17e211df7d89bd41 (patch)
treeead88387c464ded7d1727ab718e95a9cf5754066
parent3d9631b819c5c6f64ebf9bda8aab93e1cc7f391f (diff)
Add const qualifier to char *from in MGAdoDDC
Only used to store arguments to pass as printf %s strings to xf86DrvMsg Fixes gcc warnings: mga_driver.c: In function 'MGAdoDDC': mga_driver.c:1338:7: warning: assignment discards qualifiers from pointer target type mga_driver.c:1343:11: warning: assignment discards qualifiers from pointer target type mga_driver.c:1351:8: warning: assignment discards qualifiers from pointer target type mga_driver.c:1359:8: warning: assignment discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/mga_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 806692a..0c04d74 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1263,7 +1263,7 @@ MGAdoDDC(ScrnInfoPtr pScrn)
vgaHWPtr hwp;
MGAPtr pMga;
xf86MonPtr MonInfo = NULL;
- char *from = NULL;
+ const char *from = NULL;
hwp = VGAHWPTR(pScrn);
pMga = MGAPTR(pScrn);