summaryrefslogtreecommitdiff
path: root/dix/privates.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-03-08 12:14:30 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-03-08 12:14:30 -0500
commitfe05ba75a10ec080e7ec34bff6936103185586b3 (patch)
tree94496edf7c99d1713ace7cb3b33384b62068bd43 /dix/privates.c
parent18339375cd332f0ab1cbdade3dcd9140212ce1ca (diff)
devPrivates rework: pass address of pointer to private callbacks instead of
the pointer itself.
Diffstat (limited to 'dix/privates.c')
-rw-r--r--dix/privates.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/privates.c b/dix/privates.c
index 29e261f6b..8aab32d0e 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -117,7 +117,7 @@ dixAllocatePrivate(PrivateRec **privates, devprivate_key_t *const key)
/* call any init funcs and return */
if (item) {
- PrivateCallbackRec calldata = { key, ptr->value };
+ PrivateCallbackRec calldata = { key, &ptr->value };
CallCallbacks(&item->initfuncs, &calldata);
}
return &ptr->value;
@@ -138,7 +138,7 @@ dixFreePrivates(PrivateRec *privates)
item = findItem(ptr->key);
if (item) {
calldata.key = ptr->key;
- calldata.value = ptr->value;
+ calldata.value = &ptr->value;
CallCallbacks(&item->deletefuncs, &calldata);
}
}