summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/XF86DGA.c2
-rw-r--r--src/XF86DGA2.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/XF86DGA.c b/src/XF86DGA.c
index 71484b7..4544507 100644
--- a/src/XF86DGA.c
+++ b/src/XF86DGA.c
@@ -65,7 +65,7 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#include <X11/extensions/extutil.h>
extern XExtDisplayInfo* xdga_find_display(Display*);
-extern char *xdga_extension_name;
+extern const char *xdga_extension_name;
#define XF86DGACheckExtension(dpy,i,val) \
XextCheckExtension (dpy, i, xdga_extension_name, val)
diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c
index fbc84cb..e81b486 100644
--- a/src/XF86DGA2.c
+++ b/src/XF86DGA2.c
@@ -25,7 +25,7 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
/* If you change this, change the Bases[] array below as well */
#define MAX_HEADS 16
-char *xdga_extension_name = XF86DGANAME;
+const char *xdga_extension_name = XF86DGANAME;
static XExtensionInfo _xdga_info_data;
static XExtensionInfo *xdga_info = &_xdga_info_data;
@@ -760,7 +760,7 @@ typedef struct _DGAMapRec{
} DGAMapRec, *DGAMapPtr;
static Bool
-DGAMapPhysical(int, char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
+DGAMapPhysical(int, const char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
static void DGAUnmapPhysical(DGAMapPtr);
static DGAMapPtr _Maps = NULL;
@@ -852,7 +852,7 @@ XDGAUnmapFramebuffer(int screen)
static Bool
DGAMapPhysical(
int screen,
- char *name, /* optional device name */
+ const char *name, /* optional device name */
unsigned char* base, /* physical memory */
CARD32 size, /* size */
CARD32 offset, /* optional offset */