From 0cb8ba6dc5e7bf4179174f9f17e211df7d89bd41 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 23 May 2012 23:40:32 -0700 Subject: 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 Reviewed-by: Dave Airlie --- src/mga_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3