summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2007-01-20 04:56:07 +0000
committerchristos <christos@NetBSD.org>2007-01-20 04:56:07 +0000
commit3ca3d0b1e7714d88ec2db50d0617e39a41f98d83 (patch)
tree712b57879fe348e1be9a56a7b30838b991c68c30 /lib/libpthread/pthread.c
parent24d35c8592a23136a529c7d88d134a89c2fac2b1 (diff)
add a missing volatile.
Diffstat (limited to 'lib/libpthread/pthread.c')
-rw-r--r--lib/libpthread/pthread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c
index 5fa224fe3c8..2a24129f1ed 100644
--- a/lib/libpthread/pthread.c
+++ b/lib/libpthread/pthread.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.55 2007/01/16 05:22:55 ad Exp $ */
+/* $NetBSD: pthread.c,v 1.56 2007/01/20 04:56:07 christos Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.55 2007/01/16 05:22:55 ad Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.56 2007/01/20 04:56:07 christos Exp $");
#include <err.h>
#include <errno.h>
@@ -382,7 +382,7 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr,
pthread_t self, newthread;
pthread_attr_t nattr;
struct pthread_attr_private *p;
- char *name;
+ char * volatile name;
int ret;
#ifndef PTHREAD_SA
int flag;