xserver: Branch 'XACE-SELINUX'
Eamon Walsh
ewalsh at kemper.freedesktop.org
Thu Aug 16 18:05:38 PDT 2007
dix/privates.c | 2 +-
include/privates.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
diff-tree 6fd0a0b08de912421718aca17fe34a55ae285ae7 (from b2b7817497dd5da73d23ec9cc637c563041fc490)
Author: Eamon Walsh <ewalsh at tycho.nsa.gov>
Date: Thu Aug 16 16:01:42 2007 -0400
devPrivates rework: add const qualifier to key type.
diff --git a/dix/privates.c b/dix/privates.c
index 4dbba43..1ca361c 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -47,7 +47,7 @@ from The Open Group.
#include "extnsionst.h"
typedef struct _PrivateDesc {
- DevPrivateKey key;
+ pointer key;
unsigned size;
CallbackListPtr initfuncs;
CallbackListPtr deletefuncs;
diff --git a/include/privates.h b/include/privates.h
index e377b30..e81e40a 100644
--- a/include/privates.h
+++ b/include/privates.h
@@ -19,10 +19,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE
* STUFF FOR PRIVATES
*****************************************************************/
-typedef void *DevPrivateKey;
+typedef void *const DevPrivateKey;
typedef struct _Private {
- DevPrivateKey key;
+ pointer key;
pointer value;
struct _Private *next;
} PrivateRec;
@@ -111,7 +111,7 @@ dixSetPrivate(PrivateRec **privates, con
* The calldata argument to the callbacks is a PrivateCallbackPtr.
*/
typedef struct _PrivateCallback {
- DevPrivateKey key; /* private registration key */
+ pointer key; /* key used to set the private */
pointer *value; /* address of private pointer */
} PrivateCallbackRec;
More information about the xorg-commit
mailing list