summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-30 13:16:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-30 13:16:44 (GMT)
commitc1ce97106f2bcbbcad391621a3617e14a7648052 (patch)
tree5c0b46ceadbe2eff89d3297cc3b0b75ce3643b25 /unix/tclUnixThrd.c
parentc8212c36e91c536433c5a43b8a66ddb19c20d723 (diff)
downloadtcl-c1ce97106f2bcbbcad391621a3617e14a7648052.zip
tcl-c1ce97106f2bcbbcad391621a3617e14a7648052.tar.gz
tcl-c1ce97106f2bcbbcad391621a3617e14a7648052.tar.bz2
Simplify use of "struct" keyword in many places.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index cf81850..8f8eb7f 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -15,7 +15,7 @@
#ifdef TCL_THREADS
-typedef struct ThreadSpecificData {
+typedef struct {
char nabuf[16];
} ThreadSpecificData;
@@ -675,7 +675,7 @@ TclpInetNtoa(
#ifdef USE_THREAD_ALLOC
static pthread_key_t key;
-typedef struct allocMutex {
+typedef struct {
Tcl_Mutex tlock;
pthread_mutex_t plock;
} allocMutex;
@@ -683,10 +683,10 @@ typedef struct allocMutex {
Tcl_Mutex *
TclpNewAllocMutex(void)
{
- struct allocMutex *lockPtr;
+ allocMutex *lockPtr;
register pthread_mutex_t *plockPtr;
- lockPtr = malloc(sizeof(struct allocMutex));
+ lockPtr = malloc(sizeof(allocMutex));
if (lockPtr == NULL) {
Tcl_Panic("could not allocate lock");
}