summaryrefslogtreecommitdiff
path: root/include/privates.h
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-08-16 16:01:42 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-08-16 16:01:42 -0400
commit6fd0a0b08de912421718aca17fe34a55ae285ae7 (patch)
treeb9615152f28445e87b753517d081d1197e051593 /include/privates.h
parentb2b7817497dd5da73d23ec9cc637c563041fc490 (diff)
devPrivates rework: add const qualifier to key type.
Diffstat (limited to 'include/privates.h')
-rw-r--r--include/privates.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/privates.h b/include/privates.h
index e377b3068..e81e40a93 100644
--- a/include/privates.h
+++ b/include/privates.h
@@ -19,10 +19,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* 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, const DevPrivateKey key, pointer val)
* 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;