Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser fix braces



details:   https://anonhg.NetBSD.org/src/rev/d523509f9fa3
branches:  trunk
changeset: 327931:d523509f9fa3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 21 16:03:07 2014 +0000

description:
fix braces

diffstat:

 lib/librumpuser/rumpuser_pth.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r a7a2430a4cc9 -r d523509f9fa3 lib/librumpuser/rumpuser_pth.c
--- a/lib/librumpuser/rumpuser_pth.c    Fri Mar 21 14:03:30 2014 +0000
+++ b/lib/librumpuser/rumpuser_pth.c    Fri Mar 21 16:03:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_pth.c,v 1.38 2014/03/21 12:28:54 pooka Exp $  */
+/*     $NetBSD: rumpuser_pth.c,v 1.39 2014/03/21 16:03:07 pooka Exp $  */
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth.c,v 1.38 2014/03/21 12:28:54 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_pth.c,v 1.39 2014/03/21 16:03:07 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/queue.h>
@@ -96,9 +96,11 @@
 #if defined(HAVE_PTHREAD_SETNAME_3)
        if (rv == 0 && thrname) {
                pthread_setname_np(*ptidp, thrname, NULL);
+       }
 #elif defined(HAVE_PTHREAD_SETNAME_2)
-       if (rv == 0 && thrname)
+       if (rv == 0 && thrname) {
                pthread_setname_np(*ptidp, thrname);
+       }
 #endif
 
        if (joinable) {



Home | Main Index | Thread Index | Old Index