diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-06-30 13:16:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-06-30 13:16:44 (GMT) |
commit | 26a0c08c0bcf995a69ec76d8061febcc24c650c2 (patch) | |
tree | 5c0b46ceadbe2eff89d3297cc3b0b75ce3643b25 /unix/tclUnixThrd.c | |
parent | 9e0c4021277674c3182c3082c38a5915d872ae0a (diff) | |
download | tcl-26a0c08c0bcf995a69ec76d8061febcc24c650c2.zip tcl-26a0c08c0bcf995a69ec76d8061febcc24c650c2.tar.gz tcl-26a0c08c0bcf995a69ec76d8061febcc24c650c2.tar.bz2 |
Simplify use of "struct" keyword in many places.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r-- | unix/tclUnixThrd.c | 8 |
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"); } |