Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread Fix indentation.



details:   https://anonhg.NetBSD.org/src/rev/4d3bfff08325
branches:  trunk
changeset: 777739:4d3bfff08325
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Mar 02 18:11:53 2012 +0000

description:
Fix indentation.

diffstat:

 lib/libpthread/pthread_tsd.c |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r 4e69bb20bb84 -r 4d3bfff08325 lib/libpthread/pthread_tsd.c
--- a/lib/libpthread/pthread_tsd.c      Fri Mar 02 18:10:58 2012 +0000
+++ b/lib/libpthread/pthread_tsd.c      Fri Mar 02 18:11:53 2012 +0000
@@ -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_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--);



Home | Main Index | Thread Index | Old Index