summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadShl.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-08-08 10:32:39 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-08-08 10:32:39 (GMT)
commit5ad5db44171a6ac5e6de273b04687063616ed1af (patch)
tree5ac50dfaff7dde2e41e507277f70fefdbbda6be3 /unix/tclLoadShl.c
parent590f90dfb94a3838bb07b37b552b4ed1cb854918 (diff)
parentbc8263307e4cfa4064e128e4674e08e1a2f8000d (diff)
downloadtcl-5ad5db44171a6ac5e6de273b04687063616ed1af.zip
tcl-5ad5db44171a6ac5e6de273b04687063616ed1af.tar.gz
tcl-5ad5db44171a6ac5e6de273b04687063616ed1af.tar.bz2
merge trunk
Diffstat (limited to 'unix/tclLoadShl.c')
-rw-r--r--unix/tclLoadShl.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/unix/tclLoadShl.c b/unix/tclLoadShl.c
index 968f232..7b80bcc 100644
--- a/unix/tclLoadShl.c
+++ b/unix/tclLoadShl.c
@@ -22,14 +22,14 @@
#endif
#include "tclInt.h"
-
-/* Static functions defined within this file */
-static void* FindSymbol(Tcl_Interp* interp, Tcl_LoadHandle loadHandle,
- const char* symbol);
-static void
-UnloadFile(Tcl_LoadHandle handle);
+/*
+ * Static functions defined within this file.
+ */
+static void * FindSymbol(Tcl_Interp *interp,
+ Tcl_LoadHandle loadHandle, const char *symbol);
+static void UnloadFile(Tcl_LoadHandle handle);
/*
*----------------------------------------------------------------------
@@ -137,7 +137,7 @@ FindSymbol(
{
Tcl_DString newName;
Tcl_PackageInitProc *proc = NULL;
- shl_t handle = (shl_t)(loadHandle->clientData);
+ shl_t handle = (shl_t) loadHandle->clientData;
/*
* Some versions of the HP system software still use "_" at the beginning
@@ -187,9 +187,8 @@ UnloadFile(
* TclpDlopen(). The loadHandle is a token
* that represents the loaded file. */
{
- shl_t handle;
+ shl_t handle = (shl_t) loadHandle->clientData;
- handle = (shl_t) (loadHandle -> clientData);
shl_unload(handle);
ckfree(loadHandle);
}