summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
Diffstat (limited to 'dix')
-rw-r--r--dix/registry.c5
-rw-r--r--dix/resource.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/dix/registry.c b/dix/registry.c
index fc35dbbc7..5ab25ad70 100644
--- a/dix/registry.c
+++ b/dix/registry.c
@@ -41,7 +41,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
static FILE *fh;
-static char ***requests, **events, **errors, **resources;
+static char ***requests, **events, **errors;
+static const char **resources;
static unsigned nmajor, *nminor, nevent, nerror, nresource;
/*
@@ -197,7 +198,7 @@ RegisterExtensionNames(ExtensionEntry *extEntry)
*/
void
-RegisterResourceName(RESTYPE resource, char *name)
+RegisterResourceName(RESTYPE resource, const char *name)
{
resource &= TypeMask;
diff --git a/dix/resource.c b/dix/resource.c
index eb9f0492a..be8a8f81b 100644
--- a/dix/resource.c
+++ b/dix/resource.c
@@ -242,7 +242,7 @@ CallResourceStateCallback(ResourceState state, ResourceRec *res)
}
RESTYPE
-CreateNewResourceType(DeleteType deleteFunc, char *name)
+CreateNewResourceType(DeleteType deleteFunc, const char *name)
{
RESTYPE next = lastResourceType + 1;
struct ResourceType *types;