fix braces

This commit is contained in:
pooka 2014-03-21 16:03:07 +00:00
parent e26b436cdb
commit fe7fe5876f
1 changed files with 5 additions and 3 deletions

View File

@ -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 @@ rumpuser_thread_create(void *(*f)(void *), void *arg, const char *thrname,
#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) {