mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-03 22:24:50 +00:00
xfree86: drivers: apm: fix const warning
The `mod` field is only assigned a literal (readonly data), so needs to be const. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
a32b00bab3
commit
2a8acb115f
@@ -344,7 +344,6 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
EntityInfoPtr pEnt;
|
||||
vgaHWPtr hwp;
|
||||
MessageType from;
|
||||
char *mod = NULL;
|
||||
const char *s;
|
||||
ClockRangePtr clockRanges;
|
||||
int i;
|
||||
@@ -965,6 +964,7 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
xf86SetDpi(pScrn, 0, 0);
|
||||
|
||||
/* Load bpp-specific modules */
|
||||
const char *mod = NULL;
|
||||
switch (pScrn->bitsPerPixel) {
|
||||
case 8:
|
||||
case 16:
|
||||
|
||||
Reference in New Issue
Block a user