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:
Enrico Weigelt, metux IT consult
2025-07-22 12:44:23 +02:00
committed by Enrico Weigelt
parent a32b00bab3
commit 2a8acb115f

View File

@@ -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: