summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-08-31 20:48:16 (GMT)
committernijtmans <nijtmans>2010-08-31 20:48:16 (GMT)
commitc7a29d8a5192bc554c5019ba53d8041aa12eb963 (patch)
treec5dcdf908c44f77ddfcc3bd0b202a6614a1b9d7a /generic/tclPkg.c
parentf97a6571a6db13315c2b0767b1d178cd3330c4c3 (diff)
downloadtcl-c7a29d8a5192bc554c5019ba53d8041aa12eb963.zip
tcl-c7a29d8a5192bc554c5019ba53d8041aa12eb963.tar.gz
tcl-c7a29d8a5192bc554c5019ba53d8041aa12eb963.tar.bz2
[Patch 2997642] many type casts needed when using Tcl_Pkg* API. Remaining part.
Typo in rules.vc
Diffstat (limited to 'generic/tclPkg.c')
-rw-r--r--generic/tclPkg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index cba612f..82a683c 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPkg.c,v 1.43 2010/08/30 13:49:27 nijtmans Exp $
+ * RCS: @(#) $Id: tclPkg.c,v 1.44 2010/08/31 20:48:17 nijtmans Exp $
*
* TIP #268.
* Heavily rewritten to handle the extend version numbers, and extended
@@ -48,7 +48,7 @@ typedef struct Package {
* exist in this interpreter yet. */
PkgAvail *availPtr; /* First in list of all available versions of
* this package. */
- ClientData clientData; /* Client data. */
+ const void *clientData; /* Client data. */
} Package;
/*
@@ -124,7 +124,7 @@ Tcl_PkgProvideEx(
* available. */
const char *name, /* Name of package. */
const char *version, /* Version string for package. */
- ClientData clientData) /* clientdata for this package (normally used
+ const void *clientData) /* clientdata for this package (normally used
* for C callback function table) */
{
Package *pkgPtr;
@@ -621,7 +621,7 @@ PkgRequireCore(
if (satisfies) {
if (clientDataPtr) {
- ClientData *ptr = clientDataPtr;
+ const void **ptr = (const void **) clientDataPtr;
*ptr = pkgPtr->clientData;
}
return pkgPtr->version;