summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_tsd.c
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-03-02 18:11:53 +0000
committerjoerg <joerg@NetBSD.org>2012-03-02 18:11:53 +0000
commitdfd5e8f6f27b73f89a8d6a6e65a48ec9cc14f11b (patch)
tree89679e7ef799435eb0fe6d813aa76070fcaae6f4 /lib/libpthread/pthread_tsd.c
parent2a5a23c9d82a5a4356e643f6ffb31b0f37c7dab0 (diff)
Fix indentation.
Diffstat (limited to 'lib/libpthread/pthread_tsd.c')
-rw-r--r--lib/libpthread/pthread_tsd.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libpthread/pthread_tsd.c b/lib/libpthread/pthread_tsd.c
index c256acb6e30..f65e5361c2d 100644
--- a/lib/libpthread/pthread_tsd.c
+++ b/lib/libpthread/pthread_tsd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_tsd.c,v 1.7 2008/04/28 20:23:01 martin Exp $ */
+/* $NetBSD: pthread_tsd.c,v 1.8 2012/03/02 18:11:53 joerg Exp $ */
/*-
* Copyright (c) 2001, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_tsd.c,v 1.7 2008/04/28 20:23:01 martin Exp $");
+__RCSID("$NetBSD: pthread_tsd.c,v 1.8 2012/03/02 18:11:53 joerg Exp $");
/* Functions and structures dealing with thread-specific data */
#include <errno.h>
@@ -210,12 +210,13 @@ pthread__destroy_tsd(pthread_t self)
pthread_mutex_lock(&tsd_mutex);
destructor = pthread__tsd_destructors[i];
pthread_mutex_unlock(&tsd_mutex);
- if (destructor != NULL) {
- done = 0;
- val = self->pt_specific[i];
- self->pt_specific[i] = NULL; /* see above */
- (*destructor)(val);
- }
+ if (destructor != NULL) {
+ done = 0;
+ val = self->pt_specific[i];
+ /* See above */
+ self->pt_specific[i] = NULL;
+ (*destructor)(val);
+ }
}
}
} while (!done && iterations--);