summaryrefslogtreecommitdiffstats
path: root/win/tclWin32Dll.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-31 10:17:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-31 10:17:44 (GMT)
commit4258dcc3acd1ffc9d3dec78cb9eef89ace9ac7f5 (patch)
tree4d9105c6d86d91f921a9a2d111d50cbd70e11894 /win/tclWin32Dll.c
parent68a12bf6aae302e46a8ca7466839218ba44c262e (diff)
downloadtcl-4258dcc3acd1ffc9d3dec78cb9eef89ace9ac7f5.zip
tcl-4258dcc3acd1ffc9d3dec78cb9eef89ace9ac7f5.tar.gz
tcl-4258dcc3acd1ffc9d3dec78cb9eef89ace9ac7f5.tar.bz2
Remove MODULE_SCOPE function TclpSetInterfaces(), which is just empty.
Increase size of MSG structure in Cygwin Notifier: Should conform with Win32 size. Some related code cleanup.
Diffstat (limited to 'win/tclWin32Dll.c')
-rw-r--r--win/tclWin32Dll.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index ccc1dae..c33787d 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -262,27 +262,6 @@ TclWinNoBackslash(
/*
*---------------------------------------------------------------------------
*
- * TclpSetInterfaces --
- *
- * A helper proc.
- *
- * Results:
- * None.
- *
- * Side effects:
- * None.
- *
- *---------------------------------------------------------------------------
- */
-
-void
-TclpSetInterfaces(void)
-{
-}
-
-/*
- *---------------------------------------------------------------------------
- *
* TclWinEncodingsCleanup --
*
* Called during finalization to free up any encodings we use.
@@ -463,8 +442,8 @@ TclWinDriveLetterForVolMountPoint(
}
}
if (!alreadyStored) {
- dlPtr2 = ckalloc(sizeof(MountPointMap));
- dlPtr2->volumeName = TclNativeDupInternalRep(Target);
+ dlPtr2 = (MountPointMap *)ckalloc(sizeof(MountPointMap));
+ dlPtr2->volumeName = (WCHAR *)TclNativeDupInternalRep(Target);
dlPtr2->driveLetter = (char) drive[0];
dlPtr2->nextPtr = driveLetterLookup;
driveLetterLookup = dlPtr2;
@@ -489,8 +468,8 @@ TclWinDriveLetterForVolMountPoint(
* that fact and store '-1' so we don't have to look it up each time.
*/
- dlPtr2 = ckalloc(sizeof(MountPointMap));
- dlPtr2->volumeName = TclNativeDupInternalRep((ClientData) mountPoint);
+ dlPtr2 = (MountPointMap *)ckalloc(sizeof(MountPointMap));
+ dlPtr2->volumeName = (WCHAR *)TclNativeDupInternalRep((void *)mountPoint);
dlPtr2->driveLetter = -1;
dlPtr2->nextPtr = driveLetterLookup;
driveLetterLookup = dlPtr2;