summaryrefslogtreecommitdiff
path: root/dix/registry.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-18 10:30:44 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-18 10:30:44 -0400
commit31110d6837ee52fd654729d9e5c4b0c5395abab0 (patch)
treeaecde7fa67a7e69ad56447fe843637b618201b11 /dix/registry.c
parente3fd90ae9c3ddfc5d78e62614e311b73505d7ead (diff)
registry: special case minor number when looking up core requests.
Diffstat (limited to 'dix/registry.c')
-rw-r--r--dix/registry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/registry.c b/dix/registry.c
index 48e1b5dae..01818582e 100644
--- a/dix/registry.c
+++ b/dix/registry.c
@@ -123,6 +123,8 @@ RegisterResourceName(RESTYPE resource, const char *name)
const char *
LookupRequestName(int major, int minor)
{
+ if (major < 128)
+ minor = 0;
if (major >= nmajor)
return XREGISTRY_UNKNOWN;
if (minor >= nminor[major])