diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-08-16 15:30:25 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-08-16 15:33:58 -0400 |
commit | b2b7817497dd5da73d23ec9cc637c563041fc490 (patch) | |
tree | 31294b12f428d9bc97dff0b6931c5cea6f9d7533 /Xext/security.c | |
parent | 0a994d4f859a4e48d41a90ed9d2a282bb528c555 (diff) |
devPrivates rework: use camelcase standard for name of key type.
Diffstat (limited to 'Xext/security.c')
-rw-r--r-- | Xext/security.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Xext/security.c b/Xext/security.c index bf414a50f..fe1e48a14 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -54,7 +54,7 @@ in this Software without prior written authorization from The Open Group. static int SecurityErrorBase; /* first Security error number */ static int SecurityEventBase; /* first Security event number */ -static devprivate_key_t stateKey; +static const DevPrivateKey stateKey = &stateKey; /* this is what we store as client security state */ typedef struct { @@ -64,11 +64,11 @@ typedef struct { } SecurityClientStateRec; #define HAVESTATE(client) (((SecurityClientStateRec *) \ - dixLookupPrivate(DEVPRIV_PTR(client), &stateKey))->haveState) + dixLookupPrivate(DEVPRIV_PTR(client), stateKey))->haveState) #define TRUSTLEVEL(client) (((SecurityClientStateRec *) \ - dixLookupPrivate(DEVPRIV_PTR(client), &stateKey))->trustLevel) + dixLookupPrivate(DEVPRIV_PTR(client), stateKey))->trustLevel) #define AUTHID(client)(((SecurityClientStateRec *) \ - dixLookupPrivate(DEVPRIV_PTR(client), &stateKey))->authId) + dixLookupPrivate(DEVPRIV_PTR(client), stateKey))->authId) static CallbackListPtr SecurityValidateGroupCallback = NULL; @@ -1812,7 +1812,7 @@ SecurityExtensionInit(INITARGS) RTEventClient |= RC_NEVERRETAIN; /* Allocate the private storage */ - if (!dixRequestPrivate(&stateKey, sizeof(SecurityClientStateRec))) + if (!dixRequestPrivate(stateKey, sizeof(SecurityClientStateRec))) FatalError("SecurityExtensionSetup: Can't allocate client private.\n"); if (!AddCallback(&ClientStateCallback, SecurityClientStateCallback, NULL)) |