aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/extension.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/dix/extension.c')
-rw-r--r--xorg-server/dix/extension.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xorg-server/dix/extension.c b/xorg-server/dix/extension.c
index c7bbac5ff..53aaf051f 100644
--- a/xorg-server/dix/extension.c
+++ b/xorg-server/dix/extension.c
@@ -71,7 +71,7 @@ static int lastError = FirstExtensionError;
static unsigned int NumExtensions = 0;
ExtensionEntry *
-AddExtension(char *name, int NumEvents, int NumErrors,
+AddExtension(const char *name, int NumEvents, int NumErrors,
int (*MainProc)(ClientPtr c1),
int (*SwappedMainProc)(ClientPtr c2),
void (*CloseDownProc)(ExtensionEntry *e),
@@ -151,7 +151,7 @@ AddExtension(char *name, int NumEvents, int NumErrors,
return ext;
}
-Bool AddExtensionAlias(char *alias, ExtensionEntry *ext)
+Bool AddExtensionAlias(const char *alias, ExtensionEntry *ext)
{
char *name;
char **aliases;
@@ -172,7 +172,7 @@ Bool AddExtensionAlias(char *alias, ExtensionEntry *ext)
}
static int
-FindExtension(char *extname, int len)
+FindExtension(const char *extname, int len)
{
int i, j;
@@ -201,7 +201,7 @@ CheckExtension(const char *extname)
{
int n;
- n = FindExtension((char*)extname, strlen(extname));
+ n = FindExtension(extname, strlen(extname));
if (n != -1)
return extensions[n];
else