diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 08:51:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 08:51:16 (GMT) |
commit | 0ee97cbae8a5bf340ef97a929e700ee24c75f716 (patch) | |
tree | 61c90727ed8941413bf41b3850ec41a311afd532 /generic/ttk/ttkStubLib.c | |
parent | c9a5779ed8262de2ee55db19ea637ce9d2c19624 (diff) | |
download | tk-0ee97cbae8a5bf340ef97a929e700ee24c75f716.zip tk-0ee97cbae8a5bf340ef97a929e700ee24c75f716.tar.gz tk-0ee97cbae8a5bf340ef97a929e700ee24c75f716.tar.bz2 |
Some code cleanup, backported from 8.7 (mainly usage of exact types and type-casts).
Diffstat (limited to 'generic/ttk/ttkStubLib.c')
-rw-r--r-- | generic/ttk/ttkStubLib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkStubLib.c b/generic/ttk/ttkStubLib.c index 2c07b9d..5675416 100644 --- a/generic/ttk/ttkStubLib.c +++ b/generic/ttk/ttkStubLib.c @@ -36,10 +36,10 @@ TtkInitializeStubs( int exact = 0; const char *packageName = "Ttk"; const char *errMsg = NULL; - ClientData pkgClientData = NULL; + void *pkgClientData = NULL; const char *actualVersion = Tcl_PkgRequireEx( interp, packageName, version, exact, &pkgClientData); - const TtkStubs *stubsPtr = pkgClientData; + const TtkStubs *stubsPtr = (const TtkStubs *)pkgClientData; if (!actualVersion) { return NULL; @@ -67,7 +67,7 @@ error: "Error loading ", packageName, " package", " (requested version '", version, "', loaded version '", actualVersion, "'): ", - errMsg, + errMsg, NULL); return NULL; } |