mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Xfbdev: Make char *fbdevDevicePath const
This fixes: hw/kdrive/fbdev/fbdev.c: In function 'fbdevInitialize': hw/kdrive/fbdev/fbdev.c:41:25: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
extern int KdTsPhyScreen;
|
||||
|
||||
char *fbdevDevicePath = NULL;
|
||||
const char *fbdevDevicePath = NULL;
|
||||
|
||||
static Bool
|
||||
fbdevInitialize(KdCardInfo * card, FbdevPriv * priv)
|
||||
|
||||
@@ -49,7 +49,7 @@ typedef struct _fbdevScrPriv {
|
||||
} FbdevScrPriv;
|
||||
|
||||
extern KdCardFuncs fbdevFuncs;
|
||||
extern char *fbdevDevicePath;
|
||||
extern const char *fbdevDevicePath;
|
||||
|
||||
Bool
|
||||
fbdevCardInit(KdCardInfo * card);
|
||||
|
||||
Reference in New Issue
Block a user